开发者

<ul><li> indent problems

How am I suppose to remove the indent from my uno开发者_运维百科rdered list. when inspecting element i can see what looks like padding being that it is between the width of the box and the content, but setting padding to 0px and margin to 0px does nothing the list starts further into the header than it should. what do? is this a common problem?


Add:

UL, LI
{ padding:0px; margin:0px }

To both the UL and the LI elements


All browsers ship with certain basic stylesheets that provide basic formatting for common elements. I'm assuming you haven't overridden all of those stylesheet definitions for your list, so you could include a so-called reset stylesheet - the one from Eric Meyer is very popular: http://meyerweb.com/eric/tools/css/reset/ - or further inspect what is formatting your list by using tools such as Firebug for Firefox or Dragonfly for Opera.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜