Learn CSS float in 3 minutes

Learn CSS float in 3 minutes

Bro Code

2 года назад

67,370 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@BroCodez
@BroCodez - 06.09.2021 18:43

/* -------- 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>

Ответить
@Tech-Dev
@Tech-Dev - 17.10.2023 06:41

Cheers

Ответить
@duke4279
@duke4279 - 14.10.2023 05:17

This just saved me! Thanks so much

Ответить
@x-buster
@x-buster - 13.10.2023 13:58

Thanks. Clear explanation within just a few minutes.

Ответить
@UEUnderCover
@UEUnderCover - 05.10.2023 23:28

so what is the difference between inline-block and float. I mean both ways I can arrange the divs right next to each other.

Ответить
@The__Q
@The__Q - 02.09.2023 23:26

pun intended

Ответить
@sezermercan8481
@sezermercan8481 - 24.08.2023 17:44

There are no empty words. Perfect explanation in 3 minutes.

Ответить
@214_farooqueshaikh4
@214_farooqueshaikh4 - 06.08.2023 14:34

Thanks a lot brother appreciate ur work 🖐

Ответить
@julienking5452
@julienking5452 - 01.08.2023 15:48

Dude I LOVE YOU THAT WAS SO SIMPLE YET BEAUTIFULLY EXPLAINED!!!

Ответить
@secondlasti3830
@secondlasti3830 - 21.07.2023 19:22

My bro my hero

Ответить
@iephong1554
@iephong1554 - 17.07.2023 08:07

It's very understandable to me. Thank you a lot.

Ответить
@brownsugarbabe0823
@brownsugarbabe0823 - 11.07.2023 08:33

I didn't really see a difference between clear left and right. Am I looking at it wrong?

Ответить
@juansaravia4901
@juansaravia4901 - 22.06.2023 19:44

Wow thank you -😭😭

Ответить
@leonelmessi3010
@leonelmessi3010 - 25.05.2023 10:24

Short and 100% to the point... thanks!

Ответить
@TheEvertonDias
@TheEvertonDias - 16.05.2023 18:45

Thanks, bro!

Ответить
@Mist_Ninjutsu
@Mist_Ninjutsu - 22.04.2023 07:37

bet

Ответить
@brianjett1446
@brianjett1446 - 14.04.2023 12:34

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?

Ответить
@psychoop9713
@psychoop9713 - 07.04.2023 23:17

❤❤❤❤

Ответить
@zekakhaled35
@zekakhaled35 - 03.04.2023 02:37

awesome ❤️😘👍
Thx

Ответить
@NarutoUzumakiDatebayo
@NarutoUzumakiDatebayo - 02.04.2023 11:56

you are amazing and your tutorials are amazing too!!

Ответить
@DisturbeD802
@DisturbeD802 - 29.03.2023 20:59

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

Ответить
@MrLoser-ks2xn
@MrLoser-ks2xn - 20.03.2023 09:59

Thanks!

Ответить
@dllm3tommy741
@dllm3tommy741 - 20.02.2023 15:54

Thanks for the video

Ответить
@portfedh
@portfedh - 16.02.2023 17:34

Short and sweet! Thank you! This helped a lot

Ответить
@daryl7099
@daryl7099 - 31.12.2022 00:26

random comment

Ответить
@ronaldoucl
@ronaldoucl - 30.12.2022 09:13

Thank you, finally I could understand it

Ответить
@dreamsComeTruePL
@dreamsComeTruePL - 19.12.2022 18:58

Oh.... They aaallll FLOAT !
I see what you did in here ;)

Ответить
@mdafroze6123
@mdafroze6123 - 09.12.2022 09:58

thanyoubroh

Ответить
@markzait2750
@markzait2750 - 04.11.2022 11:25

Very good explanation. Thank you!

Ответить
@markzait2750
@markzait2750 - 04.11.2022 09:45

Very useful video! Thanks!

Ответить
@amrmashaal834
@amrmashaal834 - 04.10.2022 02:39

nice video bro

Ответить
@kastus9188
@kastus9188 - 24.09.2022 18:36

good explanation thanks

Ответить
@carterpierre2527
@carterpierre2527 - 08.09.2022 17:44

how was this more useful than my 1 week of class...

Ответить
@st-jn2gk
@st-jn2gk - 05.09.2022 20:09

Thanks bro

Ответить
@kartikchauhan2778
@kartikchauhan2778 - 04.09.2022 09:57

Nice 🥰

Ответить
@paolobena
@paolobena - 30.08.2022 09:40

Thx

Ответить
@rajkumarchavan8457
@rajkumarchavan8457 - 18.08.2022 22:03

Easy, thanks

Ответить
@smootheraura
@smootheraura - 15.07.2022 21:40

Thanks for making us float 🙏🎈

Ответить
@Baaaankai
@Baaaankai - 14.06.2022 17:52

Thanks for sharing!

Ответить
@marxLz
@marxLz - 09.06.2022 09:39

I'm about half way of is css course, your java programming and html lessons help me alot. Thank you so much! 😊

Ответить
@alinejati7184
@alinejati7184 - 01.06.2022 10:01

thanks

Ответить
@anascheik1500
@anascheik1500 - 17.05.2022 05:18

thabks a lot

Ответить
@pbdtalk4352
@pbdtalk4352 - 22.04.2022 23:11

This is a lie, the float means it floats on water. This counters the drown property. Welcome to my TedtalkX.

Ответить
@justinbanza4751
@justinbanza4751 - 04.11.2021 15:34

Thank you very much for these videos

Ответить
@debapriyasinha11
@debapriyasinha11 - 07.09.2021 05:28

Plzz make a vid on Ursina Engine 🙏

Ответить
@fyrukmcoo100
@fyrukmcoo100 - 06.09.2021 20:50

:((

Ответить
@africayean1311
@africayean1311 - 06.09.2021 20:33

sup bro..!

Ответить
@noname_hacke_9747
@noname_hacke_9747 - 06.09.2021 19:27

Next series suggestions making a discord bot with or java or python or js

Ответить
@aditya_asundi
@aditya_asundi - 06.09.2021 19:25

Not a week ago, your channel was at 160K.

Ответить