-
AuthorPosts
-
October 7, 2013 at 6:45 pm #171750
Hi,
I have a logo that is currently the size of 337 × 37. I’m currently using the fixed header so when you scroll down the header shrinks down in size (which is great!).
Right now on the home page, the logo shows that it is sitting near the top of the header so there is lots of blank space below it. However, if I go to a page with lots of text and I scroll down the page, the header shrinks and the logo looks perfect.
I’ve tried to add padding-top to the logo of 25px and it looks great when I don’t scroll. The minute I scroll the down the page, the logo shinks to a size that is not legible.
The perfect solution for me would to have the logo sit so that it is middle aligned with the menu and when I do have to scroll the logo maintains its existing size.
I’ve combed the forums and it seems some of the solutions required editing of JS code. I”m not a big fan of this because let’s say an update happens and I totally forget about the modification then I’m kinda screwed. Can this be done striclty with CSS only?
Thanks and looking forward to your reply.
sl
- This topic was modified 11 years, 2 months ago by slui. Reason: spelling mistake
October 7, 2013 at 11:39 pm #171945October 8, 2013 at 12:01 am #171961This reply has been marked as private.October 8, 2013 at 12:06 am #171962Hey!
Please add following code to Quick CSS in Enfold theme options under Styling tab
.home .content { padding-top: 30px; }
Best regards,
YigitOctober 8, 2013 at 12:09 am #171965Hi Yigit,
That did not work.
sl
October 8, 2013 at 12:13 am #171970Hello!
Please add !important as following and after that flush your browser cache and refresh your page a few times.
.home .content { padding-top: 30px!important; }
This will decrease top padding on home page
Cheers!
YigitOctober 8, 2013 at 12:38 am #171986This reply has been marked as private.October 8, 2013 at 1:11 am #172006Hello!
Can you create a temporary admin login and post it here privately?
Regards,
YigitOctober 8, 2013 at 1:18 am #172007This reply has been marked as private.October 8, 2013 at 1:33 am #172011October 8, 2013 at 1:37 am #172016Hi Yigit,
I still don’t see the change. :(
Do you see it on your side?
sl
October 8, 2013 at 2:02 am #172025October 8, 2013 at 2:06 am #172029Hi Josue,
Thank you so much. Can you tell me if I still need this?
.content { padding-top: 20px; }
Thanks.
sl
October 8, 2013 at 2:20 am #172032You can remove it if you want the space between the header and the content to be bigger (20px > 50px):
Cheers!
Josue -
AuthorPosts
- The topic ‘Logo Padding Issue and Sizing’ is closed to new replies.