Center vetically menu
konan65
Registered Users Posts: 13 Big grins
In my website I'm trying to center vertically the right menu
I've tried different solutions, but I've never been able to do it.
Another request: I'd like to add a text between the menu and the logo, but if I do that, all the graphics will be blurred from mobile, and I can't understand what I have to resize
Thank you very much to anyone who can help me
0
Comments
We need to see your website first. Please post your site.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
The site is www.ivannotarphoto.it
If your talking about this:
Add this to your theme's Custom CSS section:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
No, i want to center vertical inside the div the horizontal menu
Add
text-align: center;
to the CSS from above. Then you'll need to add another (spacer) block to the right. Set all three blocks for 33%.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
It doesn't work, maybe I haven't explained what I'm trying to do:
I've got this div highlighted in blue and I'd like the menu to be vertically centered inside, and now it's fixed at the top.
with
text-align: center;
the menu is centered horizontally, but I would like to keep it aligned to the rightwhy do I have to add a spacer on the right, for the title on mobile? If it is for that I have already tried to set the width to 33% for all the elements but on mobile the page is not displayed well however
That helps a lot.
Add this to your Theme's CSS Section:
Looks like this:
Now that I understand what your talking about, you don't need it.
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 a lot.
Amy suggestions about the problem on mobile view with Hamburger menu and title?
Are you wanting to add text only on mobile like this?
If that's the case you need to add a HTML/CSS Block between your logo and your menu.
Add this to your HTML section:
<div class="header-text"><p>Ivan Notarstefano Photography</p></div>
Add this to the CSS section:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
No, I want to add the title always, I tried both with an html block and with a title block, on desktop I have no problems, but on mobile, with both methods, I have some display problems
html desktop
html mobile
html code
title desktop
title mobile
Since you removed the text. I can't help. I also don't know how you want the text to look.
Where do you want your logo on mobile?
Where do you want the text on mobile?
Where do you want the hamburger menu on mobile?
For me to help you you need to put your text back. Please use the HTML/CSS block.
Add this to your HTML section:
<div class="header-text"><p>Ivan Notarstefano Photography</p></div>
Add this to your CSS section:
It's not going to look as you wanted now, but I need to see it live.
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, I added the title again
I'd like to have the logo on the left, the title in the middle and the menu on the right (the burger for the mobile), both on desktop and on mobile
Add this to your Theme's Custom CSS Section:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Hi, I just noticed a problem on my site on mobile
How can I fix it?