Ok, I fixed the validity. It still is doing the same thing. When I add padding, the entire width increases.
Main Topics
Browse All TopicsUsing MSIE. I have a nested UL tree.
<ul>
<li><a href="#">Products</a></li>
<ul>
<li><a href="#">Financial Software</a></li>
<ul>
<li>Simple Start</li>
<ul>
<li>Overview </li>
</ul>
<li>Pro 2006</li>
</ul>
</ul>
</ul>
My CSS is:
ul { margin: 0px; padding: 0px;width: 181px;font: 10px verdana; font: 11px arial}
li { list-style: none; }
li a {width: 181px;;float:left; text-decoration:none; color: #000000}
ul a{ background: #A3A3A3; font: bold 12px arial; padding: 10px 0px 10px 0px }
ul ul a {background: #D0D0D0; font: 11px arial; padding: 5px 0px 5px 0px }
DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
QUESTION:
When I change the padding on the nested A to indent it (Padding-left: 10px) then it widens the entire area past 181px. How can I avoid this?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: GrandSchtroumpfPosted on 2006-06-14 at 14:17:35ID: 16906919
First, your code is not valid. UL element can only contain LI elements, not other UL elements.
You need to have your nested UL inside a LI.
Something like this:
<ul>
<li><a href="#">Products</a>
<ul>
<li><a href="#">Financial Software</a>
<ul>
<li>Simple Start
<ul>
<li>Overview </li>
</ul></li>
<li>Pro 2006</li>
</ul></li>
</ul></li>
</ul>