|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
please anybody tell me how to put css object exactly in the center of the creen without HTML tables? is it possible?
<style type="text/css"> <!-- .hdr{ border: 1px solid #000; height: 120px; width: 700px } --> </style> TNX! Last edited by romalong : September 29th, 2003 at 05:07 AM. |
|
#2
|
|||
|
|||
|
tyr adding this, but i am no css guru:
PHP Code:
__________________
Ryan Jones (RyanJ) |
|
#3
|
||||
|
||||
|
Code:
body
{
text-align: center; /* IE fix, see below */
}
.hdr
{
border: 1px solid #000;
height: 120px;
width: 700px;
margin-left: auto;
margin-right: auto;
}
There is another solution as well: Code:
.hdr
{
position: relative;
left: 50%;
margin-left: -350px;
}
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#4
|
||||
|
||||
|
oh, greate! thank u!
all i have to do is just compose some graphic,text and borders without common html tables in order increasing load speed. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > centering css object |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|