-
AuthorPosts
-
August 26, 2015 at 1:23 pm #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.August 26, 2015 at 5:01 pm #493698Hi 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,
ElliottAugust 26, 2015 at 6:15 pm #493752Hi Elliot!
Thanks for your quick reply.
I tried to elaborate the deisgn I would like to get in the following image :
Hope this image is clear enough!
Thanks in advance,
Steph.August 27, 2015 at 1:35 pm #494126Hey Steph,
Thanks for the images, could you send a link to the page in question as well please?
Regards,
RikardAugust 27, 2015 at 3:25 pm #494216August 27, 2015 at 4:33 pm #494298Not sure the link went through:
http://idetox.voyage/testmenu1/August 28, 2015 at 8:28 am #494677Hey,
Thanks for that but I just get a blank page with a dark footer, no information at all on the page?
Thanks,
RikardAugust 28, 2015 at 9:20 am #494689Hi Rikard,
Now you should be able to access the page.
Sorry, I forgot to remove the maintenance mode.
Thanks,
Steph.August 29, 2015 at 8:52 am #495233Hi!
I tried to visit the page a few times but it’s not loading: http://idetox.voyage/testmenu1/
Best regards,
IsmaelAugust 29, 2015 at 9:12 am #495242Hi 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.August 31, 2015 at 3:53 pm #495911Hi 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.
September 1, 2015 at 7:32 am #496253Hi!
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,
IsmaelSeptember 1, 2015 at 9:31 am #496327Hi 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.September 1, 2015 at 5:07 pm #496554Hi!
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!
AndySeptember 1, 2015 at 6:19 pm #496598Hi 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.
September 1, 2015 at 6:29 pm #496601Hi!
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!
AndySeptember 1, 2015 at 7:12 pm #496640Andy, please let me know if the following mockup is clear enough: http://i.imgur.com/fKt2UNP.jpg
Thanks!
Steph.
September 1, 2015 at 7:19 pm #496651Hi!
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,
AndySeptember 1, 2015 at 11:23 pm #496766Thanks 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.
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.
September 2, 2015 at 9:17 am #496912Hi!
try this one:
div#header_main { margin-bottom: 100px; }
Cheers!
AndySeptember 2, 2015 at 10:08 am #496949Hi 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: 36pxAll my apologies for not being explicit enough on my intent.
Thanks in advance for your advice,Steph.
September 2, 2015 at 11:03 am #496972Hey!
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,
AndySeptember 2, 2015 at 11:37 am #496992Andy,
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.September 2, 2015 at 12:06 pm #497003Hey!
just adjust my code I have already given to you:
div#header_main { margin-bottom: 10px; }
Cheers!
AndySeptember 2, 2015 at 12:44 pm #497025Andy,
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.
September 2, 2015 at 12:50 pm #497032Hey!
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,
AndySeptember 2, 2015 at 2:17 pm #497106You’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.September 3, 2015 at 12:38 pm #497581Hi!
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!
AndySeptember 3, 2015 at 2:25 pm #497638Hi 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.
September 3, 2015 at 2:40 pm #497650Hi!
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 -
AuthorPosts
- The topic ‘Create a gap between Header and main content that shows Body image backgroud’ is closed to new replies.