LaundroMat
Programmer
Hi,
Say I have two DIV's.
Properties are:
When I put #left" before #middle, left disappears, and the text in #middle is centered allright. And, if #left is embedded in #middle, the text in #middle is shifted a bit to the right (and thus not centered anymore).
How can I prevent the shift to the right, and keep #left visible?
Say I have two DIV's.
Properties are:
Code:
#left {
float: left;
}
#middle {
text-align: center;
background-color: #eee;
margin-top: 10px;
margin-bottom: 20px;
padding: 10px;
}
How can I prevent the shift to the right, and keep #left visible?