while styling the coffee cards, thier width is 22% , but they are div’s , how can act as inline elements,like all the 4 divs displayed in the same line, if we delete the float:left property,they are behaving as div’s. What difference did the float:left property do?
Sir,the code is same as the instuctor guided me, but my query is:
If we remove(or comment out) float:left property in card class , all the four div’s(coffee images) displaying in 4 different levels.Why is that so?
.card{
width: 22%;
padding: 1.5%;
height: 250px;
text-align: center;
}
@swathimelapu8 can you please share the HTML ,CSS and JavaScript files you wrote so I can have a look at the entire code you wrote?
You may upload these files on Google Drive and share a public link.