Fix position of menu / social icons in header
LightHunters
Registered Users Posts: 15 Big grins
Hi there!
I redesigned the header of my website ( http://light-hunters.com ), so everything is in one line. I have added a logo, the menu, social icons and a html button for paypal.
Displaying the website on an FHD screen looks great, but if somebody is using a screen with lower resolution, everything gets messed up. The menu gets line breaks, also the social buttons. The paypal button gets cut off screen. This behaviour can also be seen when you simply resize the browser window. While the menu gets line breaks, there is still plenty of space between the menu and the social icons.
Any suggestions on how to fix this? I have contacted SmugMug hero Tom, he recommended to ask you guys here. Thank you all!
Tim
I redesigned the header of my website ( http://light-hunters.com ), so everything is in one line. I have added a logo, the menu, social icons and a html button for paypal.
Displaying the website on an FHD screen looks great, but if somebody is using a screen with lower resolution, everything gets messed up. The menu gets line breaks, also the social buttons. The paypal button gets cut off screen. This behaviour can also be seen when you simply resize the browser window. While the menu gets line breaks, there is still plenty of space between the menu and the social icons.
Any suggestions on how to fix this? I have contacted SmugMug hero Tom, he recommended to ask you guys here. Thank you all!
Tim
Tagged:
0
Comments
Remove this:
Remove the
max-width: 80%;
here:Remove the widget spacer between your menu and the social icons.
Increase the nav widget's width to 55%.
Add this to your theme's CSS:
That should get you close.
NOTE: There is a bug in the forum's mark-up. The media query is broken.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
thanks for your answer, your code is making the page much better on smaller screens! :smile:
Is there a way to move the social icons and paypal button a bit more to the right? Or will this mess up the behaviour when displayed on smaller screens?
Thanks again and best regards,
Tim
Decrease your social icons and paypal button widgets by 5% and add 10% to your menu widget.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
You didn't add the media query to your CSS. There is a bug on the markup, so you need to substitute the
(at)
with the "at symbol" before the media text.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
There is no special code to just put your logo, menu and social icons on one line. Just move the menu and social blocks next to the logo block. You should set the containers' width to something like 15%/70%/15% (logo/menu/social). You may need to adjust them for different devices. If you need help with that, then just post your question in a new thread.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Ok Mike, I'll try to do it. Thanks for the advice.
Sorry for not answering, good we have somebody like @Hikin' Mike here
No problem. True, especially when using CSS, it's difficult for me xD