Jump to content

How To Center Website


ivanmax

Recommended Posts

Hi everybody,

 

Would any of you be so kind as to tell me how I can make my site appear centered for every screen resolution? It doesn´t appear centered now:

 

www.pedaldoc.com

 

Also, I used layers to position the text and now it sometimes overlaps other text or pictures when the site is viewed using FIREFOX for instance.

 

How I could position the text where it is without using layers? They are really giving me a headache.

 

I would really welcome any help.

 

Thanks a lot in advance.

 

Iván.

Link to comment
Share on other sites

have html,body {text-align:center}

 

(add the rest of any css code you have in to that)

 

then, suround your entire website with a div, give that div an id #globalcontent

 

then create a new id in your css, #globalcontent, and give it

 

#globalcontent {

width: ;//width here

margin-left:auto;

margin-right:auto;

}

 

voila, that should work

Edited by hooksie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...