1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

[NEED HELP] Indentation Problem

Discussion in 'HTML & Website Design' started by jawinn, Jan 8, 2008.

  1. #1
    Simple one.

    How do I indent a list of line items? Here is the code:

    
    
    <li>information line example</li>
    <li>information line example</li>
    <li>information line example</li>
    <li>information line example</li>
    <li>information line example</li>
    
    
    Code (markup):
    When I just use this code the bullets for the line items back right up to the div section. I want them to be moved slightly to the right. Thanks in advance.

    J
     
    jawinn, Jan 8, 2008 IP
  2. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In your CSS file, to make just the text move in, add the following
    
    li
    {
    padding-left: 10px;
    }
    
    Code (markup):
    to move the text and the bullets, add the following.

    
    li
    {
    margin-left: 10px;
    }
    
    Code (markup):
    Nick
     
    nicangeli, Jan 8, 2008 IP
    jawinn likes this.