Simple - website centered

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
LivingMudFish
Forum Members
Forum Members
Posts: 25
Joined: Wed Feb 08, 2006 1:37 pm

Simple - website centered

Post by LivingMudFish »

Hi

I'm sure this is simple and I must be overlooking something but i'm using a different template for the front page of the site and the rest of the pages on another.

the front page loads center in all browsers but the other template loads aligned left - it starts off center but jumps left. the head is the same code and the table align is the same in both but the second template still jumps left.

weird - any ideas?

zodiac-ltd.com
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simple - website centered

Post by Dr.CSS »

Not with out a link to it...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Simple - website centered

Post by Wishbone »

He did post a link...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simple - website centered

Post by Dr.CSS »

Uh no that wasn't a "link" it was text...

To center anything in a web site you need to give it an actual width, not %, then use margin: 0px auto...

And you may want to think about using a more modern, standards compliant way of building it instead of table based layout, that way you're not using a bunch of useless 1px spacing gifs etc...

Oh and...

http://validator.w3.org/check?verbose=1 ... %3Dbuilder
Last edited by Anonymous on Thu Oct 28, 2010 6:26 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Simple - website centered

Post by Wishbone »

Dr.CSS wrote: Uh no that wasn't a "link" it was text...
I see you figured it out, though. :)
LivingMudFish
Forum Members
Forum Members
Posts: 25
Joined: Wed Feb 08, 2006 1:37 pm

Re: Simple - website centered

Post by LivingMudFish »

not sure of how to do it any other way than tables - i just export it from fireworks and use the html that's generated

can you point in the right direction - i assume you mean div's do you know of a decent tutorial?

cheers
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simple - website centered

Post by Dr.CSS »

To center it give the div here an ID or class and a width then margin: 0px auto...

You can always use a wireframe from the themes site to start with, like the 3rd one down...

http://themes.cmsmadesimple.org/Downloa ... works.html
Post Reply

Return to “Layout and Design (CSS & HTML)”