I’m trying to position the main navigation of my website below an image component using the Divi theme, using position: fixed and bottom: 0px but to no avail. What am I doing wrong and how would I go about this? Should I keep the height of the image component using percentages? because every time I try doing that, the class containing that div overrides it. This is the sort of look I’m going for:
Here is the page I’m working with.
2
Answers
Number of changes needed.
First, remove the inline
style="top:0px"
for the#main-header
element.Next, remove
top:0
and change tobottom:0
inFinally, for
#page-container
, changepadding-top: 78px
topadding-top: 0px
In you
header.php
, remove thetop: 0
HTML
to this:
CSS
In your CSS remove
top: 0
from#main-header
and add the below propertyOutput:
![enter image description here](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)