News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Is it safe to remove this line in index.css?

Started by Shades., June 08, 2023, 04:20:12 PM

Previous topic - Next topic

Shades.

Is it safe to remove this line in index.css?

Working on a custom theme and set the forum width to be at 90% and have moved my top menu to be above the wrapper but the menu is somewhat centered and I want it to be to the left.

Can I just remove:

max-width: 1200px;
From:
#main_menu {
max-width: 1200px;
margin: 0 auto;
width: 90%;
padding-left: 10px;
}

Seems to work fine but does that mess anything else up?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Aleksi "Lex" Kilpinen

As far as I know, it shouldn't really cause any problems, but instead of removing it completely I'd probably make it 90% as well or something along those lines. It's only a limit. 
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Shades.

Thanks, I tried to set it at 90% as well but no change. It's still left of center but not all the way left as I want it. But it works (goes all the way to left) when I remove that line all together. Just wasn't sure if it would affect anything else.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Aleksi "Lex" Kilpinen

Judging by that, 100% would probably get you what you are after. It's simply then saying that max width is the screen width.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Diego Andrés

Also change margin to margin: 0;, remove the auto.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: