Learn CSS margins in 4 minutes 📏
ฝัง
- เผยแพร่เมื่อ 22 ก.ค. 2024
- CSS margin tutorial example explained
#CSS #margin #tutorial
body{
margin: 0px;
}
#box1{
border: 5px solid;
width: 250px;
height: 250px;
font-size: 22px;
background: greenyellow;
/*
margin-top: 50px;
margin-left: 50px;
margin-bottom: 50px;
margin-right: 50px;
margin: 50px;
*/
margin-right: auto;
margin-left: auto;
}
#box2{
border: 5px solid;
width: 250px;
height: 250px;
font-size: 22px;
background: dodgerblue;
} - วิทยาศาสตร์และเทคโนโลยี
/* --------- style.css --------- */
body{
margin: 0px;
}
#box1{
border: 5px solid;
width: 250px;
height: 250px;
font-size: 22px;
background: greenyellow;
/*
margin-top: 50px;
margin-left: 50px;
margin-bottom: 50px;
margin-right: 50px;
margin: 50px;
*/
margin-right: auto;
margin-left: auto;
}
#box2{
border: 5px solid;
width: 250px;
height: 250px;
font-size: 22px;
background: dodgerblue;
}
My first website
Lorem ipsum, dolor sit amet consectetur adipisicing elit. At alias velit, est omnis placeat ad saepe dolorum fugit mollitia deserunt delectus facere repellendus necessitatibus. Illum sapiente aliquam facilis reprehenderit soluta?
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil dolores pariatur officiis neque est facere explicabo in sit error maiores. Iusto velit blanditiis, illo magnam eum ipsum. Porro, modi ducimus?
I'm your fellow Bro ! 💕
I'm a visual learner and need to see something happen as it's being taught. This video is very helpful for me. Thank you !
Me too!
this what the kind of video i love to watch, as u writing the code, its being executed at once and u will see it, thanks for splitting
ur screen and thanks for the lesson, i really appreciate
THANK YOU. A LOT OF CONTENT IN 5 MINUTES. YOU'RE AWESOME!!!!!
Thanks for shedding light on this. Really appreciate it.
Most underrated guy ive ever seen.
You deserve at least a milion subs..!
agreed
Another fantastic video. You are the best for a quick understanding of a topic. It's also amazing how much you learn in such a short video. Thanks very much.
bro litteraly explained it so well
Thanks alot! Right to the Point, simple and easily understandably visualized.
Great Video! Thanks.
This is the only css playlist that kept me engaged the whole time🥲
Explained relly well Thank You!
very good short explanation man.
solid video bro thanks
U r real Chad BROO, U actually worth MOORE subscribers!!
explicated really well, thank you
bro thanks for your help thus far, you have my sub 😎
so much of knowledge in very short video.
Amigo, eu nem falo seu idioma, mas aprendi mais com seu vídeo do que com muito material na minha língua natal!
Understandble, have a good day!
woow its amazing
Thank you for the teacher I never met
bro you are a live saver
well explained thank you
You make everything easy
Thanks, Bro!
Thank you very much for these videos
Can you do next is padding and there uses. Keep up the good work!
easily learn about margin and padding from this video.
thanks @bro code.
how do you do it to the blue box move it right a few pxs
sir Good Video
if I want to move a picture to another section of the page I would use margin ?
seems easy enough, I was def getting padding and margin mixed up for sure, Thanks!
This video is very helpful
in a div with a display of flex and warping is enabled, can you prevent the double margin of two elements? in just css no js?
Thank you.
Thanks!
I have one question. I tried to use margin auto with an icon of fontawesome, but it didn't work until I made its container flex, so in icons margin does not the margin propertie works? Thank you
thanks man))
simple and crisp
helpful, thanks :)
When u padding , does it affect the already written width and height?
醍醐灌顶,功德无量👍🏾👍🏾👍🏾
THANK YOU
Thank you
Great
Thank you Sigma
Thanks
How can i understand pixels?
thx a lot :)
tjanks😲
Thx
Tnx
👍👍👍
How to copy word to table
Margin-right never works😢Please help
600th like lez go
ayyyy
siuuuu
That is hilarious thank you so much. Just one question. It seems simple but I couldn't do it. How can I put h1 and h2 and p under the same borderline and not separate. please or under the same square or rectangle or whatever it. But I want to put them under one the same roof.
I think if I am understanding you correctly, you can just put all of them under 1 div element with an id attribute to add css styling.
Example:
Title1
Title2
Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit alias sunt doloremque obcaecati dolorem molestiae corrupti recusandae et natus numquam, magni temporibus. Error corrupti quisquam cum libero excepturi, quibusdam provident!
#box3 {
border: 5px solid;
width: 250px;
height: 250px;
font-size: 22px;
background: rgb(0, 128, 85);
color: aliceblue;
}
bet
:((
Thank you.