header image changing its position (5 posts)

  1. andresin_zs
    Posted 1 year ago #


    I'm trying to create a website and my problem is that I cannot fix the position of the header image on the different pages of the website.

    This is the home page: http://www.antransclean.eu/. It's fine, because the header image sticks to the menu above it.

    This is an example of another page: http://www.antransclean.eu/szolgaltatasok. There is a white border between the menu and the header image, and I cannot make it disappear. Do you have any idea how I could make the white border disappear? The header image should stick to the menu.

    (I am using a modified version of the AccesspressLite Theme.)

    Thank you for your help in advance.

  2. Endlyss
    Posted 1 year ago #

    There is a:

    #content {
    padding: 40px 0;

    in the css.

    That adds 40px worth of padding to the top and bottom of the element with the ID "content"

    padding basically adds whitespace to an element so that it can be spaced away from other elements.

    If you want to get rid of this gap at the top

    1. Go to Appearance -> Editor (this will bring up a style.css file
    2. Press "ctrl + F" on your keyboard (this will bring up a search prompt)
    3. Search for "#content" and look around until you see the code snippet that I posted above.
    4. replace the "padding: 40px 0;" with "padding: 0 0 40px 0;"

    this will remove the padding on the top but keep it at the bottom.

    Keep in mind though, that if you update your theme (you mentioned that you are using a modified version of AccesspressLite) your changes will be overwritten unless you are using a Child theme

  3. andresin_zs
    Posted 1 year ago #

    Unfortunately, it didn't work.
    You can see the style css and the header.php of my theme here:



    Could you please have a look at them to see what the problem is?

    Thanks a lot.

  4. Endlyss
    Posted 1 year ago #

    From what I can tell, you fixed it. On the second URL that you provided in your first post the gap between the image and the navigation bar is gone.


  5. andresin_zs
    Posted 1 year ago #

    Yes, it helped. I don't know why I didn't see it at first. Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Topic