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
Simple - website centered
-
- Forum Members
- Posts: 25
- Joined: Wed Feb 08, 2006 1:37 pm
Re: Simple - website centered
Not with out a link to it...
Re: Simple - website centered
He did post a link...
Re: Simple - website centered
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
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.
Re: Simple - website centered
I see you figured it out, though.Dr.CSS wrote: Uh no that wasn't a "link" it was text...

-
- Forum Members
- Posts: 25
- Joined: Wed Feb 08, 2006 1:37 pm
Re: Simple - website centered
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
can you point in the right direction - i assume you mean div's do you know of a decent tutorial?
cheers
Re: Simple - website centered
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
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