I created 2 sections. The first section is simply a banner with a slider resolution text and image. The second section has 3 columns. I wanted to be able to overlap part of the 3 column headers over the banner background. See image below to see what I mean.
Here’s the problem: When you resize the website the 3 columns can’t scale on smalller devices because I haven’t learned how to do that.
In order to get the column to scale above I had to use a margin-top: -135px; < but this piece throws everything off when you scale down.
.my-column {
border: 1px solid white;
box-shadow: 0 0.15em 0.35em 0 rgba(0,0,0,0.135);
margin-top: -135px;
margin-right: 1.7em;
}
The text doesn’t properly scale either. Similar to the columns I had to use margin in order to get the text to move in the right area but when you scale down this piece of CSS breaks too.
.x-column .p-column-style p {
margin-top: -0px !important;
margin-left: 40px !important;
margin-top: -80px !important;
text-transform: none !important;
color: black;
So is there a way to allow the content inside the columns, along with the actual column position to scale. I’m 100% sure that margin CSS is breaking it but I don’t know any other way to design this in CSS.