-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS Note.txt
More file actions
316 lines (260 loc) · 12 KB
/
CSS Note.txt
File metadata and controls
316 lines (260 loc) · 12 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
100 - section notes:
------------------------
*)Product slider with tab
------------------
image - position diye opacity kore korbo,img j style cai dite parbo,
icon box display block and position diye center kore korbo,
price money ke before or full width kore position left and margin kore kaj korbo,
mark up alway wrapper e vag kore kaj korbo,
*)My - Section - Bootstrap Modal
------------------------------------
<div class="modal-backdrop fade show"></div> eita fade er kaj kore,
modal-content er bitor bitor part design korbo,
button ke dore setar bitor design korb,
section er moddhe rekhe kaj korb,
*)RRF - Section - 37 - Our TEAM
------------------------------------
ei section e title ta vertical rotate korbo,
team info er name ta ektu margin - top kore height dibo,
responsive e title horizontal kore dibo,
*)-RRF - Section - 34 - Appoinment Section
--------------------------------------------
appoinment text er before after er kaj ase kisu,
.Appoinment-text:before {
content: "";
position: absolute;
top: 0;
left: -1000%;
width: 1000%;
height: 100%;
background: aqua;
}
.Appoinment-text:after {
content: "";
position: absolute;
top: calc(50% - 25px);
right: -25px;
width: 50px;
height: 50px;
background: aqua;
transform: rotate(45deg);
}
.Appoinment-text h2 {
font-size: 50px;
font-weight: 700;
text-transform: uppercase;
color: blue;
}
*)Css positon Practice
------------------------------
position e relative parent div k z-index dile tar bitor absolute z-index
dile content er piche jabe..
child upor niche korte z-index + use kore kaj korbo,
*)RRF - Section - 106 - Home Slider New Styl
-----------------------------------------------
slider design in container picture and section half background,
slider-area>slider-active>single-slider, slider-1,
*)RRF - Section - 135 - Google Brand Section
------------------------------------------
eita left icon box ache ja positon or flex or float or display inline-block
diye korte pari, section bg er er before after bg ase,
col-lg-7 offset-lg-1
*)RRF - Section - 131 - Pricing Table Section blue round price money,
----------------------------------------
single prie box alway min-height and header min-height dibo
*)div center tricks
--------------------------
1)display flex,justy-cneter,align-center
2)positionTopLeft50%, transform:traslate(-50%), margin half delete or calc(50%-half width),
3)parent(display:table) , child-wrapper(display:table-cell,vertical align middle,text-center),
4)displya:grid,justy-content:center,align-content:center,
5)text-center, line-height:full height,
---------------------------
*)slider bananor somoy single age slider design korbo,
*)font size and light-height 1.1 = 110%
.single-product-wrapper:hover .product-img img:nth-child(2) {
top: 0;
opacity: 1;
}
*)font awesome add korte, = add font awesome file in fonts folder,
-) all.min add ,
-)replace webfonts to fonts
bt-class p-0 use kore container-fluid margin kata,
top: calc(50% - 25px);
*)position absolute, left,right 0 kore margin auto kore center neya jai
*)row te aling item center dile sob center e jabe,
*)dropdown menu te minimum width use korbo jate text thik thaek
*)position relative z-index thakle position absolute z-index -1 korle ta
parent er content er piche jabe but ekdom piche jabe na tar background er upor thakbe,
*)z-index child up down korte +1 theke use korbo child e deya
1)kno div er fixed width na thakle margin diye laft right komano jai ,
2)icon box position kore left,top e niye padding left diye banano jai icon box,
3)img position ektar upor arekta korar jonno amra img er widht % hisebe use korbo and height auto position top,left % use korbo but 1st er ta korbo na
ar jate responsive hoi r baki ta media te change korbo lagle
4)owl dots er button >span ke before kore tar bitor content deya jai
5)blog section er khetre img hisebe background nibo jgulo face nai and
height dibo tar and content er padding diye sajabo and kaj korar somoy responsive and container fluid mathai rakhbo
6)wrong - responsive margin botton = #section-name col-4{margin-bottom:30px} #section-name col-4:last-child{margin-bottom:0px}
7)hero section er img last/right bottom e lagate position use korbo
8) upor niche kno div hover e boro korte caile main single box er wrapper k margin top,botton dite hobe
and hover er ta margin top,bottom minus korte hobe. eta transform scale Y diyeo hobe
9)kono kisu position korle setar width choto hoye jai and main wrapper er bitor khali hoye jai tachara choto ta width 100% kore full widht kora lage abr or left and right 0 koreo hobe
10)position:inherit mane uttoradikar theke value paowa k bujai
11) position e icon center er khetre amra margin - kore korte pari tar ordhek width ba height er - kore
12)img display block kore margin auto korle center cole asbe,
13)box shadow dekhato hole content er upor or left right kichu faq rakha lagbe
14)kono div er main e opacity dile seta before after eo lagbe karon seta main er bitor e ache jehetu before after child tar,
15)height dekhte fully vabe inspect element ta seperate window kore kaj korbo
16)z-index manage ta very important ei ta niye deeply kaj korte ekta wrapper niye kaj kora valo
*)position top:0,left:0,right:0 diye widht 100% hobe and bottom:0 diye height 100% hobe and left right px diye margin er moto kata jai
17)positon top0left0 widht:100,height100 or bottom0 right 0
18)transform-z & scale-z run by help of rotateX(60deg);
19)perserva-3d can use in rotate div perpective can be used in parent or main div as a function
20)man / team title er h1 er span(web desing) er font size % e dile valo
21)hover e hover state on kore kaj kora
22)kono kisu positon dile tar width content er size hoye jai pore seta widht 100% diye thik korte hoi
**)RR foundation left - 10-20,27,29,31,32,34,37,38,39,40
*)javascript class diye kaj korle class ta inspect e add kore style dibo,
Inspector tutorials -
1)html search,css filter,full website ss, section ss,
2)size mapa tools ,copy outer html,on hover option,change new css style see,
3)animation,fonts,layout, mouse click html markup, edit and copy full html code,
4)responsive mobile,color picker,
5)copy html,css can easily,css off tools,css save older element in one click
6)css copy trick - save old style css and copy new style
7)media query responsive css theke kaj korabo
8)i can take full website ss mobile + dekstop version by full ss tools
9)you can paste main css fully in inspect element
change css option,filter,search html,
10)save firefox bookmark, save website img by view img option
*)how to check all link is working = go to view <source> and click all link if work then it will run auto in new tab,
font see
clt-shift-c
1)inspector - html edit and add css rules and many
2)style editor - cody or add css and get your new css stye etc
3)console for javascript
4)debugger - for debug you code
5)network , performance, memory,dom,storage,accessibility,application
-------------------******--------------
wrapper div er bitor content center tricks
*)position with traslate, flex,grid, top:cals(50%-height/2)
Grid all property working process:
---------------------------------------
display:grid = to open grid style,
grid-template-columns = grid-cols-3 = repeat(3,(minmax,1fr)); = eita dile block div 3 column e vag hobe soman vabe, but height tader content onujai nibe,
grid-template-rows = grid-rows-3 = repeat(3,(minmax,1fr)) eita kaj korbe jodi wrapper div er height thake and ba fixed row er height dile kaj krbe,
grid-auto-row = grid-rows-flow:400px eita 3 row bade baki guloi height use krbe minimum,
grid-columns-span = cols-span-2 = 2 theke dibo 1 er kno value nai, eita dile 2ta column niye nibe, jaiga,
grid-rows-span = rows-span-2 = 2 theke dibo 1 er kno value nai, eita dile 2ta rows niye nibe, jaiga,
height fact na but width sob somoy fluied rakhar cesta krbo,
*)grid wrapper er bitor kno element er width fixed krbo na kono somoy,
*)grid wrapper er height auto barbe, min-height deya lagbe na,
place-content:center; = 2ta ek shate use hoi,
/*justify-content: center;*/
/*align-content:center;*/
place-items:center; = 2ta ek shate use hoi,
/*justify-items: center;*/
/*align-items:center;*/
https://www.digitalocean.com/community/tutorials/css-align-justify = grid blogs
to center all text of a div = grid, align-content-center, text-center/justify-content-center,
place-content-center,
place-item-center,justify-items,align-item = use for single text center, vertical and horizontally,
justify-content or, align-conent items egulo use krte hole template columng delete krte hobe fluid ta or fix thakle kaj krbe,,
grid-template-col:repeat(auto-fit,minmax(300px,1fr))
read this blogs : https://www.freecodecamp.org/news/author/joy/
CSS Flexbox ===================
display:flex = this will inline all child elements in one line,
flex-wrap = wrap, = this will responsive grid,
flex-width = fixed
flex-wrap use krle flex-gap use krte parbo na, seta niche ene dibe, taile,
flex-wrap er shate tar child er width dite hobei,
flex-wrap chara only flex use krle child er width deya na deya eki, tokhon responsive er jonno flex-row and flex-column shudu krte parbo 2 column er jonno use krte pari,
flex = justify-center:start and align-item: starch,
flexbox use krbo jodi row and column direct use kri, and ekta ekta kora namale grid use krbo,
video ; https://www.youtube.com/watch?v=3elGSZSWTbM
https://www.youtube.com/watch?v=u044iM9xsWU
https://www.youtube.com/watch?v=rg7Fvvl3taU
youtube.com/watch?v=bn-DQCifeQQ
*)center verticle and horizontal = flex,justify,align,
*)header item horizontal center = flex,align-center,
*)a tag = display:block,padding,margin-top-bottom,
*)header main div = padding-top-bottom,
*)center by before after = position absolute,top-left:50%, transform:translate(-50%x,y);
*)a tag dropDown = a tag relative and inner ul tag absolute,width,desing,
*)button create = display:inlineBlock,padding,font-size,color,background-border(same),transition
*)bg img set = bg-color-img-repeat-position-size,
*)kno div k upor ante caile seta position relative kre z-index bariye dibo,
*)before after diye about left right border,section title border,bg img setup,overlay img setup krte parbo,
*)kno div position relative kre z-index dile and tar child div k absolute kre z-index - krle se tar parent er last e cole zabe tai parent k z-index dibo na,
*)img e max-width use krbo and height e min-height use krbo sob somoy,
*)p tag e line height tar text size er dubble dibo,
*)kno text k verticle center ante text-center and lineheight: parent div er height size dibo,
*)img background cover krte caile = width,height 100%, object-fit:cover krbo,
*)margin left-right diye div er dan bam kata jai,
*)margin top - kore/transform y - kore, / top - kore same kaj kora jai,
*)display grid, template column dile, tader width deya jabe na bitor er kno content e, height dite parbo, but min-height use krbo,
Multiple selector use,
============================
.single-promo-box:nth-child(4) .box-btn:hover ,
.single-price-box:hover .price-content ,
.single-price-box>ul li:hover .price-content ,
.single-price-box:hover .price-content h3,
.single-price-box:hover .price-content h2,
.single-price-box:hover .price-content p{
color: white;
}
==========================
before after e ja ja lage
===========================
.big-img-wrapper:before {
content: ""; / content e icon code dite pari,
position: absolute;
top: 10px;
left: -10px;
width: 100%;
height: 100%;
background: #7457fe;
z-index: -1;
}
=========================
======================
dropdown sub menu,
.sub-menu {
flex-direction: column;
position: absolute;
background: black;
width: 200px;
top: 115%;
left: 0%;
opacity: 0;
visibility: hidden;
transition: .3s;
}
ul li {
position: relative;
}
.sub-menu li a {
margin: 0px;
padding: 20px 40px;
}
.sub-menu li a:before {
background: transparent;
}
nav ul li:hover>.sub-menu {
opacity: 1;
visibility: visible;
top: 100%;
}
.sub-menu li .ul.sub-menu {
left: 100%;
background: red;
}
.sub-menu li .sub-menu {
left: 90%;
top: 0%;
}
.sub-menu li:hover>.sub-menu {
left: 100%;
top: 0%;
}
=======================