some syntax of CSS
*{
selects everything in the page and edit them
}
classes
.classname{
}
IDs
#id_name{
}
IDs have higher priority than classes.
!important has the greatest priority. eg: h1{
color: blue !important; }
Syntax
text-align: centre, right, left, justify
border-right-style: dotted;
border-top-style: dashed;
border-bottom-style: dashed;
border-left-style: dotted;
border-radius: 100px; Eadius of border 100px
border-width: 2px; Width of border 2px
padding-left: 10px; leaves space of 10px on left
border-color: aqua; Change the border color to aqua
text-align: center; Align text to center
text-transform: capitalize; Capitalize first letter
Comments
Post a Comment