corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Quick CSS Question


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Quick CSS Question
liamC
Member

Registered: 28th Feb 04
User status: Offline
6th Mar 07 at 17:54   View User's Profile U2U Member Reply With Quote

If I had a 2 columned, 1 row table how would I do this as a DIV instead?

Basically I want 2 boxes by the side of one another

Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
6th Mar 07 at 18:16   View Garage View User's Profile U2U Member Reply With Quote

in the CSS you want

#maincell {
width:709px;
height:144px;
}
#cell1{
text-align: center;
float:left;
width:200px;
height:144px;
}
#cell2{
text-align: center;
float:left;
width:200px;
height:144px;
}

then in the html something like

<div id="maincell">
<div id="cell1">cell 1</div>
<div id="cell2">cell 2</div>
</div>

or

<div id="cell1">cell 1</div>
<div id="cell2">cell 2</div>



[Edited on 06-03-2007 by Steve]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
6th Mar 07 at 18:16   View Garage View User's Profile U2U Member Reply With Quote

adjust widths etc to what you want
liamC
Member

Registered: 28th Feb 04
User status: Offline
6th Mar 07 at 18:31   View User's Profile U2U Member Reply With Quote

Cheers fella! You have no idea how much that was pissing me off!!
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
6th Mar 07 at 18:33   View Garage View User's Profile U2U Member Reply With Quote

have you tried it?
liamC
Member

Registered: 28th Feb 04
User status: Offline
6th Mar 07 at 18:34   View User's Profile U2U Member Reply With Quote

Yeah mate, works exactly how I wanted it to. Thanks alot
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
6th Mar 07 at 18:40   View Garage View User's Profile U2U Member Reply With Quote

good as it was off the top of my numbskull

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
CSS webdesign help Houckham Geek Day 3 912
20th Apr 06 at 11:01
by Houckham
 
Making a PC DVD writer drive multi region? Sam Geek Day 2 1325
2nd May 06 at 00:34
by Jules
 
any web designers here??? KITcorsa Geek Day 7 1615
12th Jul 06 at 19:16
by Dom
 
FAO: Webmasters: CSS Bart Geek Day 14 1142
24th Oct 06 at 14:57
by Ian
 
Input on a website please, web designers especially :D drunkenfool Geek Day 56 3054
25th Nov 06 at 19:08
by aPk
 

Corsa Sport » Message Board » Off Day » Geek Day » Quick CSS Question 29 database queries in 0.0185010 seconds