
March 8th, 2003, 10:24 AM
|
|
Junior Member
|
|
Join Date: Dec 2002
Location: Aalborg, Denmark
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
CSS positioning
Im doing some web design, and i have used CSS to place elements. But its great as long as i use absolute positioning of elements.
I would like to know how to position all my elements centered on my page without loosing their alignment with eachother. Is it possible to do?
here's a snip of my css code
---
#HorisontalBar {
position: absolute;
top: 130px;
left:10px;
background-color:#FF0000;
width: 790px;
height: 20px;
border-color: #111111;
border-left: 1px solid;
border-right: 1px solid;
border-top: 1px solid;
border-bottom: 1px solid;
z-index: 2;
}
#VerticalBar {
position: absolute;
top: 0px;
left: 68px;
width: 43px;
height: 601px;
border-color: #111111;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
background-color:#00FF00;
z-index: 1;
}
---
the "bars" form a cross.
if i were to center this cross.. how? without losing their alignment?
|