jens1701
09-27-2007, 03:56 AM
Hallo everybody,
i got this little styling problem with a nested ol. This is the markup:
<ol class = "nav_main">
<li><a href="./index.html">start</a></li>
<li><a href="./pages/work.html">work</a>
<ol class = "nav_secWork">
<li><a href="./pages/comm.html">comm</a></li>
<li><a href="./pages/portfolio.html">portfolio</a></li>
</ol>
</li>
<li><a href="./pages/studies.html">studies</a>
<ol class = "nav_secStudies">
<li...
and this the corrosponding part of the layout css:
.nav {
position: absolute;
left:225px;
}
.nav * * ol{
position:absolute;
text-align:right;
margin: -21px 0px 0px -215px;
padding: 20px 120px 0px 0px;
background: url("../images/edge.png") no-repeat 178px top;
}
I need to accomplish two things here first kick the secondary nav out of the normal displaying order, so the first level nav is not interrupted by the secondary nav(the sec nav is place elsewhere), and second i need to align the elements in the secondary nav to the right. To alter the markup is not an option.
In the way i tried it above i got the problem, that it seems not possible to align elements in a container positioned with absolute: text-align: right; in .nav * * ol does not work.
Anybody got a clue how to solve this?
Greets
Jens
i got this little styling problem with a nested ol. This is the markup:
<ol class = "nav_main">
<li><a href="./index.html">start</a></li>
<li><a href="./pages/work.html">work</a>
<ol class = "nav_secWork">
<li><a href="./pages/comm.html">comm</a></li>
<li><a href="./pages/portfolio.html">portfolio</a></li>
</ol>
</li>
<li><a href="./pages/studies.html">studies</a>
<ol class = "nav_secStudies">
<li...
and this the corrosponding part of the layout css:
.nav {
position: absolute;
left:225px;
}
.nav * * ol{
position:absolute;
text-align:right;
margin: -21px 0px 0px -215px;
padding: 20px 120px 0px 0px;
background: url("../images/edge.png") no-repeat 178px top;
}
I need to accomplish two things here first kick the secondary nav out of the normal displaying order, so the first level nav is not interrupted by the secondary nav(the sec nav is place elsewhere), and second i need to align the elements in the secondary nav to the right. To alter the markup is not an option.
In the way i tried it above i got the problem, that it seems not possible to align elements in a container positioned with absolute: text-align: right; in .nav * * ol does not work.
Anybody got a clue how to solve this?
Greets
Jens