Viewing 30 posts - 1 through 30 (of 30 total)
  • Author
    Posts
  • #493523

    Hi all!
    I’ve just bought the Enfold Theme and slowly trying to get used to it.
    I have intensively used the forum “from the outside” so far to find helpful answers for my needs … but getting stuck on this one.
    I need your help to understand how I can create a gap/space between my Header (logo area heading) and the main content container so that it shows the backgroud image of my Body.

    For info, I have a general boxed layoud and a streched home page that shows fullscreen slides.
    All my excuses if this topic has already been anwsered and missed it in my search.
    Thanks in advance for your guidance.
    Steph.

    #493698

    Hi Steph!

    Go ahead and send us a link to your page and take a screenshot highlighting exactly what your trying to do so we can get a better idea.

    Regards,
    Elliott

    #493752

    Hi Elliot!

    Thanks for your quick reply.
    I tried to elaborate the deisgn I would like to get in the following image :
    Add a space between Header (logo area) and main content container to show Body background image in between

    Hope this image is clear enough!

    Thanks in advance,
    Steph.

    #494126

    Hey Steph,

    Thanks for the images, could you send a link to the page in question as well please?

    Regards,
    Rikard

    #494216

    Hi Rikard,

    Thanks for your reply.
    Here is the link :

    Thanks for your advice.
    Steph.

    #494298

    Not sure the link went through:
    http://idetox.voyage/testmenu1/

    #494677

    Hey,

    Thanks for that but I just get a blank page with a dark footer, no information at all on the page?

    Thanks,
    Rikard

    #494689

    Hi Rikard,
    Now you should be able to access the page.
    Sorry, I forgot to remove the maintenance mode.
    Thanks,
    Steph.

    #495233

    Hi!

    I tried to visit the page a few times but it’s not loading: http://idetox.voyage/testmenu1/

    Best regards,
    Ismael

    #495242

    Hi Ismael,

    I don’t understand as it works on my side. I also tried it on several devices …
    Have you tried http://idetox.voyage/ and then access the “testmenu1” page via the header menu?

    Thanks in advance to let me know,
    Steph.

    #495911

    Hi Guys,

    I can’t imagine my request being too difficult for you to answer.
    Please let me know if the image posted on August 26th is not clear enough.
    Thanks again for your help,

    Steph.

    #496253

    Hi!

    Sorry for the delay. I can see the site now. Try to disable the page’s header transparency then add this in the Quick CSS field to create a gap under the header:

    #main {
        margin-top: 100px;
    }

    Best regards,
    Ismael

    #496327

    Hi Ismael!

    Thanks for your reply.
    It indeed creates the gap under the header when the header is not sticky.

    I have a fullscreen slider on my home page and it also creates a gap here, showing the backgroud image.
    What would be your suggestion to have this gap on all my pages BUT my home page with this fullscreen slider?

    Second question : in the Header configuration of having the Logo above and menu below, how can I have a transparent backgroud where my logo image sits (so that it shows the Body backgroud image below) and a non transparent background color for the menu?

    Thanks in advance,
    Steph.

    #496554

    Hi!

    1.) use this code to control it only on your homepage:

    .home #main {
    margin-top: 0px;
    }
    

    2.) Not sure what you mean and it does not sound as a theme related issue to me. However, you can have a transparent logo when using png-24 format. You can achieve that for example in Photoshop.

    Cheers!
    Andy

    #496598

    Hi Andy,

    Thanks for the code to avoid the margin on home page. It works just perfect!

    As for the second question: my logo is already in a transparent PNG format as it shows on my home page http://idetox.voyage/
    (Actually both the logo and the menu below it are transparent and set as such in “Header visibility and transparency” of the page configuration).

    I would like to have the same transparency of the area where the logo sits (but not for the menu strip just below it) on all the other pages.
    Right now for example, if you look at the sample page http://idetox.voyage/testmenu1/ You’ll see that both the logo area backgroud and the menu backgroud below it are grey. I would like the grey background color to stay but the background of the logo area above to be transparent (not grey) so that is shows the body backgroud image below. At leat if possible …

    I hope my description is clear enough …

    Thanks in advance for your guidance,

    Steph.

    #496601

    Hi!

    quite difficult for me to imagine what you are trying to achieve. Please provide us a mockup of the things you are trying to do. You can use imgur.com or dropbox.

    Cheers!
    Andy

    #496640

    Andy, please let me know if the following mockup is clear enough: http://i.imgur.com/fKt2UNP.jpg

    Thanks!

    Steph.

    #496651

    Hi!

    thanks a lot for this mockup!
    try this code:

    div#header_main {
    height: 41px;
    margin-top: 70px;
    }
    strong.logo {
    top: -65px;
    }
    nav.main_menu {
    top: -55px;
    }
    

    Now it should look exactly as in you screenshot. Hope this makes you happy :).

    Regards,
    Andy

    #496766

    Thanks for your quick reply Andy, your code worked very well!
    I played a little bit with the values to adjust the different heights and postions to fit well with current design/data and reached the following:

    div#header_main {
    height: 50px;
    margin-top: 70px;
    }
    strong.logo {
    top: -60px;
    }
    nav.main_menu {
    top: -43px;
    }

    The only thing I can’t adjust with these values is the height of the gap between the header menu and the main content area.
    There seems to be a constant value of someting like 20px between the border of the menu and the Main content area border.

    View post on imgur.com


    If I try to go below by increasing the height (of the div#header_main), it squeezes my main content area on the right side as show with this image http://i.imgur.com/L4XMSGm.jpg
    If I also increase the height of the header of the same amount (in Enfold > Header), then it does not happen because the gap value is kept the same.

    Thanks in advance to let me know if I did miss something to adjust this gap.

    Steph.

    #496912

    Hi!

    try this one:

    div#header_main {
    margin-bottom: 100px;
    }
    

    Cheers!
    Andy

    #496949

    Hi Andy,

    With this one I can increase the gap between the header menu and the main content area.
    I now see that my formulation yesterday was not clear enough because I actually would like the opposite: decrease this gap (if possible)

    I then tried decreasing the pixel value of margin-bottom (in div#header-main) and I can’t go below 36px.
    If I go below 36 px (with all other values kept the same), I get the same squeezing as shwon in http://i.imgur.com/L4XMSGm.jpg
    With 36px, the gap height is the same as if I remove the code line margin-bottom: 36px

    All my apologies for not being explicit enough on my intent.
    Thanks in advance for your advice,

    Steph.

    #496972

    Hey!

    which squeezing? can’t see any squeezing on your screenshot to be honet …
    Can you provide a mockup of things you want to achieve? would make things so much clearer for us …

    Regards,
    Andy

    #496992

    Andy,

    To compare the 2 situations:

    – The page with the minimum gap between header menu and main content area (not “squeezed”) is as shown at https://idetox.voyage/testmenu1/

    – The page with the main content area being “sqeezed” on the right side of my boxed layout is as shown in image http://i.imgur.com/L4XMSGm.jpg
    On this image, we can see that there is no longer a gap between the header menu and the main content (squeezed) area.

    The mockup I would like to achieve is as shown on http://i.imgur.com/ALh99gj.jpg

    Thanks in advance!
    Steph.

    #497003

    Hey!

    just adjust my code I have already given to you:

    div#header_main {
    margin-bottom: 10px;
    }
    

    Cheers!
    Andy

    #497025

    Andy,

    I had already tried this before and it did not work (leading to this squeezed main content area on the right side of my boxed layout)
    I’ve tried it again but on another browser than IE and it works perfectly on Chrome, Opera!
    Thanks a lot for your patience.

    If you have any idea on why it does this issue on IE (and Edge browser), and how this can be avoided, please let me know.
    You can see the difference yourself between Chrome and IE at: https://idetox.voyage/testmenu1/

    Thanks again,

    Steph.

    #497032

    Hey!

    I can’t imagine that IE is not able to display this simple CSS code correctly and as I am using Mac I can’t check it on IE. Try to remove IE’s browser cache and hard refresh a few times.

    Best regards,
    Andy

    #497106

    You’re right, that seems a bit surprising …
    I did clean up the cache and several hard refresh on IE and didi not help!
    Below is all the Quick CSS code I have for my site.
    Let me know if you see any coding lines appart from yours that might trigger this weird stuff with IE and Edge browser:

    .home #main {
    margin-top: 0px;
    margin-bottom: 0px;
    }

    div#header_main {
    height: 50px;
    margin-top: 70px;
    margin-bottom: 10px;
    }
    strong.logo {
    top: -60px;
    }
    nav.main_menu {
    top: -43px;
    }

    #top .av_header_glassy.av_header_transparency #header_main {
    border-color: rgba(255,0,255,0.25);
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
    }

    Thanks you!
    Steph.

    #497581

    Hi!

    which IE version are you using? try to adjust my code depending on your IE version as shown here: https://css-tricks.com/how-to-create-an-ie-only-stylesheet/

    Cheers!
    Andy

    #497638

    Hi Andy,

    I’m using IE 11.
    Thanks for your link, I’ll investigate it to see how I can make the design comply with this browser.

    I greatly appreciate all the help/support you provided me to move forward with my design.
    I think we can now close this topic.
    Let me know how to proceed I case it should be done from my side.

    Thanks again!

    Steph.

    #497650

    Hi!

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Cheers!
    Andy

Viewing 30 posts - 1 through 30 (of 30 total)
  • The topic ‘Create a gap between Header and main content that shows Body image backgroud’ is closed to new replies.