AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML 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

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.