More CSS Help: Centering

Get Help With All Aspects of Web Design & Design Software

Moderators: Moderator, Global Moderator

Post Reply
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

More CSS Help: Centering

Post by Josh »

Okay.. I\'ve gotten this far from what my last post was (http://josh.killagraphix.com/csshelp.html) and now I\'m 100% stuck on how to get this thing centered... Anyone know how I could center my whole page? (I tried <center> tags right after the <body> and </center> right before the </body> tags.. Didn\'t work.

<div id=\"blah\" align=\"center\"></div> doesn\'t work either as us3rx thought it would be it...

I\'m just STUCK! What do I do? <img src=\'http://www.killanet.net/forum3/public/s ... /ggsad.gif\' class=\'bbc_emoticon\' alt=\'(sad)\' /> <img src=\'http://www.killanet.net/forum3/public/s ... rts_kr.gif\' class=\'bbc_emoticon\' alt=\'(ow)\' />



Thanks in advance!
~Josh <img src=\'http://www.killanet.net/forum3/public/s ... sp_ike.gif\' class=\'bbc_emoticon\' alt=\'(spike)\' />
Last edited by Josh on Fri Oct 29, 2004 4:32 am, edited 1 time in total.
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Vercz
Hero Member
Hero Member
Posts: 1915
Joined: Sun May 09, 2004 6:13 am

More CSS Help: Centering

Post by Vercz »

[color=\"green\"][code]<div align="center"><div id="blah" align="center">stuff you want centered goes here</div></div>[/code]

having only one set of <div>\'s will center the text..having two will put the information in the middle, with the text centered aswell...assuming that they id \"blah\" refers to how the text is set out in the css file..then i think you should be using

[code] <div align="center"><div class="blah" align="center">stuff you want centered goes here</div></div>

with...

div.blah {
font:7pt Arial;
color:#FFFFFF;
text-decoration:none;
}[/code]

the info in the div class \"blah\" is just an example too <img src=\'http://www.killanet.net/forum3/public/s ... >/blum.gif\' class=\'bbc_emoticon\' alt=\':P\' /> [/color]
Image

Image
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

More CSS Help: Centering

Post by Josh »

Now that I\'m back from my visit down to Missouri....

Thank you Vercz <img src=\'http://www.killanet.net/forum3/public/s ... >/blum.gif\' class=\'bbc_emoticon\' alt=\':P\' />
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Vercz
Hero Member
Hero Member
Posts: 1915
Joined: Sun May 09, 2004 6:13 am

More CSS Help: Centering

Post by Vercz »

[color=\"green\"]lol, welcome <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' /> [/color]
Image

Image
Post Reply

Return to “Web Design Principles”