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

CSS Tutorial

CSS background, Color, Background Image

With Css we can add background colors and images to any element on the page. We can make a background image that does not completely cover the whole or the entire page repeat vertically, horizontally or in both directions.
Background styling is possible for each html tag (body, p, div, etc.).
To format the background of HTML elements using CSS, we use the following attributes:
background-color,
background image,
background-repeat,
background-attachment,
background-position,

Background Color aplay and change

The background-color property specifies the background color of an element. To change the background color of the whole page, we need to apply a style to the body tag. The background color of a page is set like this:
Example:
body {
background-color: red;
}
With CSS, a color can be often specified by:
a valid color name - like "red"
a HEX value - like "#ff0000"
an RGB value - like "rgb(255,0,0)"
In the example below we can use background colors to <h1>, <p>, and <div> elements.
Example:
h1 {
  background-color: #ff5070;
}

div {
  background-color: lightblue;
}

p {
  background-color: "rgb(255,0,0);
}

Adding a css background image

The background-image property specifies an image to use as the background of an element.
By default, the image is repeated so it covers the entire element.
Example:
body {
  background-image: url("picture_one.gif");
}
To repeat the image only vertically or only horizontally we will use the following CSS code:
Example:
body {
background-image:url("o_imagine.gif");
background-repeat:repeat-x;
}

Background Image - Set position and no-repeat

Showing the background image only once "no-repeat" is also specified by the background-repeat property:
Example:

body {
  background-image: url("imgage_one.png");
  background-repeat: no-repeat;
}

Background Image CSS - Fixed position

To specify that the background image CSS should be fixed, use the background-attachment property:
Example:
body {
  background-image: url("imgage_one.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
}


CSS background, background color, background Image CSS background, Color, Background Image - 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

321. CSS Tutorial
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, and XML.
https://www.w3schools.com/css/default.asp

2235. CSS Tutorial - Positioning
Attaching the fixed value of the position attribute to an HTML element, you will get a
https://tutorialehtml.com/en/css-tutorial-positioning/

1990. CSS Tutorial | Studytonight
Learn CSS. In this CSS tutorial we will learn how to style HTML webpages using CSS with examples and interactive videos.
https://www.studytonight.com/cascading-style-sheet/

2230. CSS Tutorial - External, internal or inline
The inline CSS code is the one that goes inside the head section of the HTML document. This is very useful when you want to give a specific page, his own custom style. The is no difference between the CSS code that you place inside an external file and t
https://tutorialehtml.com/en/css-tutorial-external-internal-or-inline/

2806. CSS Padding, top, bottom, left, right, css tutorial
CSS Padding, top, bottom, left, right css tutorial
http://www.agernic.com/css-tutorial/css-padding-top-bottom-left-right.html

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