-
AuthorPosts
-
February 18, 2019 at 4:43 pm #1068454
Hi, on my site I created an header widget:
#header .widget { left: 47%; padding-top: 0; position: absolute; top: 0; transform: translate(-50%); z-index: 999; }
Why, when I change page it edit his position?
February 18, 2019 at 5:53 pm #1068496Hey Pas7o,
You want it removed from the center?
Best regards,
Jordan ShannonFebruary 18, 2019 at 7:17 pm #1068543No, If I staying in “Home Page” the header widget is more near than logo. If I stayin in “Azienda” the header widget is more near than menù. Try It!
February 18, 2019 at 7:22 pm #1068546The Azienda page doesn’t have a scroll bar. You can replicate this by testing other pages with and without scroll bars or reducing the vertical height of your browser.
try changing the left value to right.
ie
right: 47%;
February 18, 2019 at 7:25 pm #1068548I must change the value for all my webiste’s pages?
February 18, 2019 at 7:38 pm #1068558Yes, but that CSS edit will apply to all the pages.
I have also noticed that the menu is doing the same thing.
February 18, 2019 at 7:43 pm #1068565Yes, it’s true!
I changed left value to right but nothing has changed.
February 19, 2019 at 2:08 am #1068697Hi Pas7o,
It’s still left when I inspected on it, here’s a screenshot: https://imgur.com/a/DxSDjz3
Try flushing out the cache if you have any caching plugin enabled.Best regards,
NikkoFebruary 19, 2019 at 8:11 am #1068804I change it manually. Now the code is:
#header .widget { right: 50%; padding-top: 0; position: absolute; top: 0; transform: translate(-50%); z-index: 999; }
But I have the same problem.
February 20, 2019 at 2:40 pm #1069472Hi Pas7o,
I have checked it but the measurements percentage wise is still the same.
The header container is 96% of the width of your site, and if it’s the homepage it has lesser width than Azienda because of the scrollbar being added on the right.
With that minor difference in width the positioning is recalculated and has few px difference but percentage is still the same.
The only workaround this is on the header container use a px based maximum width.Best regards,
NikkoFebruary 20, 2019 at 2:43 pm #1069474The other option could be to force the scrollbar to always be visible
html { overflow-y:scroll; }
Or add more content to the pages so that they all scroll.
February 20, 2019 at 2:57 pm #1069484I believe I will listen to the advice of DigitalEssence. Thanks.
February 21, 2019 at 2:04 pm #1069945Hi Pas7o,
Yes, please do so, adding the scrollbar on the right side would make the width consistent. :)
@DigitalEssence thanks for helping out :)Best regards,
NikkoFebruary 21, 2019 at 2:37 pm #1069949I did it. You can close this topic. Thanks.
February 21, 2019 at 7:42 pm #1070070Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Header widget postion’ is closed to new replies.