Navbar help

Discussion in 'HTML & Website Design' started by karsintech, Feb 28, 2011.

  1. #1
    karsintech, Feb 28, 2011 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    what's the issue? Use that as background image and style Nav block.
     
    radiant_luv, Feb 28, 2011 IP
  3. karsintech

    karsintech Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its just that i wanna know how to implement it into a CSS file
     
    karsintech, Mar 1, 2011 IP
  4. FallenShadow

    FallenShadow Active Member

    Messages:
    230
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    90
    #4
    FallenShadow, Mar 1, 2011 IP
  5. clickbump

    clickbump Greenhorn

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    15
    #5
    @FallenShadow - I think you meant "no-repeat" not "repeat-none" ;-)

    Here are the valid values in case the OP needs them...

    Value Description
    repeat > The background image will be repeated both vertically and horizontally. This is default
    repeat-x > The background image will be repeated only horizontally
    repeat-y > The background image will be repeated only vertically
    no-repeat > The background-image will not be repeated
    inherit > Specifies that the setting of the background-repeat property should be inherited from the parent element
     
    clickbump, Mar 2, 2011 IP
  6. karsintech

    karsintech Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I tried it and it failed, would you like me to post my style.css file so you could take a look at it and tell me how i can succeed?
     
    karsintech, Mar 3, 2011 IP
  7. clickbump

    clickbump Greenhorn

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    15
    #7
    Yes, that will help. Also, it will help if you send the portion of html that's generated around the navbar.

    To do that, right click out in the margin (right or left side of the template) and choose "View Source". Then scan the file until you see your menu links and copy the content around that and paste it here.
     
    clickbump, Mar 3, 2011 IP
  8. karsintech

    karsintech Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This is the navbar in style.css

    .navigation {

    display: block;

    text-align: center;

    margin-top: 10px;

    margin-bottom: 20px;


    }

    and this is in header.php

    <?php if(get_option('YBN_navbar_position') == 'below'):?>
    #header{margin-bottom: 5px; height: auto}
    #header h1, #header h2 {color: white}
    #header .bar_under{height: 30px}
     
    karsintech, Mar 4, 2011 IP