HTML & CSS
358 subscribers
728 photos
1 video
4 files
54 links
πŸ‘Œ HTML & CSS
@html_css_tut

πŸ‘ŒJavaScript
@javascript_tut

πŸ‘Œ PHP
@php_tut


πŸ‘ŒAll About Coding
@codingWithElias
Download Telegram
The global structure of an HTML 5 document.

πŸ“ŒThe <!DOCTYPE html> declaration defines that this document is an HTML5 document.

πŸ“ŒThe <html> element is the root element of an HTML page.

πŸ“ŒThe <head> element contains meta information about the HTML page.

πŸ“ŒThe <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab).

πŸ“ŒThe <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

πŸ“ŒThe <h1> element defines a large heading

πŸ“ŒThe <p> element defines a paragraph

@html_css_tut
"w3schools .com"
How to make Sticky Social Media Buttons
- Using CSS & HTML -

https://youtu.be/qyK1CYK0dPA
CSS Box Model

πŸ“ŒAll HTML elements can be considered as boxes.

πŸ“ŒIn CSS, the term "box model" is used when talking about design and layout.

The CSS box model is essentially a box that wraps around every HTML element.

πŸ“Œ It consists of: margins, borders, padding, and the actual content.

@html_css_tut
"w3schools .com"
πŸ“ŒContent - The content of the box, where text and images appear

πŸ“ŒPadding - Clears an area around the content. The padding is transparent

πŸ“ŒBorder - A border that goes around the padding and content

πŸ“ŒMargin - Clears an area outside the border. The margin is transparent

@html_css_tut
"w3schools .com"
πŸ“ŒCSS Border Style
The border-style property specifies what kind of border to display.

πŸ“ŒCSS Border Color
The border-color property is used to set the color of the four borders.

πŸ“Œ CSS Border Width
The border-width property specifies the width of the four borders.

Example:
-----------------------------------
p  {
border-style: dotted;
border-width: 5px;
border-color: #0f0;
}

div {
border-style: solid;
border-width: 2px;
border-color: red;
}
-----------------------------------

@html_css_tut
"w3schools .com"
CSS border-radius

The border-radius property defines the radius of the element's corners.

Tip: This property allows you to add rounded corners to elements! 

Example:
-----------------------------------
p  {
border-radius: 20px 60px 40px 80px;
}
-----------------------------------

@html_css_tut
"w3schools .com"
πŸ“Œ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"
πŸ“Œ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"
πŸ“Œ 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"
πŸ“Œ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"
πŸ“Œ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"
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"
πŸ“Œbox shadow example #1

@html_css_tut
πŸ“Œbox shadow
example #2

@html_css_tut
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"
πŸ“ŒText shadow example #1

@html_css_tut
πŸ“ŒText shadow example #2

@html_css_tut
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"
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"