Topic: CSS Postioning Question
I was wondering if any one can help me out with something I am trying to do with positioning "boxes".
I have a left column navigation that is generated based on user access rights. I wont bore you with the code logic here. What I am trying to do its this.
Say I have a default navigation menu box, (not logged in), on the left hand side of the page that that has the following rules applied to it:
#navBox1 {
position:absolute;
width:150px;
top:100px;
left:20px;
border:1px solid black;
background-color:#C8CCD0;
padding:0px;
z-index:2;
}
And I want to add another navigation menu box just below it that has a 20 px space between the bottom part of "navBox1", and the top of the new navigation menu box, call it "navBox2". The height of "navBox1" will adjust depending if the user is logged in or not. When the user logs in, "navBox2" should appear just below "navBox1" with a 20px pad between them. "navBox2" will also adjust its size and contents depending on the users level of access. To further complicate matters, I also need to have a 3rd "navbox" below "navBox2" that will also adjust its height automatically based on the users level of access.
The logical end of the menu building is in place. The markup was all done with tables. (I know, ugg!) I am now trying to go to the next level and update it to today's "web standards" and make it a CSS site thats XHTML 1.0 strict.
Any takers? I would greatly appreciate it. thanks in advance!