πCSS Padding
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
πWith CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left).
Example:
-----------------------------------
p {
padding-top: 20px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 25px;
}
-----------------------------------
@html_css_tut
"w3schools .com"
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
πWith CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left).
Example:
-----------------------------------
p {
padding-top: 20px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 25px;
}
-----------------------------------
@html_css_tut
"w3schools .com"
πCSS Margins
πThe CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left).
Example:
-----------------------------------
p {
padding-top: 30px;
padding-right: 30px;
padding-bottom: 30px;
padding-left: 30px;
}
-----------------------------------
@html_css_tut
"w3schools .com"
πThe CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left).
Example:
-----------------------------------
p {
padding-top: 30px;
padding-right: 30px;
padding-bottom: 30px;
padding-left: 30px;
}
-----------------------------------
@html_css_tut
"w3schools .com"
π Margin - Shorthand Property
πTo shorten the code, it is possible to specify all the margin properties in one property.
The margin property is a shorthand property for the following individual margin properties:
πmargin-top
πmargin-right
πmargin-bottom
πmargin-left
@html_css_tut
"w3schools .com"
πTo shorten the code, it is possible to specify all the margin properties in one property.
The margin property is a shorthand property for the following individual margin properties:
πmargin-top
πmargin-right
πmargin-bottom
πmargin-left
@html_css_tut
"w3schools .com"
πPadding - Shorthand Property
πTo shorten the code, it is possible to specify all the padding properties in one property.
The padding property is a shorthand property for the following individual padding properties:
πpadding-top
πpadding-right
πpadding-bottom
πpadding-left
@html_css_tut
"w3schools .com"
πTo shorten the code, it is possible to specify all the padding properties in one property.
The padding property is a shorthand property for the following individual padding properties:
πpadding-top
πpadding-right
πpadding-bottom
πpadding-left
@html_css_tut
"w3schools .com"
πCSS Border - Shorthand Property
To shorten the code, it is also possible to specify all the individual border properties in one property.
The border property is a shorthand property for the following individual border properties:
πborder-width
πborder-style
πborder-color
@html_css_tut
"w3schools .com"
To shorten the code, it is also possible to specify all the individual border properties in one property.
The border property is a shorthand property for the following individual border properties:
πborder-width
πborder-style
πborder-color
@html_css_tut
"w3schools .com"
CSS box-shadow
πThe box-shadow
CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
@html_css_tut
"developer. mozilla. org"
πThe box-shadow
CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
@html_css_tut
"developer. mozilla. org"
CSS Text Shadow
πThe text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its decorations. Each shadow is described by some combination of X and Y offsets from the element, blur radius, and color.
@html_css_tut
"developer. mozilla. org"
πThe text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its decorations. Each shadow is described by some combination of X and Y offsets from the element, blur radius, and color.
@html_css_tut
"developer. mozilla. org"
CSS Border Image
πThe CSS border-image property allows you to specify an image to be used instead of the normal border around an element.
@html_css_tut
"w3schools .com"
πThe CSS border-image property allows you to specify an image to be used instead of the normal border around an element.
@html_css_tut
"w3schools .com"
CSS Border Image
πThe CSS border-image property has three parts:
#1. The image to use as the border.
#2. Where to slice the image.
#3. Define whether the middle sections should be repeated or stretched.
@html_css_tut
"w3schools .com"
πThe CSS border-image property has three parts:
#1. The image to use as the border.
#2. Where to slice the image.
#3. Define whether the middle sections should be repeated or stretched.
@html_css_tut
"w3schools .com"
CSS Styling Tables
πTo specify table borders in CSS, use the border property.
πThe example above specifies a black border for <table>, <th>, and <td> elements:
@html_css_tut
"w3schools .com"
πTo specify table borders in CSS, use the border property.
πThe example above specifies a black border for <table>, <th>, and <td> elements:
@html_css_tut
"w3schools .com"
Double Borders
πNotice that the table in the examples above have double borders. This is because both the table and the <th> and <td> elements have separate borders.
πTo remove double borders, take a look at the example above.
@html_css_tut
"w3schools .com"
πNotice that the table in the examples above have double borders. This is because both the table and the <th> and <td> elements have separate borders.
πTo remove double borders, take a look at the example above.
@html_css_tut
"w3schools .com"
πΉ JavaScript is the
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
@javascript_tut
https://t.me/javascript_tut
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
@javascript_tut
https://t.me/javascript_tut
Telegram
JavaScript Tutorial
πΉ JavaScript is the
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
Group
@js_group_tut
@javascript_tut
Programming Language
for the Web.
πΉ JavaScript can update
and change both
HTML and CSS.
πΉ JavaScript can calculate,
manipulate and
validate data.
Group
@js_group_tut
@javascript_tut
Generic Font Families
π In CSS there are five generic font families:
#1 Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.
#2 Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
#3 Monospace fonts - here all the letters have the same fixed width. They create a mechanical look.
#4 Cursive fonts imitate human handwriting.
#5 Fantasy fonts are decorative/playful fonts.
All the different font names belong to one of the generic font families.
@html_css_tut
"w3schools .com"
π In CSS there are five generic font families:
#1 Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.
#2 Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
#3 Monospace fonts - here all the letters have the same fixed width. They create a mechanical look.
#4 Cursive fonts imitate human handwriting.
#5 Fantasy fonts are decorative/playful fonts.
All the different font names belong to one of the generic font families.
@html_css_tut
"w3schools .com"
The CSS font-family Property
π In CSS, we use the font-family property to specify the font of a text.
π The font-family property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems. Start with the font you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma.
π Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".
@html_css_tut
"w3schools .com"
π In CSS, we use the font-family property to specify the font of a text.
π The font-family property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems. Start with the font you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma.
π Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".
@html_css_tut
"w3schools .com"