Forum Moderators: not2easy
however in IE, there is a small space (indent, margin, padding?) between my images/text and the floated <div>.
i am figuring that IE has got some rendering problems but i am wondering if anyone can help figure how to get my text/images to sit right next to the floated <div>
here's the link to the site:
[ohsu.edu...]
here are my styles for each <div>
#leftcontent{
float:left;
width: 148px;
background-color: #CCD1D2;
margin-top:0px;
}
#rightcontent{
margin-left:148px;
margin-top: 0px;
padding-left:0px;
background-color: #ffffff;
}
the following is a <div> within the "rightcontent" div that i would like to run directly into the "leftcontent" <div>
#subsection{
height: 26px;
background-image: url(../Images/ct_john_images/subsection_titlebg.gif);
background-repeat: no-repeat;
background-position: 0 0;
}
thanks for any and all help.
john
In IE
total width = width
In Opera, Mozilla, W3C Recs, Firefox, Safari, Konqueror....
total width = left margin + left border + left padding + width + right padding + right border + right margin
That answer it?
Tom
the right-margins on the float are not set to 0 at the moment...but i have tried that and it didn't work.
it's pretty quirky b/c if you check my page at the moment, one of the <div>'s is aligned correctly against the float. two others are not. the one that is aligned correctly has a min-height property while the other two do not. if i change the other two to "min-height" (as opposed to "height" then it renders it correctly aligned.
however, technically the min-height property is not working because the <div> with the min-height property should be a lot longer.
i am thoroughly confused.
j
Did you get this figured out? Since you posted a URL, I broke down and looked at your page in both IE and Firefox and it looks fine.
By the way, in general WebmasterWorld has a rule against posting personal URLs (this is in the charter). In principle readers should not have to leave the page to see the problem. The reasons for this is
- to encourage people to simplify and generalize their questions
- many people were misusing this (as in, "what's wrong with "mysite.com"? which then gets indexed by Google and it appears that the page is popular because it has inbound links etc etc).
- to avoid becoming a site review site.
I would not say your post violates any of these, but the rule is sort of a necessary evil.
It might also be a good idea to check out WebmasterWorld Guidelines for Posting Code [webmasterworld.com]. Again, not because there is a problem with the original post which is thoroughly appropriate, but just as future reference.
Cheers,
Tom
if so it's not the box model.. but IE's buggy rendering of floats (even in strict mode it's got problems)
see msg#3 in this thread [webmasterworld.com] for explanation/fix if required..
Suzy