/    Sign up×
Community /Pin to ProfileBookmark

IE and <div> sizing issue

[CODE].cbox {
margin: 0 auto; /* containers for side-by-side <div>’s */
position: relative;
text-align: left;
clear: both;
}
.cleft {
text-align: left;
float: left;
}
.cright {
float: right;
text-align: left;
clear: right;
}[/CODE]

[CODE]<div class=’cbox’ style=’width:720px; padding-top:15px; border:1px solid #000000′>
<div class=’cright black p14′ style=’width:100px; text-align:center; border:1px solid #00ff00′>Tue</div>
<div class=’cleft black p14′ style=’width:170px; text-align:left; border:1px solid #0000ff’>Kearny Mesa</div>
<div class=’cleft black p14′ style=’width:40px; text-align:center; border:1px solid #000ff0′>3</div>
<div class=’cleft black p14′ style=’width:190px; text-align:left; border:1px solid #0ff000′>Matthew</div>
<div class=’cleft black p14′ style=’width:110px; text-align:left; border:1px solid #00ff00′>PSN</div>
<div class=’cleft black p14′ style=’width:95px; text-align:center; border:1px solid #ff0000′>8-Jan</div>
</div>[/CODE]

The above source that is displaying oddly in IE6 on an erratic basis. It appears multiple times on the page, and mostly displays correctly but once in a while container “cbox” <div> extends 15 px [U]below[/U] the enclosed floated <div>s as shown on the [URL=”http://www.sonora-sw.com/blog/divs.jpg”]image[/URL]. It does not do it in Firefox at all.

The borders are added only so that I could see what was going on. And, of course, what they tell me is that I don’t know what’s going on. Does anybody here?

I should add the code validates 100% and has the following header:
<!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01//EN’ ‘http://www.w3.org/TR/html4/strict.dtd‘>

(And somehow in editing my post I duplicated it. Sorry.)

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@here-to-helpJan 20.2008 — It looks OK in IE 7 and FF 2

Try this:
[code=html]
<htm>
<head>
<style>
div{float:left;}
</style>
</head>
<body>
<div class='cbox' style='width:auto; padding-top:15px; border:1px solid #000000;'>
<div style='width:170px; text-align:left; border:1px solid #0000ff'>Kearny Mesa</div>
<div style='width:40px; text-align:center; border:1px solid #000ff0'>3</div>
<div style='width:190px; text-align:left; border:1px solid #0ff000'>Matthew</div>
<div style='width:110px; text-align:left; border:1px solid #00ff00'>PSN</div>
<div style='width:95px; text-align:center; border:1px solid #ff0000'>8-Jan</div>
<div style='width:100px; text-align:center; border:1px solid #00ff00'>Tue</div>
</div>
</body>
</html>[/code]



------------
Website: www.funmediadesign.com

Templates: www.funmedia.ca
Copy linkTweet thisAlerts:
@JayhawkauthorJan 20.2008 — That seems to solve the issue. The question is, why?
Copy linkTweet thisAlerts:
@JayhawkauthorJan 21.2008 — (And somehow in editing my post I duplicated it. Sorry.)[/QUOTE]
As I said in one of the two posts (actually the one you responded to). I don't know how the duplication occurred, I was simply trying to edit. I apologize for the duplication and any problems or irritation it may have caused.

If there was any way provided for me to delete the post that I duplicated without meaning to do so, I would have deleted it. I spent quite some time trying, as one of the hover buttons reads "Edit/Delete Post" but that button, in fact, allows editing only. I could not find any way to delete the post.
Copy linkTweet thisAlerts:
@Major_PayneJan 21.2008 — Hey, no need to apologize. At least to me. Been there and done the same thing. Every forum I've been in doesn't allow a deletion of a post, but they all have allowed editing at any time after the post... except this one. If you don't complete your edits within about 30-minutes, the Edit button disappears when you reload the page.

I was just merely listing the URLs as the emails I receive with links of a subject were the same subject. Sometimes if people have answered in both places a moderator will catch it and combine the two.

Ron
×

Success!

Help @Jayhawk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...