1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Template Family Law Firm: how to shift the menu to the left?

Discussion in 'Web Development' started by Rosalie, Dec 27, 2015.

  1. Rosalie

    Rosalie New Member Verified Member

    Template Family Law Firm: how to shift the menu (a bit) to the left, so that more items fit on the navigation menu?
     
  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    You can do this by changing the code on line 135 to 141 from this:

    Code:
    /** navigation **/
    .navigation {
        float: right;
        list-style: none;
        margin: 28px 0 0;
        padding: 0;
    }
    to this:

    Code:
    /** navigation **/
    .navigation {
        float: left;
        list-style: none;
        margin: 28px 0px 0px 0px ;
        padding: 0;
    }
     
  3. Rosalie

    Rosalie New Member Verified Member

    Thank you! This is better. Actually I would have liked to shift the menu still a little bit more to the left, f.e. about 30px, I thought this might look a little bit better, but I suppose this won't be possible.
     
  4. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    Nothing is impossible with CSS.
    Alles kan, een melkkan, een theekan, een koffiekan en een CSSkan. :) (Dutch wordplay)

    Option 1: The width of the header is 960px. (You can make this bigger).

    Option 2: The width of the logo is 362px. -> You can make this smaller.

    Option 3: You can decrease the padding between the navigation links.

    Option 4: You can add an extra class to the first navigation link so as to not have the left padding. You can make the H of Home hug the logo this way, but I don't think this will be good in terms of web design aesthetics.

    Option 5: Float the navigation left and give it a width of 960px it will be under the logo with enough space for all your links.

    Option 6: Alternative solution is a "more text link" for all your other less important links and stick them in one drop down menu.
     
  5. Rosalie

    Rosalie New Member Verified Member

    Wow, plenty of options! Mimoun, you are a genious! Thanks!!