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; Link to comment https://forums.phpfreaks.com/topic/147375-problem-with-probablyfloat-code/ 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. Link to comment https://forums.phpfreaks.com/topic/147375-problem-with-probablyfloat-code/#findComment-773672 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). Link to comment https://forums.phpfreaks.com/topic/147375-problem-with-probablyfloat-code/#findComment-773986 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. Link to comment https://forums.phpfreaks.com/topic/147375-problem-with-probablyfloat-code/#findComment-774008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.