From the course: The Freelance Stack: Real Project with Next.js and Strapi

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Styling: Text with image component

Styling: Text with image component

Okay, so with styling, we now have to also make those adjustments in our CSS code so that we can account for the reverse and the portrait option of our strappy component, right? Or of our blog article component. For us to do that, we're going to have to write quite a bit of CSS. So I'm going to keep, I'm going to actually keep the image text component open so we can see what we're doing. then I create not a new file because we now are going to add that to the article components we created in the headline styling video. Well we didn't have to do much styling but that will change now. So what do we have to do? Well first of all we're going to do again the base case right the default text image component which is going to be a flex container and we also want to have space between. We're also going to make it that here we're going to have 6rem distance to the next component. So that's why we're going to say here margin-bottom will be 6rem like that. Now you can do this yourself, you can…

Contents