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
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
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
Hi,
Try the following as well:
#header_meta .container {
max-width: 90% !important;
}
Regards,
Rikard
Hi Rikard,
Thanks a lot, this worked well.
Thanks for all your help guys, this topic can be closed now.
Kind regards,
Ben