Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #545653

    Hi,

    I would like to control the different main sections (header, main content and footer) separately.

    Currently I am using these CSS codes:

    /*Sets max menu header width*/
    #header_main {
    max-width: 90%;
    }

    /*Sets max container width*/
    .container {
    max-width: 95%;
    }

    /*Sets max socket width*/
    #socket .container {
    max-width: 95%;
    }

    But the issue is that the first one doesn’t work the way I would like it to work. I would like the header to adjust to the given percentage from both side, but my logo doesn’t seem to move from the left to the right, stays as is, but the menu items are moving from the right to the left, towards the middle, when I adjust the percentage in this CSS code. So, not sure is there a better way of doing this?

    see my current website at allotropydigital.com

    Look forward to hearing from you soon.

    Best regards,

    Ben

    #545739

    Hi SynergyLanguageServices,

    Try something like this instead for the header:

    #header_main .inner-container {
        max-width: 90% !important;
        display: table;
        margin: 0 auto;
    }

    Best regards,
    Rikard

    #549940

    Hi Rikard,

    Thanks this worked well.

    Could you also advise me how I can change the width of the social header a similar way (where the telephone number and the social icons are)?

    Many thanks,

    Ben

    #550204

    Hi,

    Try the following as well:

    #header_meta .container {
    max-width: 90% !important;
    }

    Regards,
    Rikard

    #550327

    Hi Rikard,

    Thanks a lot, this worked well.

    Thanks for all your help guys, this topic can be closed now.

    Kind regards,

    Ben

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘custom width’ is closed to new replies.