Add A Vexel Manage Vexels Account Options User Profile Your Messages Your User Page
Latest Most Favourites Most Comments No Comments
Tutorial Listing Tip Guide
Forum Index Recent Topics Search Forum
FAQ Chatroom Site Themes Competitions
Current Competition Archives
Collaborations
View Collaborations Add A Collaboration
Articles
View Articles Submit an Article
Member List Related Links Vexel Fanlisting Site Statistics

User Login

Featured Member

Son Mur Ft. Lee Jung Hyun

Link (info)

Pixel2Life.com

Search www.Vexels.net

 

Message Boards

Recent Search
Online Related > Website Design > Centering A Layout ? Page: 1
scorpio   26th April 2006 - 06:08 pm
 
Hi (: I was wondering if anyone could help me out, I am trying to center a layout (I don't have it online) But I simply used the < center > tags to center the background layout image, but now I cannot seem to find the correct coding to use on the content ?

Any help would be greatly appreciated.
  

Jenny
  26th April 2006 - 06:20 pm
 
Nononono, never use the <center> tag to center well, anything. :-/ (of course, I'm talking in xhtml terms but eh..)

Use CSS. :D

#layout { width: ###px; margin: 0 auto; }

You can then use floats to float your content and such. Or you can use absolute positioning.
  

Echoia
  26th April 2006 - 06:43 pm
 
Well, I haven't done this in awhile I think... but if I can recall, it goes like this

body {
text-align: center;
}

#divid {
margin: 0 auto;
width: #px;
}

if you want to throw your background in there add to the body

background: url(image.jpg);
background-position: top center;

That allows you to not just place the image on the page and then put divs over it but actually make the background a background.
  

scorpio   26th April 2006 - 08:18 pm
 
Ekk I was hoping to do this without CSS. I hate CSS. Its way over my head. I'll give this a shot though, thanks fellas (:
  

Seven
  26th April 2006 - 08:23 pm
 
^^CSS owns, you must learn to love it. :)
  

Kat   26th April 2006 - 09:16 pm
 
I use < p align=center> < /p> it works well for me!
  

Online Related > Website Design > Centering A Layout ? Page: 1


Reply to thread

You must register or login to reply.
  All vexels © their respective owners. Do not use them without consent.
www.Vexels.net © 2005 · Current Theme by Linda

Related Links: