Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
devwiki:css [2021/08/22 19:51] – created ying | devwiki:css [2023/06/22 08:23] (current) – [flex layout for elements] ying | ||
---|---|---|---|
Line 25: | Line 25: | ||
Learn css property by demo: | Learn css property by demo: | ||
* [[http:// | * [[http:// | ||
+ | * display: none/ | ||
+ | * examples of block level elements include: div, h1, p, and hr | ||
+ | * (takes the entire row(100%)of the screen ,it is always 100%of the screen size) | ||
+ | * examples of inline level elements include: a, span, strong, em, b, and i, canvas | ||
====== The Selectors ====== | ====== The Selectors ====== | ||
- Class | - Class | ||
Line 128: | Line 132: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ===== flex layout for elements ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
===== Page Layout ===== | ===== Page Layout ===== | ||
Line 230: | Line 244: | ||
TD{font-family: | TD{font-family: | ||
+ | </ | ||
+ | |||
+ | ===== text background color bar strike through ===== | ||
+ | |||
+ | * gradient method | ||
+ | * gradient tool: https:// | ||
+ | * < | ||
+ | // gradient with half transparent way to half BG | ||
+ | < | ||
+ | span.colorHalfBG{ | ||
+ | padding-left: | ||
+ | padding-right: | ||
+ | background: linear-gradient(0deg, | ||
+ | } | ||
+ | </ | ||
+ | * :before in absolute position to draw a block behind method | ||
+ | * ref: https:// | ||
+ | * < | ||
+ | .colorHalfBG: | ||
+ | display: block; | ||
+ | content:''; | ||
+ | position: | ||
+ | width:100%; | ||
+ | bottom:0; | ||
+ | left:0; | ||
+ | background:# | ||
+ | z-index:-1; | ||
+ | height:50%; | ||
+ | } | ||
</ | </ | ||
===== Real CSS tricks ===== | ===== Real CSS tricks ===== |