Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2324

    I need to add a Call Us (000-000-0000) line next to the menu and style it, but I can’t get the line to display after the menu or before it. It has to be right beside the menu. Any help?

    #37570

    An easy solution would be to use absolute positioning. First change the menu position in style.css:

    .nav{
    position: inline;
    /*right:20px;*/
    /*top:30px;*/
    float:right;
    list-style-type: none;
    list-style-position: outside;
    margin:0 auto;
    margin-top:45px;
    z-index: 5;
    }

    with i.e.

    .nav{
    position: inline;
    /*right:20px;*/
    /*top:30px;*/
    float:right;
    list-style-type: none;
    list-style-position: outside;
    margin:45px 80px 0 0;
    z-index: 5;
    }

    This will shift the menu to the left (80px). Then create a div like:

    <div id="phone">My number</div>

    and position it like:

    #phone{
    position:absolute;
    right:20px;
    top:45px;
    }

    Obviously you need to adjust the values to your requirements.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Need to add text next to menu’ is closed to new replies.