span keyword which as no fonctionality.Une phrase avec un <span style="color:red;"> mot </span> rouge
px (Pixels):
px is an absolute unit of measurement.em:
em is a relative unit of measurement.em is based on the browser's default font size.1em is equal to the font size of the element itself. For example, if an element's font size is 16px, 1em is 16px.% (Percentage):
% units are relative to the parent element's size.50%, it will be half the width of its parent element.vw and vh (Viewport Width and Viewport Height):
vw represents a percentage of the viewport width, while vh represents a percentage of the viewport height.rem (Root em):
rem is similar to em but is based on the font size of the root (<html>) element rather than the parent element.cm, mm, in, pt, pc (Absolute Length Units):
cm represents centimeters, mm millimeters, in inches, pt points, and pc picas.In general, it's a good practice to use relative units (em, rem, %, vw, vh) for most layout and sizing purposes, especially in responsive web design. They adapt well to different screen sizes and are more accessible for users who might adjust their default font sizes for readability. Absolute units like px and physical units (cm, mm, in, pt, pc) are often used for specific design elements where precise control is required, such as print stylesheets or when working with fixed-sized elements.
.ex3 .hide3 {
width: 100%;
display: table;
overflow: hidden;
overflow-x: auto;
height: auto;
transition: 0.7s ease;
background-color: #00000016;
border-radius: 10px;
padding-left: 2em;
padding-right: 2em;
padding-top: 1em;
padding-bottom: 1em;
box-sizing: border-box;
}
.ex3 input[type="checkbox"]:checked + .hide3 {
height: 0;
opacity: 0;
display: block;
padding: 0;
border-radius: 0;
margin: 0;
}
<div class="ex3">
<label for="newname">
~ Drop Down Menu
</label>
<input type="checkbox" name="one"
id="newname" checked = "true">
<div class="hide3">
Stuff Goes here ...
</div>
</div>
brew install pandoc
Convert file to html and put it in the clipboard (on macos)
pandoc "filename.md" -t html | pbcopy
a[href^="http"]::after,
a[href^="https://"]::after {
content: "↗";
margin-left: 4px;
display: inline-block;
}
@media (prefers-color-scheme: light){
:root{
--color-default: #322e2d;
--color-bg: #b8b1a9;
--color-dim: #606060;
}
}
@media (prefers-color-scheme: dark){
:root{
--color-default: #BAB6B1;
--color-bg: #322e2d;
--color-dim:#7f7f7f;
}
}
@media only screen and (max-width: 400px)
{
html { padding: 0.5rem;}
}