|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Auto Center
Any Scripts that auto center a page.. what i mean by automatic center is dat.. the page be will centered on any resolution. any scripts for me guys?? thx..
|
|
#2
|
|||
|
|||
|
heheh simple html and css will do this for you.
if you prefer the table structure just create an outer table and set it to width,height = 100% ![]()
__________________
-- Jason |
|
#3
|
||||
|
||||
|
Apply this CSS code to your file.
Code:
body {
text-align : center;
padding : 0px;
margin : 0px auto;
height : 100%; /* for vertical alignment - optional */
}
|
|
#4
|
|||
|
|||
|
kk.. wow!! thanks i will try this, hopfeully it will work
![]() |
|
#5
|
|||
|
|||
|
well i didnt use that method.. but i centered the page in dreamweaver.. but now here is a prob... i have made a drop down box in another layer (in dreamweaver) My page is centered and the drop down box has an absolute value... so.. i cant have the drop down box centered
, please help |
|
#6
|
||||
|
||||
|
Have you got the page posted live somewhere, so we can take a look at it?
|
|
#7
|
|||
|
|||
|
Quote:
I think what you are looking for is <div style="position:absolute;"> <div style="position:relative; left:10px; top:100px;">content</div> </div> You need both of them because if you just do relative the div still takes up space in your layout, and you use the relative to actually position the content. |
|
#8
|
|||
|
|||
|
gnagey, you got the absolute and relative backwards.
http://www.stopdesign.com/articles/absolute/ http://www.autisticcuckoo.net/archi...tively-absolute P.S. Why did you respond to a thread that's about 2.5 years old? |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Auto Center |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|