CSS drives me crazy!

I want to create this (see picture one) text och left side, image on right side (the image on the right side is what I wrote in css). I .hero is the parent div, with other worlds the first div. When I wrote that code inside image one, then this happens.. (see img 2) I know that spacebetween dosent get any space because of the p tag, but I cant always set a width on the p tag... I want the text to still grow when the pages gets smaller, it cant be done with a width on a ptag... how can I solve that AND center evertying exactly in middle of the page? vertical and horizontel.
No description
No description
1 Reply
snxxwyy
snxxwyy16mo ago
@aski369, you'd have to provide a codepen with your code in so we can see what is causing your issue, until then i and others can't pinpoint the exact problem. However in the meantime perhaps this may help, it's got a similar layout in it. https://codepen.io/deerCabin/pen/BaGXLEY.
Want results from more Discord servers?
Add your server