dhuan Posted March 1, 2009 Share Posted March 1, 2009 this is the website: http://portalbr.l4rge.com/ open it in both FIREFOX and INTERNET EXPLORER. you'll see that the avatar on the box is correctly shown on IE but when you see it throught FIREFOX the avatar just cuts this is the image code: <img src="img.jpg" align=left border=1> this is the css code used in the box: width: 476px; height: 24px; background-color: #7E7956; padding-top: 6px; padding-left: 8px; border-style: outset; border-width: 1px; Quote Link to comment Share on other sites More sharing options...
haku Posted March 1, 2009 Share Posted March 1, 2009 Probably something to do with the 200+ errors in your code. If you've never done error de-bugging, fix one error at a time, then re-validate. Errors compound downwards, so fixing one error will often remove 10. Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted March 1, 2009 Share Posted March 1, 2009 Probably because the image is floated left. Containers are not meant to wrap floated children and IE's behaviour is not in line with the specification. You can have the container completely wrap the image by floating it left too, or adding overflow:hidden, or by using some version of the "clearfix" (google: clearfix position is everything). Quote Link to comment Share on other sites More sharing options...
dhuan Posted March 1, 2009 Author Share Posted March 1, 2009 Probably because the image is floated left. Containers are not meant to wrap floated children and IE's behaviour is not in line with the specification. You can have the container completely wrap the image by floating it left too, or adding overflow:hidden, or by using some version of the "clearfix" (google: clearfix position is everything). Yeah, 'overflow:hidden' did get the job done. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.