The page width is not fully used: I want the text would be arranged next to the images,…
- User
The page width is not fully used: I want the text would be arranged next to the images, not below them (Chrome). Requires a lot of scrolling – On the other hand, I want to ensure that the survey displays well on a mobile phone! So HTML ’s might be best.. How do it?
- Assistant
To arrange the text next to the images instead of below them and ensure the survey displays well on a mobile phone, you can use CSS and HTML div elements. Here's an example of how you can achieve this:
First, you need to structure your HTML code using elements. Create a container div that wraps the image and text together for each part of the survey. Here's an example:
html<div class="survey-part"> <img src="image-1.jpg" alt="Image 1"> <div class="text"> <h2>Question 1</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </div> </div>