CSS Layout - float and clear | max-width and margin: auto | CSS tutorial in HINDI AND ENGLISH | css

Опубликовано: 17 Март 2026
на канале: Easy Technica
101
12

Easy Technica

Video About
Easy html
CSS learn
Teach CSS

Using width, max-width and margin: 
auto;
• Setting the width of a block-level element will 
prevent it from stretching out to the edges of 
its container. Then, you can set the margins to 
auto, to horizontally center the element within 
its container. The element will take up the 
specified width, and the remaining space will 
be split equally between the two margins:


Style
• div.ex1 {
  width: 500px;
  margin: auto;
  border: 3px solid #73AD21;
}
div.ex2 {
  max-width: 500px;
  margin: auto;
  border: 3px solid #73AD21;
}


CSS Layout - float and clear
• The CSS float property specifies how an 
element should float.
• The CSS clear property specifies what 
elements can float beside the cleared element 
and on which side.

Example - float: right;
Example - float: left;
Example - No float






=CHANNEL ABOUT=
Simply learn Html
Learn Html
Easy Html Learn
All Topic Teach Html
Free Of Course Learn Html
Hindi Html Learn
Practical Html Learn
PPT Learn Html
Sublime In practical

PART:= 34
LINK:=   • CSS Table Style|Striped Tables|Table Color...  

Downlod sublime: =
=https://www.sublimetext.com/




= FOLLOW ON =

Follow instagram
  / easytechnica  

Follow facebook:
  / abhay.shiroya  

Follow twitter:
  / easytechnica  

Follow telegram:
@Easy technica




LIKE !!
Subscribe youTube : Easy Technica
Share AND
Comment (your review)





THANK YOU SO MUCH BY LEARN VIEDO !!