Day 20: Grids 1 2.

 .grid-container{

display: grid;

grid-template-column: auto auto auto;

border: solid;

}


-----------------------------------------------------------------------------------------------------------------------------

row-gap: 50px;

column-gap: 50px;

or

gap: 50px(row) 50px(column);

-----------------------------------------------------------------------------------------------------------------------------Float

The float Property :

  • An element's floating behavior is defined via the CSS float attribute.     
  • The float property is used to format and position content, for letting an image float to the left of text within a container.    
  • One of the following values may be present for the float property:   
    • Right - Using float’s value as right, the element floats towards the right direction.     
    • Left - Using float’s value as left, the element floats towards the left direction.   
    • None - Using float’s value as none,, the element will not float. None is the default value for float property  

 

Comments

Popular posts from this blog

else-if condition in if-else statements: Concatenation in JavaScript :

Day 9: CSS - Font Formate

Day 28: CSS Animation, CSS Transition Animation Box size