Looks perfect on a normal 16:9 computer screen, with text on the left and images on the right. However, when it comes to smaller screens (e.g. phone size screens), it does display the picture on top of the paragraph like I want it to. I'm very new to this so please help.
This is my media file
@media(max-width: 700px){ .project1-img{ flex-basis: 10%; width: 350px; margin: 20px; } .project-one{ float: right; width: 750px; margin: 20px; padding-left: 10px; inline-size: 1000px; } }
I need a code to help me align paragraphs to the desired position
What do you want to do?
I guess you want both the paragraph and the image to be visible on the phone screen. So you can do this using the CSS flex property
Here is an example:
If this is not what you want to do, then please explain in detail what you want to do... and your entire code (html file)