/    Sign up×
Community /Pin to ProfileBookmark

3 Cells next to eachother in CSS/Div

I need to place 3 cells next to eachother inside a div that’s 527px wide. I need them all to be the same width and basically I need a css/div way to do this:

<tr>
<td width=”33%”>bla</td>
<td width=”34%”>bla</td>
<td width=”33%”>bla</td>
</tr>

I currently have this code:
.authorfield{
border-top: 1px solid #FF0000;
width: 175px;
float:left;
}

.timefield{
border-top: 1px solid #FF0000;
border-left: 1px solid #FF0000;
border-right: 1px solid #FF0000;
width: 175px;
float:left;
}

.commenttoggle{
border-top: 1px solid #FF0000;
width: 175px;
float:left;
}

<div class=”details” id=”details1″>
<div class=”authorfield”><b>Door</b>: Anoniem</div>
<div class=”timefield”>17-03-2007 om 17:22</div>
<div class=”commenttoggle”>Reacties</div>
</div>

It works perfectly in IE6 (attachement: good.png) but not in firefox (attachement: bad.png)

I have an url to the page: [URL=”http://84.81.165.184/blog/design/index.htm”]http://84.81.165.184/blog/design/index.htm[/URL]

Can anybody help me fix this?

[upl-file uuid=fdaa8009-6115-4ffb-8600-1b5fb5a9b9fb size=7kB]good.png[/upl-file]

[upl-file uuid=7f9bc83e-9907-4c06-8b9b-a8abe631db03 size=6kB]bad.png[/upl-file]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 31.2007 — Try adding:#details1 {overflow:hidden;}
http://www.quirksmode.org/css/clearing.html
Copy linkTweet thisAlerts:
@IcelineauthorMar 31.2007 — ([B]EDIT[/B]:changed #details1 to .details)

Thanks, that works!
×

Success!

Help @Iceline 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 5.20,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...