Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 08-21-2007, 01:13 AM   #1 (permalink)
New Member
 
Join Date: Mar 2006
Location: Aberdeen, Scotland, UK
Posts: 23
Angry CSS image resize issue

Hey folks. This one has been driving me mad so any pointers would be great.

The site I'm working on has a number of the pages elements held within a container block using CSS so the layout of the elements is fluid with the browser size. Now, for this the containers height is relative to size of the content and therefor has no height setting:

.container
{position:relative; margin-top:250px; background:#0033FF;}

But I want to have a fancy border down the side which is simply set using the following css within the .container div:

img.border_left
{float:left; width:15px; height:100%;}

However, I've found that as the container itself has no defined height, the height of the image will not resize to 100%. I've messed about with it and found that by setting a height of the container, the border image resizes no bother, but that obviously effects the container resizing to fit the content.

Anyone know how to get around this?
__________________
Munkeypop - A Demigod amongst mere Monkeys!
Munkeypop is offline   Reply With Quote
Old 08-21-2007, 06:47 AM   #2 (permalink)
New Member
 
Join Date: Aug 2007
Posts: 14
Default

let's see all of the css & html and i'll see if I can help next time I check back here.
jeverd01 is offline   Reply With Quote
Old 08-21-2007, 10:17 AM   #3 (permalink)
New Member
 
Join Date: Mar 2006
Location: Aberdeen, Scotland, UK
Posts: 23
Default

Quote:
Originally Posted by jeverd01 View Post
let's see all of the css & html and i'll see if I can help next time I check back here.
Hey Jeverd01,

Cheers, I've uploaded the code to: http://www.digitalreactions.co.uk/ctop/index

The codes a bit ramshackle, but if you can see the problem and know a solution it would be much appreciated. You'll see it's the two orange lines left and right of the text which are about 15px high and (are supposed too) carry on from the image at the top of the page. I just wanna get them to stretch to the full height of the "container" div, without setting a static height.

Cheers.
__________________
Munkeypop - A Demigod amongst mere Monkeys!
Munkeypop is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:33 PM.


Computer Forum - Internet Business - Webpage Design

 
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.