Post Reply 
[HTML] Centering an entire page
Author Message
roberth
Resident Full Stop Abuser.....

Posts: 4,580.2098
Threads: 200
Joined: 18th Jun 2007
Reputation: -5.5814
E-Pigs: 43.8419
Offline
Post: #1
[HTML] Centering an entire page
Wee are doing web pages at college, and i really don't have a clue

Our lecturer told us to put the entire page in a div and center that, but either im doing that wrong, so it doesn't work....either way, is the a way to get this to work, or another method that will let me center my page

(This post was last modified: 24/11/2008 02:38 AM by roberth.)
24/11/2008 02:38 AM
Find all posts by this user Quote this message in a reply
kevinsturf
Paradigmatic Entity

Posts: 263.3607
Threads: 48
Joined: 19th Jan 2008
Reputation: 2.04707
E-Pigs: 8.9427
Offline
Post: #2
RE: [HTML] Centering an entire page
try going to w3school.org and they have everything you need

[Image: 10r67t2.jpg]
24/11/2008 04:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #3
RE: [HTML] Centering an entire page
If it's just centering a <div>, this will do it:

HTML Code
<div style="margin-left: auto; margin-right: auto;">
...
</div>

You may have to specify widths.  Alternatively, the <center> tag does wonders, though it isn't XHTML strict standard (does it matter though?).

24/11/2008 05:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
boogschd
boogyman
Worlds End

Posts: 4,954.3196
Threads: 90
Joined: 29th Nov 2007
Reputation: 4.19708
E-Pigs: 43.6852
Offline
Post: #4
RE: [HTML] Centering an entire page

HTML Code
<div align=center> me </div>



Hmmm

24/11/2008 07:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
J_G_
Monster Hunter

Posts: 706.5060
Threads: 43
Joined: 7th Mar 2008
Reputation: -2.97985
E-Pigs: 28.7636
Offline
Post: #5
RE: [HTML] Centering an entire page
just centering the topic title says [HTML] Hmmm<p align="center"></p>or just plain old <center></center>
(hate how its spelt.. should be centre)
(This post was last modified: 24/11/2008 08:37 AM by J_G_.)
24/11/2008 08:35 AM
Find all posts by this user Quote this message in a reply
Jomann
Chibi :3

Posts: 558.1177
Threads: 103
Joined: 15th Jul 2007
Reputation: 1.88741
E-Pigs: 25.8968
Offline
Post: #6
RE: [HTML] Centering an entire page
J_G_ Wrote:just centering the topic title says [HTML] Hmmm<p align="center"></p>or just plain old <center></center>
(hate how its spelt.. should be centre)

hey americans made it, get over it!

[Image: Endless_paradigm_01.png]
24/11/2008 02:14 PM
Find all posts by this user Quote this message in a reply
J_G_
Monster Hunter

Posts: 706.5060
Threads: 43
Joined: 7th Mar 2008
Reputation: -2.97985
E-Pigs: 28.7636
Offline
Post: #7
RE: [HTML] Centering an entire page
why did they spell it wrong then -.-
24/11/2008 02:18 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #8
RE: [HTML] Centering an entire page
Oh!  But there's more!
"center" (centre)
"color" (colour)
"gray" (grey)

!!

At least (most of us at least) have English as one's first language.  I'd hate to learn programming if I sucked at English... >_>
25/11/2008 05:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Mickey
Down with MJ yo

Posts: 3,663.2843
Threads: 251
Joined: 26th Apr 2008
E-Pigs: 28.7300
Offline
Post: #9
RE: [HTML] Centering an entire page
J_G_ Wrote:why did they spell it wrong then -.-

You spell it wrong Erk

[Image: MiCk3Y.jpg]

[Image: battle.png]

Spoiler for link:
25/11/2008 08:12 AM
Find all posts by this user Quote this message in a reply
J_G_
Monster Hunter

Posts: 706.5060
Threads: 43
Joined: 7th Mar 2008
Reputation: -2.97985
E-Pigs: 28.7636
Offline
Post: #10
RE: [HTML] Centering an entire page
MICk3Y Wrote:
J_G_ Wrote:why did they spell it wrong then -.-

You spell it wrong Erk

I believe English originated in ENGLAND.. so how wee spell it must be right Hahaha
(This post was last modified: 25/11/2008 03:09 PM by J_G_.)
25/11/2008 03:09 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: