|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to center whole site?
okey i designed da whole site but i wann center the whole site? helP? please?
|
|
#2
|
||||
|
||||
|
Center it...horizontally, vertically? Center the text?
If you have a block-level element a width, margin:auto; will center it horizontally within another element. Clarify and include a link to your site if you can, the answer to your question depends on your layout. |
|
#3
|
|||
|
|||
|
Quote:
lite let say my web site is on they left top and i wann everything 2 be center like horizontally and vertically? how can i do it? |
|
#4
|
||||
|
||||
|
Quote:
Again, how you center depends on your layout/content. This will center a site horizontally: PHP Code:
Vertical centering usually requires you know the exact height of your element and just what you do depends on that, so I cannot give a 'general' howto on that. Check out DeadCentre for a technique I've used, or google 'html center vertical horizontal' for a plethora of pages. jakpsatweb has a vertical centre solution that shows promise, but I haven't tested it myself yet. Good luck.
__________________
If your question has been answered, please finish out your thread with a post on what worked. It helps future people searching for answers and doesn't leave those helping you wondering. Did I help? Consider adding to my reputation (Click on the
above).You ended that sentence with a preposition!
|
|
#5
|
||||
|
||||
|
Or
What I do when I want to make sure it's centered (I use dreamweaver for touchups) is just cut and paste the whole site into 1 table, and center the table. voila1
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > how to center whole site? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|