-->
Toneysoft Blog

*We are Inspire Our Technology,* Blogging, Tutorial,Download,Widget,Windows phone android Apps,Web design,Seo, Outsourcing,Antivirus ...

Latest Post Toneysoft blog:

Featured post

How to get 1000 up Visitor per video on your Youtube channel Make Money part 2

How to get 1000 up Visitor per vidos On your You Tube Visitor and And Money Money Hidden Tips Toneysoft :  উপরের টাইটেল দেখে হইত বুজ...

no image
  • Post Title : web design CSS tutorial part-4
  • Posted By :
  • Category:
  • Rating : 100% based on 10 ratings. 10 user reviews.
    | Post views: Viewed
Item Reviewed: web design CSS tutorial part-4 9 out of 10 based on 10 ratings. 9 user reviews.
web design CSS tutorial part-4

Like the Post? Do share with your Friends.

Web Design Tutorial CSS part- 4


css




Before we start actual exercise, we would like to give a brief idea about the CSS Measurement Units.
CSS supports a number of measurements including absolute units such as inches, centimeters, points, and so on, as well as relative measures such as percentages and em units. You need these values while specifying various measurements in your Style rules e.g border = "1px solid red".
We have listed out all the CSS Measurement Units along with proper Examples −
UnitDescriptionExample
%Defines a measurement as a percentage relative to another value, typically an enclosing element.p {font-size: 16pt; line-height: 125%;}
cmDefines a measurement in centimeters.div {margin-bottom: 2cm;}
emA relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em would be 24pt.p {letter-spacing: 7em;}
exThis value defines a measurement relative to a font's x-height. The x-height is determined by the height of the font's lowercase letter x.p {font-size: 24pt; line-height: 3ex;}
inDefines a measurement in inches.p {word-spacing: .15in;}
mmDefines a measurement in millimeters.p {word-spacing: 15mm;}
pcDefines a measurement in picas. A pica is equivalent to 12 points; thus, there are 6 picas per inch.p {font-size: 20pc;}
ptDefines a measurement in points. A point is defined as 1/72nd of an inch.body {font-size: 18pt;}
pxDefines a measurement in screen pixels.p {padding: 25px;}
vh1% of viewport height.h2 { font-size: 3.0vh; }
vw1% of viewport widthh1 { font-size: 5.9vw; }
vmin1vw or 1vh, whichever is smallerp { font-size: 2vmin;}
0 Comments
Disqus
Fb Comments
Comments :

No comments:

Post a Comment

Copyright © 2015 Toneysoft Blog All Right Reserved
^