HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
HTML Tutorial

CSS Tutorial

CSS Introduction Tutorial

CSS (Cascading Style Sheets) is a style sheet language used for describing the presentation of a document written in a markup language like HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.

How do cascading style sheets work?

The CSS style sheets are a set of rules that are listed in a .css file and that describe what the different HTML elements of a page should look like.
The interesting thing about this is that they work with a philosophy of patterns or templates, that is, it is not necessary to specify each of the elements, but you can define rules like these two:
"Level 1 and 2 titles must be black and have a font size of 16 and 14 pixels respectively."
"The text of the paragraphs are aligned to the left, have a font size of 12 pixels and a dark gray color."
As a comparison, if you master the use of styles in Microsoft Word, you will see that this is very similar to the concept of style in Word, although CSS is infinitely more powerful than Word in all its possibilities.
CSS Tutorial example Let's see a concrete example of how the previous rules would be expressed in the language of the CSS:
<style>
body {
    background-color: lightblue;
}
h1, h2 {
color: black;
font-size: 16px;
}
h2 {
font-size: 14px;
}
p {
color: rgb(32,32,32);
text-align: left;
}
</style>
Basic properties of CSS you should know
1. Basic layout
width: Width of an element.
height: Height of an element.
vertical-align: Vertical alignment within an element.
margin: Space that is added between the element and its neighbors. You can differentiate by side (up, down, left, right).
padding: Inner fill that is added at the edges of the margin. Unlike margin, it counts for the size of the element.
float: Move the element as far as possible to the indicated side. This property is used in CSS floating positioning.
The issue of positioning in CSS is not trivial and it is convenient to study how it works before using this property.

2. Sources and text
font-family: Typeface
font-size: Font size
font-weight: Weight (normal, bold, ...)
font-style: Style (normal, italic, ...)
text-decoration: "Decorations" as underline, strikethrough, etc.
text-align: Aligning the text (left, right, etc.)
text-transform: Show a text in uppercase, lowercase or the first letter of each word in uppercase.

3. Color and backgrounds
color: Color of the element. It can be specified in different formats as predefined words (network, green, etc.) RGB or as a hexadecimal value.
background-color: Background color of the element.
background-image: Allows you to specify a background image.
background-repeat: Allows you to use an image as a mosaic in different modalities.
box-shadow: Create a shadow effect for an element.

4. Lists
list-style-image: Use the image specified as a bullet for the list.
list-style-type: Different styles of bullets and numbering styles for list items.

5. Borders
border: Add a border to an element and set some properties (thickness, line style, etc.)
border-color: Edge color.
border-style: Different styles for the edge (solid, points, etc.)
border-radius: Allows you to create rounded corners for an element.

CSS Tutorial, CSS example, CSS online courses CSS Introduction Tutorial - css tutorial

3009. CSS link color - CSS link href HTML - Link without underline, css tutorial
CSS link color - CSS link href HTML - Link without underline css tutorial
http://www.agernic.com/css-tutorial/css-link-color-css-link-href-html-link-without-underline.html

3301. CSS font color, css tutorial
CSS font color css tutorial
https://www.agernic.com/css-tutorial/css-font-color.html

2697. EchoEcho.Com - Web Hosting - JavaScript Tutorial - HTML tutorial - CSS Tutorial - Flash Tutorial - Online for free!
Web hosting and tutorials for html javascript css flash. Online web master forum design articles, graphics, tools, tricks and much more
http://www.echoecho.com/

811. CSS border-top-style property - CSS tutorials - w3resource

https://www.w3resource.com/css/border/CSS-border-top-style-property.php

818. CSS Font Families - CSS tutorials - w3resource

https://www.w3resource.com/css/fonts/font-families.php

824. Introduction to CSS user interface - CSS tutorials - w3resource

https://www.w3resource.com/css/user-interface/introduction.php

Your add here
How to get PHP errors to display?
How to prevent sql injection in php mysqli
How do I get PHP errors to display - PHP error_reporting()
mysql_query(): The mysql extension is deprecated and will be removed i
Function eregi_replace() is deprecated in php - How to fix
PHP delete an element from an array
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
Deprecated: mysql_connect() mysql extension is deprecated and will be
mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean g
SQL IN Operator - example
SQL BETWEEN Operator
SQL like syntax and example
SQL WHERE AND & OR multiple conditions
SQL create table primary key autoincrement
PHP mysqli_connect () Function
SQL COUNT(), AVG() and SUM() Functions
Display data from SQL database with MySQLi into php - html table
SQL CREATE DATABASE - example
SQL mysql order by columns, by date, by asc, by desc, random with PHP
PHP mysqli_query() Function - mysqli query
SQL delete row - SQL delete table
SQL update - SQL update select
Insert into SQL - Insert into table SQL - Insert data in sql
Login in PHP - simple login script with PHP MYSQL