Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nav bar is beating me down.

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #35472
    fectio1
    Member

    I registered a new side bar within wordpress. I am using an aside to wrap my nav bar in.

    //registers new nav bar
    register_sidebar(array('name'=>'navbar',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
    ));
    }

    I need to style it with the following and it is destroying me.


    .leftnav{
    float:left;
    width: 125px;
    padding: 10px 0 0 0;
    border-right: solid 1px #000;
    }
    nav ul {
    list-style: none;
    padding-left: 10px;
    }
    nav li a {
    text-decoration: none;
    padding: 5px 0;
    }

    any help is appreciated.

    #91920
    Pentarum
    Member

    What is it doing or not doing that you want it to do? Can you post the html structure that is referencing the css?

    #91922
    fectio1
    Member

    Im trying to target each li a so I can style them correctly.. here is the html

    by default wordpress is putting that div in there.

    im using the below ode to call the menu

    can I add a fiter to strip the tags or something?

    #91986

    Hi Fectio, Did you manage to resolve your issue? Struggling to understand what’s not working? I’ve just had a look at your HTML and can’t see any anchors within most of your li’s? Is this intentional?

    #92329
    fectio1
    Member

    Hello,

    Sorry about the above listed code. I did not expand the

  • so you could see the anchors. I still was not able to do exactly what I was trying to do, but found a temporary fix. Thanks for taking the time to look at it.

    #92387
    fectio1
    Member

    Thanks alot. I played around with some of the parameters as Chris had and I did not have much luck either. I will look into the other method suggested and the filters seem like a great idea.

    #92399
    tobeeornot
    Member

    @Fectio – TheDoc has been really helpful to me getting a wordpress nav bar working to my liking. Maybe you could ask him?

    #92400
    fectio1
    Member

    I defeated my Nemesis for now.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.