Increasing Menu size
-
[ Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics. ]
Hello,
I would like to increase the width of my menu bar, but i’ve no idea how to accomplish that.
the menu covers like 80% of the page width, i would like it to cover 100% of it.
here’s my page
-
Hello @oliviervanhoudt,
It’s happening because the menu is inside the.siteclass which has a padding like this:.site { max-width: 1153px; margin: 54px auto; padding: 54px 108px; }So what you can do is use absolute positioning to get the menu-bar full-width without any relation to the wrapper class
.site, like this:#masthead { position: absolute; left: 0; right: 0; }This will cause the content of the site to overlap with the header, so to solve it you have to pull the content wrapper down using CSS margin:
.site-content { margin-top: 320px; }Finally, your ribbon image on the side will also move out on the right side, so pull ribbon image inside, like this:
.lintje-trans { position: absolute; top: 0; right: -90px; z-index: 1; }Hope this helps π
hi @otpidusprime !
Thank you so much!
maybe you can help me with another problem? ;D
at the top of the page you see “poeliersbedrijf van hemert, het poeliersbedrijf wat met u meedenkt” and the 2 chicken heads.
but above that there is a big white space..i want to make that white space smaller but still want my chicken heads to line up with my main menu, but cant really find how to accomplish that..
greetings
Olivier
On the line number 1924 of your stylesheet, you have this code:
.site { max-width: 1153px; margin: 54px auto; padding: 54px 108px; }So modify this code by reducing the top padding in order to reduce the white-space at the top:
.site { max-width: 1153px; margin: 54px auto; padding: 15px 108px 54px 108px; // top right bottom left }As you can see i reduce the top padding from 54px to 15px in order to reduce the white-space, so adjust this value according to you to get your desired result.
Hope this helps π
Thank you so much!
@oliviervanhoudt glad i could help π
i have another problem @otpidusprime π
the red star thing (lintje-trans) in the upper right corner is in different positions on different browsers/ desktops..
Also the footer content is messed up in internet explorer
is there a way to fix this?
-
This reply was modified 9 years, 1 month ago by
oliviervanhoudt.
-
This reply was modified 9 years, 1 month ago by
oliviervanhoudt.
-
This reply was modified 9 years, 1 month ago by
oliviervanhoudt.
@oliviervanhoudt It works differently in others browser because you maybe using really old browsers. Internet explorer is a really old browser(max people do not use it anymore, as it has been replaced by Edge), so you dont have to worry about it. If you are still worried then you can target CSS to internet explorer only using:
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /* IE10+ CSS styles go here */ }And for other browsers i recommend you to update them. Because i check you site on Chrome, Firefox, Opera, Vivaldi, Edge and even on the Blisk Browser… Everything looks the same on all of them.
If you have updated all of the browsers and still facing problems then, search for “browser specific CSS”, you will find a lot of results(specially on StackOverflow) to target browsers using CSS.
Let me know if it helps π
Hello!
i didn’t know but i’m using microsoft edge instead of internet explore.
this is the problem i encountered on microssoft edge.
do you see this problem on your ME to?
greetings
Oke wow now i tried to delete lintje-trans ( the red star in the upper right corner) and now my whole background shifted up or something..
you can still see a bit of the background at the top of the page :/
help :O :'(
@oliviervanhoudt apologies for the delayed response.
Seems like you have removed the star.
Do you still need help with this?
Hi man!
i fixed it myself π so that wont be necessary, still thanks for the offer πBut i have another problem! if you take a look at my page you will see a thin white stripe at the top of the page above the blue logo.
i tried to get rid of it but cant really find a way to accomplish my wishes π
i hope you can help with this!
Greetings
Hi man!
i fixed it myself π so that wont be necessary, still thanks for the offer πGlad to hear. π
But i have another problem! if you take a look at my page you will see a thin white stripe at the top of the page above the blue logo.
i tried to get rid of it but cant really find a way to accomplish my wishes π
i hope you can help with this!
I cannot see any white strip and no blue logo either. I suppose you fixed this yourself?
Let me know π
Again, apologies for the delayed response! This week has been very hectic for me. π
yeaaaah i fixed the white stripe!
cant you see this?!
https://snag.gy/ECdOJA.jpg
there’s something wrong if you cant :ONo problem man! π you helped alot!!
@otpidusprime-
This reply was modified 9 years ago by
oliviervanhoudt.
-
This reply was modified 9 years ago by
oliviervanhoudt.
cant you see this?!
https://snag.gy/ECdOJA.jpg
thereβs something wrong if you cantI dont understand? What cant i see?
The black strip? or something else?yeaaaah i fixed the white stripe!
Glad to hear! π
No problem man! π you helped alot!!
@otpidusprimeThanks for understanding and so glad i could help! π
-
This reply was modified 9 years, 1 month ago by
The topic ‘Increasing Menu size’ is closed to new replies.