This repository was archived by the owner on Dec 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathblog2.css
More file actions
222 lines (176 loc) · 3.8 KB
/
blog2.css
File metadata and controls
222 lines (176 loc) · 3.8 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
*{
margin:0; padding:0;
/* * means everything
if you want to the h1 and p1 dontt put their padding and margin par default*/
}
body{
background-color:#f4f4f4;
color:#555555;
/*font-family: Arial, Halvetica, sans-serif; font-size: 16px; font-weight:normal; /* 400 , normal , bold*/
font : normal 16px Arial, Halvetica, sans-serif;
line-height: 1.6em; /*space between the lines*/
margin:0;
}
a{
text-decoration:none; /* to delete the underline */
color:#000;
}
a:hover{
color: red; /* on hover it turns red */
}
a:active{
color:green; /* on click it turns green */
}
.visit:visited{
/* color:yellow; /* when you visit the link for example and come back it will turn yellow */
}
.button:hover{
background:red;
color: #fff;
}
.clr{
clear: both; /* clear any floats */
}
.container{
width:80%; /* it is responsive then px */
margin:auto; /*set an auto margin (spaces) an all sides so it is pushed over in the midlle
padding is the space inside and margin is the space outside */
}
.box-1{
background-color:#333;
color:#fff;
border:5px red solid;
border-width: 3px;
border-bottom-width:10px;
border-top-style:dotted;
padding:40px;
margin-top:20px;
margin:20px 0;
}
.button{
background-color: #333;
color: #fff;
padding:10px 15px;
border: none;
}
.box-2{
border: 3px dotted #ccc;
padding:20px;
margin: 20px 0;
}
.categories{
border: 1px #ccc solid;
padding: 10px;
border-radius:15px;
}
.myform{
padding:20px;
}
.myform .form-group{
padding-bottom:15px;
}
.block{
float:left;
width: 33.3%; /* 3 of theme */
border: 1px solid #ccc;
padding:10px;
box-sizing: border-box; /*takes in the padding and the border and the stuff in and applies it to the width itself */
/*flexbox is better then this */
}
.box-1 p{
/*margin-top:5px; margin-bottom:5px; margin-right:10px; margin-left:10px; */
margin: 5px 10px 5px 10px; /*top right bottom left*/
/* margin: 5px 10px; /*top+bottom are the same , and right+left the same */
/*margin: 5px; /*all the same , and the same thing for padding*/
}
.box-1 h1{
font-family:Tahoma;
font-weight:800;
font-style:italic;
text-decoration:underline;
text-transform:uppercase;
letter-spacing:0.2em;
word-spacing:1em;
}
.categories h2{
text-align:center;
}
.categories .nav-cat ul{
padding:0;
padding-left:20px;
list-style:square;
list-style:none;
}
.categories li{
padding-bottom:6px;
border-bottom: dotted 1px #333;
list-style-image:url('../../../images/s.jpg');
}
.myform label{
display:block; /* to make labels in their own line */
}
.myform input[type="text"],.myform textarea{
padding:8px;
width:100%;
}
/* its the same as button
.myform input[type="submit"]{
background-color: #333;
color: #fff;
padding:10px 15px;
border: none;
}
*/
#main-block{
float: left;
width: 70%; /*responsive*/
padding: 15px;
box-sizing:border-box;
}
#sidebar{
float:right;
width: 30%; /*responsive*/
background-color: #333;
color: #fff;
padding: 15px;
box-sizing:border-box;
}
.p-box{
width:800px;
height:500px;
border:1px solid #000;
margin-top:30px;
position: relative; /* the parent element is relative so that we can push the sons elements from their box */
background-image:url('../../../images/1.jpeg');
background-position: 100px 200px;
background-repeat: no-repeat;
background-position:center center; /*center horizentaly nd verticly */
background-size: cover;
}
.p-box h1{
position: absolute;
top: 100px;
left: 200px;
}
.p-box h2{
position: absolute;
bottom: 40px;
right: 100px;
}
.fix-me{
position: fixed; /* to fix the button at top of 400px no matter where we move in the page */
top: 400px;
}
/* sudo elements */
.mylist li:first-child{
background: red; /* image or color*/
}
.mylist li:last-child{
background:blue; /* image or color*/
}
.mylist li:nth-child(5){
background: yellow;
}
.mylist li:nth-child(even){
background: blueviolet;
}