3 replies [Last post]
tara_irvine
tara_irvine's picture
User offline. Last seen 1 year 38 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2010-08-26
Posts: 3
Points: 6

I seem to be having this issue with a few different sites I'm styling at the minute. If I have a container with the height set to auto, and some divs inside all positioned relative and floating, the container won't "contain" them. I have to give it a set height, which is fine but that means if I edit the content I have to set the height again.

Any suggestions how best to approach this issue?
Any help would be appreciated.

Tara

CupidsToejam
CupidsToejam's picture
User offline. Last seen 17 weeks 5 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

research Containing Floats


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

tara_irvine
tara_irvine's picture
User offline. Last seen 1 year 38 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2010-08-26
Posts: 3
Points: 6

wow thanks so much for that,

wow thanks so much for that, thats the issue, it's working grand now...

Just have to remember all the sites i added a height to my containers........

Cheers

Tara

CupidsToejam
CupidsToejam's picture
User offline. Last seen 17 weeks 5 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

your problem occurs whether

your problem occurs whether or not a height is specified.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com