olking
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by olking
-
-
did you mean like this :div.list{position:absolute;left:100px;width:100%;padding:0;margin:0;list-style-type:disc;font: 900 15px arial;color:#996600;}and in body:<div class="list"><ul><li> Road accidents</li><br><li> Habitat destruction - urban development</li><br><li> Dog and cat attacks - be responsible with your pets</li><br><li> Disease - adverse weather conditions</li><br><li> Flying into windows</li><br><li> Poisons in the environment -many household substances are toxic to wildlifeeg. fly spray, herbicides</li></ul></div>I tried that and still no luck.I am very much a newbie in css one very strange thing.I am writing in dreamweaver and the markers show up ok in the wysiwyg but when I view them in firefox or ie6 they dont show
-
Put all this inside a <DIV> and change its style through CSS!
-
Thank you for your suggestion, but I have tried it and am sorry to say that it doesn't workI think you should apply the style to the List item -li.list{position:absolute;left:100px;width:100%;padding:0;margin:0;list-style-type:disc;font: 900 15px arial;color:#996600;}
Then in the body:-
<ul><li class="list"> Road accidents</li><br><li class="list"> Habitat destruction - urban development</li><br><li class="list"> Dog and cat attacks - be responsible with your pets</li><br><li class="list"> Disease - adverse weather conditions</li><br><li class="list"> Flying into windows</li><br><li class="list"> Poisons in the environment -many household substances are toxic to wildlifeeg. fly spray, herbicides</li></ul>
-
I have an unordered list and am trying to apply markers to it.The code I am using is as follows:In the head:-ul.list{position:absolute;left:100px;width:100%;padding:0;margin:0;list-style-type:disc;font: 900 15px arial;color:#996600;}Then in the body:-<ul class="list"> <li> Road accidents</li><br> <li> Habitat destruction - urban development</li><br> <li> Dog and cat attacks - be responsible with your pets</li><br> <li> Disease - adverse weather conditions</li><br> <li> Flying into windows</li><br> <li> Poisons in the environment -many household substances are toxic to wildlife eg. fly spray, herbicides</li></ul>I get the list as I expected except there are no disc markers.I have tried it without the position absolute, but that is no good either.Can anyone help me with this?
list styles in css
in General
Posted
jhaslip,Thankyou very much.this has done the trick.I will have to look at precedence in css in the future.PrateekThank you also for your interest.Olking