Forums

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

Home Forums CSS How to adjust the width?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #185148
    web_editor
    Participant

    How to adjust the width of main nav? And display it to the right? Like this and insert the symbol “|” in every menus

    Here’s the CSS

    Here’s the link of the site

    #185156
    Paulie_D
    Member

    Firstly, I don’t use the pipe (|) symbol as a delimiter/separator.

    It’s not semantic and isn’t accessibility friendly for screen readers and there are better options (a right/left border for one).

    To make the links ‘larger’ add padding

    If you want it on the right, don’t float it to the left, float it to the right….obvious really.

    #185159
    web_editor
    Participant

    How to reduce the width of bg color of main nav?

    #185162
    Paulie_D
    Member

    Seems to be defined here

    .main-navigation {
    clear: both;
    display: block;
    font-weight: 300;
    font-family: 'Arial', 'sans-serif';
    font-size: 9px;
    position: relative;
    border-bottom: 3px solid #787878;
    background: #787878; /* here */
    margin: 0 auto;
    text-align: center;
    float: right;
    }
    

    So it covers the whole div.

    #185264
    web_editor
    Participant

    I try to put this width:50% but the nav is expanding to the left

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