Forums | MacLife

You are not logged in.

#1 2008-02-03 5:25 pm

Beowulf
Spin, mash, repeat.
From: NYC
Registered: 2004-07-27
Posts: 1145
Website

Basic HTML

I'd like to center my page - http://cyclosity.com/, That is, I'd like to center the content of this here wizzeb page.

Ideas?

Last edited by Beowulf (2008-02-03 5:26 pm)

Offline

 

#2 2008-02-03 9:36 pm

b_dubb
loch whatchamacallit
From: chapel hill, nc
Registered: 2002-11-19
Posts: 482
Website

Re: Basic HTML

put everything inside a WRAPPER div and after setting a width ... set the margin to ...

margin:1em auto;

this will automatically center the content inside the WRAPPER div

margin: TOPMARGIN RIGHTMARGIN BOTTOMMARGIN LEFTMARGIN;

so that would look like ..

margin:5px auto 5px auto;

the top and bottom would have a margin of 5px and the left and right values would be adjusted so that the DIV would center. 

i hope this helps


"The Fates lead he who will; he who won't, they drag." - Seneca

Offline

 

#3 2008-02-04 5:09 am

Beowulf
Spin, mash, repeat.
From: NYC
Registered: 2004-07-27
Posts: 1145
Website

Re: Basic HTML

Thanks a bunch b_dubb, but I'm a little confused as to where exactly I need to put my <div> tags, etc. As you can see I'm very basic over here...

Offline

 

#4 2008-02-04 12:01 pm

b_dubb
loch whatchamacallit
From: chapel hill, nc
Registered: 2002-11-19
Posts: 482
Website

Re: Basic HTML

<div id="wrapper">

your entire web page


</div>

this might have consequences with other divs


"The Fates lead he who will; he who won't, they drag." - Seneca

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson