PDA

View Full Version : Question about css.


gigiloumill
05-01-2012, 11:57 AM
Guys, can someone please tell me or point me in the right direction. I have this issue that I have not been able to resolve. How come I can't set the css height on divs to "auto" when including dynamic info in them, such as an iframe or rss feed? The div will close past other divs. In order to be able to include dynamic info on a div, I would need to give the div a height. But, some info, especially an RSS feed, will fluctuate. Thanks

domedia
05-01-2012, 12:51 PM
a div is 'auto' by default. There's something else on your page that is causing this.

gigiloumill
05-01-2012, 01:28 PM
TY. If I set a div and in it include some other divs, also set on "auto", the main div will not expand unless I set a height. Here's an example: http://spanglish101.fm/test.html

domedia
05-01-2012, 08:32 PM
You're floating everything in the parent element.

Add height: 1%; overflow: hidden; to your parent element.

gigiloumill
05-02-2012, 11:46 PM
Dude, thanks..That did it..You don't know anything about Shoutcast servers do you?..I figured I give it a try...