Argh... I seriously have got to get this stuff down.
ANy ideas why IE is adding some space at the bottom of a div? See: http://new.redtreedesign.com/
The "Home" text & background image is inside #pgTitle.
http://new.redtreedesign.com/inc/layout.css
| SitePoint Sponsor |


Argh... I seriously have got to get this stuff down.
ANy ideas why IE is adding some space at the bottom of a div? See: http://new.redtreedesign.com/
The "Home" text & background image is inside #pgTitle.
http://new.redtreedesign.com/inc/layout.css



Remove height from #pgTitle


Same problem... Thanks though..


Anyone have a clue? I'm really at a loss here.


Hi,
Try forcing layout on the #tree element and then set the object to display:block.
Code:/* mac hide \*/ * html #tree {height:1%} /* end hide */ object{display:block;width:100%}
If you don't want to use a hack then use the correct widths instead.
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge


unfortunately that didn't work either... hmmmmmmm....


Your javascript is doing it. Or more likely the flash embedding method you are using within the javascript.
IE may not be simply ignoring the <embed> content within the <object>, but rather leaving room for it instead.
For instance, this code works fine. Of course, it was a simple test code and doesn't provide for active-x or information directing the browser to the needed plugin.
Code:<div id="tree"> <object type="application/x-shockwave-flash" data="tree.swf" width="215" height="218"> <param name="movie" value="tree.swf" /> </object> </div>


Hi,
I'm sure its the object or embed tag.
Try this instead.
If that doesn't work try this:Code:object{float:left;width:100%}
This works locally for me.Code:object,embed{float:left;width:100%}
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge


Paul,
Can't thank you enough. Spent hours changing things, floating things... just couldn't get it to work. I don't know why, I didn't think to float the object.
Thank you!


There is just one slight problem. Now the image below the object in FF does not show. IE shows fine.


Well the simplest solution is just to give the code above to ie.
Its probably a clearing issue so try this first:Code:* html object{float:left;width:100%}
Code:#pgTitle { width:215px; height:45px; background: url(../img/pg_title.jpg); text-align:right; clear:both }
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge


WONDERFUL! clear:both worked! You're a genius!
jp


On a side note... Paul, how did you get to understand CSS (and the hacks) so well? Do you just read every day? Are there favorite books of yours that have helped you tremendously?


It's just practice and experiencePaul, how did you get to understand CSS (and the hacks)
The bugs are always the same and once you understand the problems then the answers are easy to find. The faq lists the most common problems and will answer 99% of the questions in these forums. The problem for beginners is that they don't know what the behaviour they are seeing is linked to in the faq.
Its always good to have a few reference books handy and most books by eric meyer are good (or the sitepoint books) but you can get almost anything you need on the web anyway. Just reading these forums daily will give you insight as you will see the same problems time and time again.
Do a forum search on books and you will see a lot of recommendations.![]()
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Bookmarks