Can I add a marker to the top of a specific item in a horizontal unordered list?
I created a cloud-themed navigation dashboard, but I donβt want all the clouds to be on one straight line, so I am trying to make sure that they are not on the same line.
None of these answers worked for me, it does not change the list items at all, so I added the code here:
HTML:
<div id="clouds"> <ul> <li id="home"><a href="#"><img src="buttons/home.png"></a></li> <li id="info"><a href="#"><img src="buttons/Info.png"></a></li> <li id="designs"><a href="#"><img src="buttons/Designs.png"></a></li> <li id="contact"><a href="#"><img src="buttons/Contact.png"></a></li> </ul> </div>
CSS
body{ background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(94,132,19)), color-stop(0.6, rgb(124,180,34)), color-stop(0.6, rgb(252,253,255)), color-stop(1, rgb(117,178,209)) ); background-image: -moz-linear-gradient( center bottom, rgb(94,132,19) 0%, rgb(124,180,34) 60%, rgb(252,253,255) 60%, rgb(117,178,209) 100% ); min-height: 500px; text-align: center; background-position: absolute; } #sun{ height: 72px; width: 72px; float: right; background-image: url('sun.png'); } #home img:hover{ background-image: url('buttons/home.png'); } #info img:hover{ background-image: url('buttons/info.png'); } #designs img:hover{ background-image: url('buttons/designs.png'); } #contact img:hover{ background-image: url('buttons/contact.png'); } #clouds ul, li{ display: inline; margin: 40px; } #clouds ul{ display: inline; } #wrap h1{ margin-top: 175px; font-family: code bold; color: white; text-align: center; text-shadow: 2px 2px 5px #000; } #wrap{ font-family: code bold; color: white; text-shadow: 2px 2px 5px #000; width: 500px; text-align: center; margin: 0 auto; } #text{ font-family: kartika; font-size: 22; -moz-column-count: 2; -moz-column-gap: 3em; -moz-column-rule: 1px dashed fff; -webkit-column-count: 2; -webkit-column-gap: 3em; -webkit-column-rule: 1px dashed fff; }
I decided to add the whole stylesheet, because there might be an error that could lead to the list item marker not working, although I cannot find any problems.
Thanks for the answers and comments so far.
It seems that changing the field of one element only works if there is a float in the list: to the left of it, you can center the list rather than float to the left to make it work?