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

CSS Tutorial

CSS width and height - CSS Properties - Dimensions units

The CSS dimensions units provides several css properties such as width, height, max-width, max-height, min-width, min-height that allows you to control the dimension units of a box.

CSS width and height

The height and width properties units are used to set the height and width area of an css element. Height and width CSS can be set up automatically (this is the default). It means that the browser calculates the height and width of element, or it can be specified the length values such as px, cm, etc, or in percent (%) of the block that contains.
This width and height CSS elements does not include paddings, borders and margins. We give you a CSS box model to know how the effective width and height is calculated by the browser.
Note: Auto value allows the browsers to calculate the lengths automatically for the specified element. The percentage (%) value refer to the width or height of the element's containing block. Negative length values are not allowed.

This div-box1 in the example 1 has :
 width: 450px;
    height: 210px;
    border: 1px solid #73AD21;
Example 1:
div-box1
{
width: 450px;
height: 210px;
border: 1px solid #73AD21;
}

CSS width and height, CSS Properties, Dimensions units CSS width and height - CSS Properties - Dimensions units - css tutorial

2707. CSS Lists - CSS tutorial
EchoEcho.Com : The complete CSS tutorial
http://www.echoecho.com/csslists.htm

3014. CSS width and height - CSS Properties - Dimensions units, css tutorial
CSS width and height - CSS Properties - Dimensions units css tutorial
http://www.agernic.com/css-tutorial/css-width-and-height-properties-dimensions-units.html

822. CSS selectors - CSS tutorials - w3resource

https://www.w3resource.com/css/selectors/CSS-selectors.php

819. CSS margin-top property - CSS tutorials - w3resource

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

3191. How to include, how to incorporate CSS in HTML, css tutorial
How to include, how to incorporate CSS in HTML css tutorial
https://www.agernic.com/css-tutorial/how-to-include-how-to-incorporate-css-in-html.html

2109. CSS Tutorial - Introduction to CSS
With the help of CSS we can create simple or complex websites, you can build that fancy design that you always like it.
https://tutorialehtml.com/en/css-tutorial-introduction-to-css/

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