css-1
css - Cascading Style Sheets
APLLING CHILD ELEMENT TO A PARENT ELEMENT
In css when you write 2 div they one down the other as they cover entire space for themselves. But if you wanna show this in one after other like this
You have to use {{display}} attribute and set it to "inline"
display: inline;
remember {{display: inline;}} don't give a f about width, so it will only as many width required
But what if you want to set height & width of a inline element?
display: inline-block;
Comments
Post a Comment