Jul 25, 2008

Align To The Center

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Align To The Center

Compute
Ok i just uploaded my website and I have decided that I would like my page to be aligned to the center so that you don't have a huge white spot on the right... Anyway I have tried to put <center> right after <body> and </center> right before </body>

But for some reason it won't align to the center... I’ve tried adding align="center" on the tables but it still doesn't work, Usually my first method always worked but have no idea why its not working.

If anyone could give me suggestions I would really like that.
website url: www.corzendesign.com

Thanks

Reply

Saint_Michael
well its looks centered to me and i looked at the coding you did it right, just a quick question what browser are you using? so just in case it just your browser.

Reply

jlhaslip
It looks okay to me, too.
I'm looking at it with an iMac running IE5 and it appears centred. If it centres itself in this browser, you must have a weird one or your cache is picking up the previous version of the html instead of the newest one. Close your browser, empty your cache and temporary files and have another look at the site. Might solve the problem.
When I am testing a site I am building, I ususally 'expire' the cache using a Meta tag.
Use a previous date and your cache doesn't save the version. Makes re-loads a bit slower, but remove the meta tag after the testing is done so the caching works for others viewing your site.

For an in-depth discussion about this tag, see this link.

CODE

<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">

Expires: Wed, 26 Feb 1997 08:21:57 GMT

 

 

 


Reply

Erwin_X
I just looked at the source of your page, and I think I found the error.

CODE

Find ( line 13) :

  <td valign="middle" align="middle">
and replace this with :



  <td valign="middle" align="center">

In Internet Explorer you don't see the error visualy, but in perhaps other browers.

When this doesn't work, let us know.

Reply

Unregistered 015
Replace:
CODE

<table cellpadding="0" cellspacing="0" width="100%" height="100%">
with:
<table cellpadding="0" cellspacing="0" width="100%" height="100%" align='center'>


This should do the trick.

Reply

Dark Zero
A real easy why that i use is <div align="center">What ever you want in the center goes here</div>

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : align


    Looking for align, center

Searching Video's for align, center
advertisement



Align To The Center



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE