Can I make bulleted lists on my site that use <ul> and <li> tags have different indentation distances?
I would like to highlight some elements, but the default is too large and the sans-indent is too small.
<ul style="padding-left:20px"> <li>Element 1</li> <li>Element 2</li> </ul>
I think the default indent is 40px , this reduces its amount.
40px
li { margin-left: 10px; } ul li{ margin-left: 20px; }
A slightly cleaner way to adjust both indents. Margin and margins are different, so use what suits you.
Source: https://habr.com/ru/post/650505/More articles:TextMate Haskell Bundle - haskellWhen does compiled code differ from the evaluated shell? - erlangLeft Join, which always includes null entries - nullCircular Resolution - .netembarrassed by capital I'm in vim - vimGetting the number factors - performanceDelphi: get router MAC address - networkingMultiple user roles in Ruby on Rails - authenticationHow to make Visual Studio 2010 recognize file extensions as C # / ASPX / C / C ++ files? - c ++How to get the correct MethodInfo object when the class uses generics and general type parameters - genericsAll Articles