Hello, I’m new to the forums, my real name is Carlos and I’m a 26 year-old back-end programmer (mostly J2EE) from Colombia that is currently getting into the realm of front-end design…
Now onto the subject… I’m working in a little, yet important, project to get myself used to xhtml and css, and with help of this site I’ve been able to solve a lot of weird behaviors except the one I will describe next.
I have a side navigation bar with an accordion widget from the jQueryUI library. Each accordion level has a content area with a unordered list of some navigation links as you can see in the screenshot below taken in Firefox 3.5 (sorry for the crappy quality):[attachment=1]ole000.JPG[/attachment]
As you can see, the bullets align nicely with the middle of the links, it also works smoothly in Safari 4, Opera 10, Chrome 3 and IE8, but when I switch to IE7, the bullets align to the baseline of the "il" element and it looks terrible, not to mention it disorients the user, as you can see in the following screenshot (forgive the squared corners, hehehe):
I tried messing around with the vertical-align property but haven’t been able to get the desired result (the one in the first screenshot)… Alingning to "top" places the bullet way too high…
I would try to apply list style type to the li instead of the ul and see if that may solve your problems. Worse case scenario I would look into using an image for your li’s with background positioning. This seems to work pretty well cross browser / platform for me.
Thanks Moxy, I tried applying the styles to the <il> but it didn’t work either. So I decided to give a chance to the background image workaround which I was trying to avoid because I thought it would be too complicated, but to my surprise it was quite simple and now it works the same in every browser I tested, thanks again!
Admins can tag this thread as solved if they consider it necessary…
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".