CSS presentation for beginners where they can understand easily
Indu32
8 views
30 slides
Oct 05, 2024
Slide 1 of 30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
About This Presentation
CSS presentation for beginners where they can understand easily
Size: 87.27 KB
Language: en
Added: Oct 05, 2024
Slides: 30 pages
Slide Content
CSS Cascading Style Sheets
Style sheet is a collection of formatting styles, which can be applied to a web page . CSS stands for C ascading S tyle S heets Styles define how to display HTML elements Styles were added to HTML 5.0 to solve a problem Style sheet
The syntax of a style rule is as follows: Selector { property:value ;} Where Selector =any html tag Property= attributes like font color, font size Value= setting for the attributes Ex: h1{ color:red ;} style Rule
There 3 types of css Inline css Internal css External css Types of css
There 2 types Single line Multi line /*........................ ........................ ......................... */ Comments
Text- align : left, right, center, justify Text- transform : uppercase, lowercase , capitalize Text-indent : 2em or 20 px Text-decoration : underline , over line, line-through Word-spacing : Normal or length Basic elements in css
Font - family : Calibri , Arial etc font – size : 5 Font-style : Normal or italic Font- weight : Bold Font – variant : small-caps or normal Basic elements in css (font)
Background Image Background attach Background Repeat Background color Background Position Background
Body {background-image: url (‘smallPic.jpg’); } or {background-image: url (‘smallPic.jpg’); background-repeat: no-repeat;} Or {background-image: url (‘smallPic.jpg’); background-repeat: repeat-y;} Background Image
{ background-image: url (smallPic.jpg); background-repeat: repeat-x;} Or { background-image: url (smallPic.jpg); background-repeat: repeat; } Or h4 { background-color: white; } Or { background-image: url (smallPic.jpg); background-position: top center; } Background Image
table { border-color: rgb ( 100, 100, 255); border-style: dashed; } td { border-color: #FFBD32; border-style: ridge; } p { border-color: blue; border-style: solid; } Ex : p { border: 20px outset blue ;} h4{ border: 5px solid; } h5{ border: dotted; } Border Color
The CSS margin properties define the space around elements. Example margin-top:100px; margin-bottom:100px; margin-right:50px; margin-left:50px; margin:25px 50px 75px 100px; margin:25px 50px 75px; margin:25px 50px; margin:25px CSS Margin
The CSS padding properties define the space between the element border and the element content. Example padding-top:25px; padding-bottom:25px; padding-right:50px; padding-left:50px; padding:25px 50px 75px 100px; padding:25px 50px 75px; padding:25px 50px; padding:25px; CSS Padding
Css allows the web page designers to position the web page anywhere on the web page . There 4 types of position Normal Absolute Relative Fixed Position Properties