CSS -2
CSS -2
Chapter - 1
Introduction to CSS 2
CSS version 2 (Cascading Style Sheet)
If you want to design your webpage so you have to learn css language.
अगर हम आपनी वेबसाइट को डिजाईन करना चाहते है तो हमे CSS पढना होगा !
What your HTML ELEMENT will look like on different screens, you can also create
it in CSS.
आपका HTML ELEMENT अलग अलग screen पर कैसा डिखेगा ये भी आप CSS में बना सकते है
CSS saves a lot of work. It can control the layout of multiple web pages all at
once
CSS की मिि से वैबसाइट को डिज़ाइन करने में बहोत कम समय लगता है । CSS में आप एक ही बार मे
कई सारे डिज़ाइन को control कर सकते है
HTML CSS
css have some property and value to design html page that means if you
want to learn css so you have to remember css property and value.
css के पास कुछ properties और value है जजसकी मदद से हम html page को किज़ाइन
करते है इसका मतऱब अगर आप css सीखना चाहते है तो css के properties और values
को याद करे ।
PROPERTY VALUE
color red , #323232 , rgb(120,102,65)
font-size 20px
letter-spacing 20px
word-spacing 20px
line-height 20px
text-indent 20px
Stylesheets
A METHODS TO IMPLEMENTING PROPERTY AND VALUE IN HTML PAGE IS KNOWN AS STYLE SHEET.
CSS के PROPERTIES और VALUE को HTML PAGE मे िािने के तरीके को STYLESHEET कहा जाता है ।
1. Inline stylesheet
2. Internal stylesheet
3. External stylesheet
INLINE STYLESHEET
Syntax :-
Chapter - 2
Web layout design with sementic elements
CSS version 2 (Cascading Style Sheet)
Sementic Elements
Sementic elements(block level elements) are the collection of so many
tags . used to make website layout with css properties and value .
PROPERTY VALUE
width 200px
height 200px
border-width 1px
border-color Red,#323232,rgb(120,120,150)
padding 10px
padding-top 10px
padding-bottom 10px
padding-left 10px
padding-right 20px
margin 10px
margin-top 10px
margin-bottom 10px
margin-left 10px
margin-right 10px
Address :- New Delhi Contact :- 8882880965
Chapter - 4
CSS2 Internal Stylesheet
CSS version 2 (Cascading Style Sheet)
In internal stylesheet we can easily controls the design of all html element at one time
SYNTAX :-
<head>
<style>
Element { property : value; }
</style>
</head>
Address :- New Delhi Contact :- 8882880965
Chapter - 6
CSS2 Selectors
CSS version 2 (Cascading Style Sheet)
selectors are used to select html element in css to implement css properties
and values.
1. Element Selector
h1{color : red; }
2. Id Selector
#one{color : red; }
3. Class Selector
.one{color : red;}
Address :- New Delhi Contact :- 8882880965
Chapter - 8
External Stylesheet & Background Property
CSS version 2 (Cascading Style Sheet)
</body>
</html>
Property Value
Background-color Blue, #323232, rgba(0,0,0,0.5)
Background-image url(imagename.jpg)
Chapter - 9
Metadata Installation with beautyproducts.com
CSS version 2 (Cascading Style Sheet)
The tag provides metadata about the html document. Metadata will not be
displayed on the page, but will be machine parsable.
1. Language Installation
2. Characters Installation
3. Keywords Installation
4. Page Description Installation
5. Author Installation
6. Content Arrangement Installation
Language Installation
<meta lang=”en-US”>
Characters Installation
<meta charset=”utf-8”>
Keywords Installation
Define keywords for search engines
<meta name=”keywords” content=”BEAUTYPRODUCTS, PRODUCTS,
BEAUTYPRODUCTS.COM, BEAUTY”>
Author Installation
Define the author of a page
<meta name=”author” content=”beautyproducts.com”>
Chapter - 11
CSS2 Properties List
CSS version 2 (Cascading Style Sheet)
Background Properties
Property Value
Background-color Blue, #323232, rgba(0,0,0,0.5)
Background-image url(imagename.jpg)
PROPERTY VALUE
color red , #323232 , rgb(120,102,65)
font-size 20px
letter-spacing 20px
word-spacing 20px
line-height 20px
text-indent 20px
Dimensional Properties
PROPERTY VALUE
width 200px
height 200px
border-width 1px
border-color Red,#323232,rgb(120,120,150)
padding 10px
padding-top 10px
padding-bottom 10px
padding-left 10px
padding-right 20px
margin 10px
margin-top 10px
margin-bottom 10px
margin-left 10px
margin-right 10px
box-sizing border-box
border-radius 20px
border-top-left-radius 20px
border-top-right-radius 20px
border-bottom-left-radius 20px
border-bottom-right-radius 20px
Chapter - 12
CSS2 PSEUDO CLASSES
Pseudo classes are used to apply conditions on css properties.
: hover
: focus
: active
: visited
: unvisited
: checked
: disabled Syntax:-
: empty
: enabled Selector : pseudo class {
: first-child Background-color : red ;
: first-of-type }
: in-range
: last-child
: root
: target
: valid
Address :- New Delhi Contact :- 8882880965
Chapter - 14
CSS2 Position Properties
PROPERTY VALUE
position relative, absolute, fixed
top 10px
bottom 10px
left 10px
right 10px
z-index 1 , -1
Address :- New Delhi Contact :- 8882880965
Chapter - 17
CSS2 Miscellaneous selectors and properties
Selectors
Element Selector Id Selector
<head> <head>
<style> <style>
Element name{ #id value{
Properties : value; Properties : value;
} }
</style> </style>
</head> </head>
PROPERTY VALUE
overflow hidden , scroll
overflow-x hidden , scroll
overflow-y hidden , scroll
content “any text here”
PROPERTY VALUE
cursor alias , all-scroll, auto, cell, context-menu, col-
resize, copy, crosshair, default, e-resize, grab,
grabbing, help, move, n-resize, ne-resize,
nesw-resize, ns-resize, no-drop, none, not-
allowed, pointer, progress, url() auto, wait,
zoom-in, zoom-out
Address :- New Delhi Contact :- 8882880965
Chapter - 18
CSS2 Opacity & Pseudo Element
Pseudo Element
: : before
: : after
: : first-letter
: : first-line
: : selection