Page 1 of 1
Tableless problem
Posted: Sat Apr 22, 2006 2:56 pm
by powerPT
Hi guys!
I have a problem, the solution may be easy but even reading some tutorials I don“t have the answer.
Imagine that tha layout is just two layers(<div>), one top and another in the bottom.
What is happens:
Well, that text is under the bottom layer

What I can add tho CSS to solve this?
Capiche?

Posted: Sat Apr 22, 2006 5:50 pm
by John Cartwright
post your code.
Posted: Sat Apr 22, 2006 8:45 pm
by powerPT
I think that only a part of CSS is necessary:
Code: Select all
div.main { /* Where main content is(the top layer) */
position:inherit;
left:208px;
top:233px;
width:475px;
}
div.bottom { /* the bottom layer */
position:absolute;
left:208px;
top:488px;
width:475px;
height:36px;
background-color: #5276B0;
}
Thanks in advance
Posted: Mon Apr 24, 2006 9:12 pm
by Roja
powerPT wrote:I think that only a part of CSS is necessary
I think that only a part of the answer is necessary. Just change the
Posted: Tue Apr 25, 2006 10:07 am
by pickle
It looks like the problem is the fact that you've set the bottom class to have an absolute position. That means that come hell or high water, that div is going to be at 488 X 208 px, regardless of other content. Changing the position to 'relative' might change it, but we can't be sure without seeing all your code (though I can understand your reasoning for only showing some of it).