Комментарии:
/* -------- style.css -------- */
.box{
width: 100px;
height: 100px;
border: 1px solid;
font-size: 40px;
text-align: center;
background: tomato;
float: right;
}
p{
clear: both;
}
<!DOCTYPE html>
<html>
<head>
<title>My first website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- float = positions an element to the
left or right side of a container.
ex. Popular for wrapping
elements around images. -->
<div class="box">Box1</div>
<div class="box">Box2</div>
<div class="box">Box3</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae maiores beatae earum consequatur nostrum! Harum aliquid magnam, minima dolor, rerum mollitia fugiat labore temporibus consequatur eveniet aut sit reprehenderit in.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae maiores beatae earum consequatur nostrum! Harum aliquid magnam, minima dolor, rerum mollitia fugiat labore temporibus consequatur eveniet aut sit reprehenderit in.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae maiores beatae earum consequatur nostrum! Harum aliquid magnam, minima dolor, rerum mollitia fugiat labore temporibus consequatur eveniet aut sit reprehenderit in.</p>
</body>
</html>
Cheers
ОтветитьThis just saved me! Thanks so much
ОтветитьThanks. Clear explanation within just a few minutes.
Ответитьso what is the difference between inline-block and float. I mean both ways I can arrange the divs right next to each other.
Ответитьpun intended
ОтветитьThere are no empty words. Perfect explanation in 3 minutes.
ОтветитьThanks a lot brother appreciate ur work 🖐
ОтветитьDude I LOVE YOU THAT WAS SO SIMPLE YET BEAUTIFULLY EXPLAINED!!!
ОтветитьMy bro my hero
ОтветитьIt's very understandable to me. Thank you a lot.
ОтветитьI didn't really see a difference between clear left and right. Am I looking at it wrong?
ОтветитьWow thank you -😭😭
ОтветитьShort and 100% to the point... thanks!
ОтветитьThanks, bro!
Ответитьbet
ОтветитьOkay, I have one little problem with the float. I have an image below the image I have the figcaption below that I have some text. I just want the text to float not the figcaption. How to fix this little problem?
Ответить❤❤❤❤
Ответитьawesome ❤️😘👍
Thx
you are amazing and your tutorials are amazing too!!
ОтветитьI can only see one use case for this when you have an image and want to position a text near it ? am i wrong ? Isnt it common practice to use absolute positioning anyway ? Im a beginner if you have the time explain please
ОтветитьThanks!
ОтветитьThanks for the video
ОтветитьShort and sweet! Thank you! This helped a lot
Ответитьrandom comment
ОтветитьThank you, finally I could understand it
ОтветитьOh.... They aaallll FLOAT !
I see what you did in here ;)
thanyoubroh
ОтветитьVery good explanation. Thank you!
ОтветитьVery useful video! Thanks!
Ответитьnice video bro
Ответитьgood explanation thanks
Ответитьhow was this more useful than my 1 week of class...
ОтветитьThanks bro
ОтветитьNice 🥰
ОтветитьThx
ОтветитьEasy, thanks
ОтветитьThanks for making us float 🙏🎈
ОтветитьThanks for sharing!
ОтветитьI'm about half way of is css course, your java programming and html lessons help me alot. Thank you so much! 😊
Ответитьthanks
Ответитьthabks a lot
ОтветитьThis is a lie, the float means it floats on water. This counters the drown property. Welcome to my TedtalkX.
ОтветитьThank you very much for these videos
ОтветитьPlzz make a vid on Ursina Engine 🙏
Ответить:((
Ответитьsup bro..!
ОтветитьNext series suggestions making a discord bot with or java or python or js
ОтветитьNot a week ago, your channel was at 160K.
Ответить