HTML
HTML5
Cascade Stylesheet (CSS)
JavaScript
JQuery
Introduction to PHP
Control Structure (Decision and Loop)
Array In PHP
end
key
String Handling in PHP
chr
md5
String Matching with Regular Expression PHP
Math Functions in PHP
Generating Graphics and Images with PHP
Form and Method in PHP
Self & Sticky Forms / Pages
PHP XML Parser
Working with file and Directories
Function/Method in PHP
Classes and Objects in PHP
Const / Define
Encapsulation
Inheritance in PHP
Magic Methods in PHP
Abstract Class in PHP
Traits in PHP
Namespaces in PHP
Introspection in PHP
Exception Handling in PHP
Include / Require
MySQL Database (PHPMyAdmin)
PHP Database Connectivity with MySQL
XML
simplexml PHP XML Parser
DOM PHP XML Parser
AJAX
AJAX with PHP
File Upload
Session and Cookies in PHP
JSON WebService with PHP
Website Designing
Google Tools
Search Engine Optimisation (SEO)
Domain and Hosting
Project in PHP
External CSS Margin

PHP Expert

Cascade Stylesheet (CSS)

Dimensions

Content Author
Ashish D. Tiwari
Ashish D. Tiwari
What is dimention

Setting the height and width of an element is dimensions on an element.

Height or Width of element can be set in pixels or in percentage.


height and width
                            
                            

<!DOCTYPE html>

<html>

<head>

<title></title>

<style>

div{

width: 200px;

height: 200px;

background-color: lightblue;

}

</style>

</head>

<body>

<div>This div tag has height 200px and widht 200px</div>

</body>

</html>

Comment is Only Available for registered users! Create Account or Login Now!