html - Getting rid of the list item marker. And the margin -


i have normal html <ol>

i need rid of number though.

i know can rid of list-style-type: none; leaves huge margin left of item. need rid of them both.

anyone know how?

not using list not option.

well, said want rid of margin ... how about:

ol, li { margin: 0; padding: 0; list-style-type: none } 

if don't want reset margins, have @ least reset left margin , padding of ol , lis result want:

ol, li { margin-left: 0; padding-left: 0; list-style-type: none } 

note, value of 0, units not required (ie. 0px). if goal have items flush left, , suspect is, you'll need reset padding i've indicated.

as side note, if use css reset ( ie: http://meyerweb.com/eric/tools/css/reset/ ) you'll have style things explicitly. not better cross browser consistency you'll learn quite bit too.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -