full width separator
-
Hi,
back again with a new question:
in the old sites I have been working with I was using the TwentySeventeen default theme, which has an homepage that’s divided in 4 sections.
Before each section there’s the featured image, which I used to fix in its position to have a pseudo parallax effect (no scroll event added, but the fixed position created a good effect).Now with Astrid theme there are no deafult sections for the Homepage. While I was building my site, I added a “cover” block (I am using the IT version and the block is called “copertina”, don’t know if the name is right, image with small text on it) that has fixed position and I was hoping to have that block at 100% width. The block is in the container div, so I think it cannot extend over the container element. To make this happen I used a quick fix with negative margin values and obtained what I wanted.
The code I added in the Custom CSS is this:
.copertinaBio { margin-left:-50%; width:200%; max-width:2000px; }
My question is: is there a better way to write this CSS code to obtain the same effect?
I mean, the 2000px value is totally arbitrary, but I choosed that after many tries, because with this value I can have the text visible and aligned right as I wanted, but don’t think that’s the right way to do.In the same way, I used negative margins for the three pics with caption and link just above the slider. I wanted to have the three pics occupying all the width of the page and used this css:
.wcp-fgg-wrap { max-width:164%; margin-left:-32%!important; margin-right:-32%!important; }
Just like for the other block, I obtained the effect I was looking for, but think there’s a better way to write this CSS rule. (the 64% percent added to max-width and the 32% margin is equally arbitrary)
Thank you for your attention!
AbThe page I need help with: [log in to see the link]
- The topic ‘full width separator’ is closed to new replies.