CSS HTML Can t align 3 pictures on the same line

0 votes

I'm having difficulty creating a website. I can't get three photographs to line up in a straight line.

<div>
				<img src="Images/mcdonalds.jpg" width="300px" height="180px">
				</div>
				<div>
				<img src="Images/cilipica.jpg" width="300px" height="180px">
				</div>
				<div>
				<img src="Images/mythay.jpg" width="300px" height="180px" >
				</div>

float: left is used

Jun 20 in CSS by Edureka
• 9,940 points
17 views

1 answer to this question.

0 votes

div is inherently display:block

you need to use something like a span that has display:inline-block

answered Jun 21 by Edureka
• 9,540 points

Related Questions In CSS

0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

What is the css / html `root` element?

The:root CSS pseudo-class corresponds to the root ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
17 views
0 votes
0 answers

horizontal line and right way to code it in html, css

I need to draw a horizontal line ...READ MORE

Jul 22 in CSS by Edureka
• 9,940 points
9 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,750 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,703 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
280 views
0 votes
1 answer

What is the difference between span and div?

The div should be used to wrap sections of ...READ MORE

answered Jan 16, 2020 in Web Development by Niraj

edited Jan 21, 2020 by Niroj 2,316 views
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
41 views
0 votes
1 answer

CSS shadow white line at the end of linear-gradient background

This is a byproduct of the gradient ...READ MORE

answered Jun 1 in CSS by Edureka
• 9,540 points
219 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP