Editing One <li>

Discussion in 'CSS' started by Borduhh, Nov 18, 2010.

  1. #1
    Hello,

    I am looking to just edit the home <li> on my blog (http://www.outplaypoker.com/poker-tips). I need to add the following code:

    border-bottom-left-radius: 8px 8px;
    border-bottom-right-radius: 0px 0px;
    border-top-left-radius: 8px 8px;
    border-top-right-radius: 0px 0px;
    PHP:
    Right now I have it as:
    .menu-header-menu-container #menu-item-4 li:hobver {
    border-bottom-left-radius: 8px 8px;
    border-bottom-right-radius: 0px 0px;
    border-top-left-radius: 8px 8px;
    border-top-right-radius: 0px 0px;
    }
    PHP:
    Any suggestions on how to fix it?

    Best Regards,
    Nick
     
    Borduhh, Nov 18, 2010 IP
  2. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    instead of hobver try hover :rolleyes:
     
    GWiz, Nov 18, 2010 IP
  3. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #3
    hah sorry that was a DP mistake... I have it saying hover in the actual code...
     
    Borduhh, Nov 19, 2010 IP
  4. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #4
    OK, here is the code that worked. I can now see the code in the editor, but the <li> still doesn't have curved borders?

    .menu-header-menu-container ul li.menu-item-4 a:hover {
    -moz-border-radius: 8px 0px 0px 8px;
    -webkit-border-radius: 8px 0px 0px 8px;
    border-radius: 8px 0px 0px 8px;
    }
    PHP:
    Any Ideas?
     
    Borduhh, Nov 19, 2010 IP
  5. ronc0011

    ronc0011 Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you have the <li> tags defined in a style sheet i.e.

    
            li
             {
               border-bottom-left-radius: 8px 8px;
               border-bottom-right-radius: 0px 0px;
               border-top-left-radius: 8px 8px;
               border-top-right-radius: 0px 0px;
              }
    
    Code (markup):
    You can add a style to an individual li tag on the document i.e.

        
                <ul>
                      <li style=" border-top-right-radius: 20px 20px;font-family:Tahoma;">some stuff goes in here</li>
                      <li>some stuff goes in here</li>
                      <li>some stuff goes in here</li>
                      <li>some stuff goes in here</li>
                </ul>
    
    Code (markup):
    The inline styling will over ride the style defined in the style sheet. If you only change one thing at the inline level the rest will be styled by the style sheet.
     
    ronc0011, Nov 19, 2010 IP
  6. littlewing1977

    littlewing1977 Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    You could also use a class for that list item.

    <li class="[I]MyClass[/I]"> Text</li>
    Code (markup):
    On the stylesheet:
    .MyClass
              {
               border-bottom-left-radius: 8px 8px;
               border-bottom-right-radius: 0px 0px;
               border-top-left-radius: 8px 8px;
               border-top-right-radius: 0px 0px;
              }
    Code (markup):
     
    littlewing1977, Nov 19, 2010 IP