SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <LI> image position issue

    I know I am missing something super simple but you know we all have them days.

    I am trying to use a BG image for my <li> and the words are going into the text as you can see from the image. Can someone please help me on this before I bang my head on the desk.

    Css I am using
    Code:
    ul.main {	
    list-style-type: none;
    margin-left:75px;
    }
    
    li.main {
    background-image: url('images/BT_cookie.png');
    background-repeat: no-repeat;
    background-position:   .4m ;
    font-family:Verdana, Geneva, sans-serif;
    font-size:14px;
    color:#900;
    padding:5px;
    }
    Image is attached
    Attached Images Attached Images
    Thanks In Advance

    David

  2. #2
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,820
    Mentioned
    110 Post(s)
    Tagged
    1 Thread(s)
    How about li {padding-left:20px;} ?

  3. #3
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did the trick, and I swear I tried that...
    Thanks In Advance

    David


Bookmarks

Posting Permissions

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