Hello,
I have created a registration page where I have two sections: one on the left is an image and the other is the section where the user registers.
I am trying several solutions that I have found on the internet, but they do not work ( I tried to use float and flexbox),but the page shows image above and title below as if it were a single column.
This is a link where there is CSS columns that I found:
Floats are one of the harder methods to work with. Flexbox should work done correctly but in my opinion CSS Grid is the best tool for these things. It is usually my go to option where layouts are concerned. Something like - .row { display:grid; grid-template-columns:1fr 1fr; }
Would help if you linked to your code so we could have a closer look.
I assume you have sized your divs so that they are not too wide to fit next to each other?
I am not sure what the flex:50%; means to be honest. Is that shorthand for flex-basis:50%;?
Try giving the left and right divs a width:45vw; just to test, if that works then try 50vw.
Thanks all for replies!!!
I used flexbox and works
I had a problem with VSCode that didn’t read CSS file.
It was that I didn’t use in tag link type="text/css"