Sets the margin as top, left, bottom, or right. □ In an ordinary sense, the CSS box model is a container that wraps around every HTML element consisting of the border, padding, margin, and content. ➱Box Model and Classification Properties: Shorthand Property border: 10px, red, double Used to set the width of an element's border. border-style: dotted Īllows you to add rounded corners to border-radius: 15px border-color: black Īllows you to set the style of a border - none, dotted, dashed, solid, or double. Used to set the color of an element's border. □Border properties allow you to specify how the border of the box representing an element should look. Sets the background color of an element background-color: blue īackground: Shorthand Property background: background-color background-image background-repeat background-attachment background-position Specifies the kind of attachment of the background image(scroll with theĬontent or be fixed respect the container). Repeat-y value will repeat the image vertically(y-axis). The repeat-x value will repeat the image horizontally(x-axis) while the The position property is mainly used to specify the positioning of the image background-position: right top ĭefines how a specified background image is repeated. Sets the background image of an element background-image: url( "clashingcode") □ Background properties are used to style the background and define the background effects for elements. text-shadow: horizontal -shadow vertical-shadow blur-radius color| The text-shadow property is used to add shadow to the text. Used to specify the amount of indentation text-indent: 3em It Allows text to be decorated by the properties like underline, overline, line-through, blink, and none. Letters in each word, and the initial value. Permits for capitalizing the first letter of each word,Ĭapitalizing all letters of a word, using all small Used to set the horizontal alignment of the text text-align: left Used to add or remove text- decorations like underline, overline, line-through, or none. It represents an additional amount of space between words. Used to specify space between the characters of the text. □Text formatting properties are operated to design and style text by forming their alignment, spacing, etc. font-variant: small-caps įont: Shorthand Property font: font-style font-variant font-weight font-size font-family It is used to display font in normal or small-caps. It is used to determine the weight of the font font-weight: normal It is used to modify the size of the displayed font font-size: larger Used to Change the text to normal, oblique, and italics font-style: oblique font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif It changes the font family of specified words, paragraphs, and sentences. There are many font properties in CSS which are mentioned below:. □The font properties allow you to change the look and style of the font. This CSS Cheatsheet is going to provide you most common CSS properties snippets.Īll the common properties of CSS are displayed on a single page only.□ ➱Font Properties:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |