-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5_External_CSS.css
More file actions
30 lines (23 loc) · 929 Bytes
/
5_External_CSS.css
File metadata and controls
30 lines (23 loc) · 929 Bytes
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
* { /* Universal selector "*" is used when we wants to give any specific propert to all the elements of the HTML file */
margin: 0%; /* for deciding default margin of everthing of the webpage */
padding : 0%; /* for deciding default padding of everthing of the webpage */
font-family : cursive ;
}
html,body {
width : 100%; /* it means the full screen is used by body and html */
height : 100%;
}
h1{
background-color: rgb(147, 45, 45);
width: 50%; /* if not used than by default the width is 100% */
/* choosing width = 50% means heading ka jo parent hoga uski 50% width choose ki jaygi.. or heading ka parent hai body
body ki width set ki hai 100% but for heading hum us 100% ka 50% le rahe hain */
color : black ;
text-align : center ;
}
body{
background-color: gray;
}
p{
color : red;
}