HOME | PHP Tutorial | CSS
facebook icon
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:
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

2225. CSS Tutorial - Background
Once you specified you want no-repeat for your background image, the browser default behavior is to top-left align the image. And this takes us to the next background property

3188. CSS Text Style Bold - Text Decoration - Text Shadow, css tutorial
CSS Text Style Bold - Text Decoration - Text Shadow css tutorial

2593. Basic Syntax of CSS - How to Code CSS, css tutorial
Basic Syntax of CSS - How to Code CSS css tutorial

808. Specified, computed, and actual values - CSS tutorials - w3resource


2708. Selectors - CSS tutorial
EchoEcho.Com : The complete CSS tutorial

2590. Android tutorial for beginners - Learn Android Programming and how to develop android mobile phone and ipad applications.
Online CSS Tutorial pdf, what is CSS, Online Courses, Classes, Training, Tutorials for Beginners - agernic.com is a free interactive Code, Tags, Example, CSS, Editor, Online Courses, Training for beginners

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 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 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