Building a vertical menu and when I put list-style-position to inside, it forces text to the next line. But when it’s reinforced as outside, it places it correctly but it’s not where I want it.
Here’s a quick snippet of the markup, I’ve obviously done something wrong or missed something obvious out.
Have you tried putting the list-style-type and list-style-type position into your <li>? I’ve put these two declarations inside the <li> rule and it seems to work.
Try margin-left then. You haven’t really said what’s wrong with it as is (unless I missed it). Perhaps post a screen shot of what it looks like and how you’d like it to look.
From the problem you see in the current test page, it’s down #navigation having display: block;
Although I thought that display block is exactly what you should have for using a vertical menu ?
When I remove display block from .a the <li> list style goes on the same line as the <a> text, however then the actually clickable link is only the text and not the actual whole <li> area.
If you want to change the vertical position of the bullet, that’s impossible (cross browser)
However, you can use a bullet IMAGE and place that as the background of hte <li> and you can use the background position property to move it wherever you want. You’ll have to remove the list-style on the <ul> now if you go that approach :).
It’s cool. I know where I’ve went wrong and what exactly is causing it the <a> to go to a new line.
From putting display: block; AND width:100%; into the .a markup together, it’s forced it to take up the FULL 298px of the Nav. This isn’t entirely a fault, but it became the issue when I added a list-type; - for the reason that it takes a part of the width up, when there was no width left, with .a taking the full width:100%;, thus forcing the <a> to the next line.
The background .il method would do, or background images altogether in order to keep the full <IL> clickable.
Or is there another way to keep the full list item clickable?
The concept of full width links are easy, the anchor must be a non-inline leement and have (by either default or set) a width to tkae up the full area.
Right now the test page has the links spanning across the entire item.