Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts

    line breaks between list items

    For the life of me I can't remember how I did this before. Basically I want a hard return after each item in a list:

    1. blah

    2. blah

    3. blah

    I tried adding margins to the ul as well as the li (not listed) but to no avail.

    I always get

    1. blah
    2. blah
    3. blah


    Code:
    #highlights, #highlights ul, #highlights ul li {font: normal 8pt  "Franklin Gothic Medium", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;}
    
    #highlights ul a { color: #A0BAC5;}
    
    #highlights ul {
    	margin: 1.5em 1em;
    	padding: 0;
    	text-align: left;
    	white-space: nowrap;
    	background: url(../images/list_square.gif);
    }
    
    #highlights {list-style-image: url(../images/list_square.gif);}
    Can anyone think of anything to remedy this?

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Code:
    li {
    margin-bottom: 15px;
    }
    should work... It works in my stylesheet anyway.
    Last edited by Jutlander; 06-27-2007 at 02:06 PM.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Applying margins to the li elements should do the job.
    It's possible that another rule in your css is overriding it.
    Without seeing all the code (markup and css), it's difficult to say for sure why it's not working as it should.

  • #4
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts
    that was it.

    I had

    Code:
    #highlights ul li {margin-bottom: 0.5em;}
    took out the ul and all is well.

    Thanks for the help.

  • #5
    New Coder
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This seems to create a similar effect as well
    ul.bigspaces {line-height:200%;}
    Mark Wiseman
    allthewikis.com
    Enjoy your life and each moment in it,
    Know the purpose of every minute.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •