WordPress.org

Forums

[resolved] Making this CSS vertical (4 posts)

  1. Joid
    Member
    Posted 8 years ago #

    I have this piece of code that i like to have vertical instead of horizontal. I've tried a lot, but nothing worked yet.


    /*- Main Menu in Header */
    ul.menu {
    list-style-type: none;
    list-style-image: none;
    margin: 0 0 0 -15px;
    padding: 0;
    position: absolute;
    width: 500px;
    color: #333;
    }
    ul.menu li {
    list-style-type: none;
    list-style-image: none;
    display: inline;
    margin: 0;
    color: #333;
    }
    ul.menu,
    ul.menu li a {
    list-style-type: none;
    list-style-image: none;
    padding: 5px 15px 6px;
    color: #333;
    }
    ul.menu li a {
    list-style-type: none;
    list-style-image: none;
    font-size: 1em;
    background: #333;
    color: #eee !important;
    margin: 0;
    }
    ul.menu li a:hover {
    background: #B5D252;
    color: #eee !important;
    text-decoration: none;
    list-style-type: none;
    list-style-image: none;
    }
    ul.menu li.current_page_item a,
    ul.menu li.current_page_item a:hover {
    color: white !important;
    background: #48f;
    text-decoration: none;
    list-style-type: none;
    list-style-image: none;
    }

    Any help would be appreciated

  2. Cobalto
    Member
    Posted 8 years ago #

    what?

  3. vavroom
    Member
    Posted 8 years ago #

    I think what you're after is going to happen if you remove
    display: inline;

    Of course, there's a LOT of styling that is unecessary there. You might want to simply remove all styling and start from scratch.

  4. Joid
    Member
    Posted 8 years ago #

    Thnx @ vavroom
    That was it indeed.

    But finally I'm using it horizontaly :)
    Oh and the unnecessary styling is gone now

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags