<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Css :: Tag :: Ma documentation</title><link>http://quentinpigne.github.io/tags/css/index.html</link><description/><generator>Hugo</generator><language>fr-FR</language><atom:link href="http://quentinpigne.github.io/tags/css/index.xml" rel="self" type="application/rss+xml"/><item><title>CSS Reset</title><link>http://quentinpigne.github.io/developpement/frontend/css-scss/css-reset/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://quentinpigne.github.io/developpement/frontend/css-scss/css-reset/index.html</guid><description>The CSS Reset /* 1. Use a more-intuitive box-sizing model. */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } /* 3. Allow percentage-based heights in the application */ html, body { height: 100%; } /* Typographic tweaks! 4. Add accessible line-height 5. Improve text rendering */ body { line-height: 1.5; -webkit-font-smoothing: antialiased; } /* 6. Improve media defaults */ img, picture, video, canvas, svg { display: block; max-width: 100%; } /* 7. Remove built-in form typography styles */ input, button, textarea, select { font: inherit; } /* 8. Avoid text overflows */ p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } /* 9. Create a root stacking context */ #root, #__next { isolation: isolate; } Références https://meyerweb.com/eric/tools/css/reset/ https://www.joshwcomeau.com/css/custom-css-reset/</description></item><item><title>Block Margin Issue</title><link>http://quentinpigne.github.io/developpement/frontend/css-scss/block-margin-issue/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://quentinpigne.github.io/developpement/frontend/css-scss/block-margin-issue/index.html</guid><description>Le problème &lt;body> &lt;div style="border: 1px solid green"> &lt;span style="border: 1px solid red; font-size: 12px;">Ceci est un texte&lt;/span> &lt;/div> &lt;/body> Solutions Utiliser display: flex à la place de display: block sur le container : &lt;body> &lt;div style="border: 1px solid green; display: flex"> &lt;span style="border: 1px solid red; font-size: 12px">Ceci est un texte&lt;/span> &lt;span style="border: 1px solid red; font-size: 8px">Ceci est un autre texte&lt;/span> &lt;/div> &lt;/body></description></item><item><title>Appliquer un masque à une image</title><link>http://quentinpigne.github.io/developpement/frontend/css-scss/image-mask/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://quentinpigne.github.io/developpement/frontend/css-scss/image-mask/index.html</guid><description>Utiliser un PNG transparent au dessus de l’image (méthode traditionnelle). Définir le border-radius à la moitié (50%) de la dimension de l’image de manière à faire un cercle. Utiliser les propriétés CSS3 mask et mask-clip (démo). Utiliser un canvas en tant que masque. Utiliser un SVG en tant que masque avec l’image comme background-pattern. Utiliser la propriété CSS3 clip-path. Références https://stackoverflow.com/questions/8337570/best-way-to-mask-an-image-in-html5 https://bennettfeely.com/clippy/</description></item><item><title>CSS Overlay Techniques</title><link>http://quentinpigne.github.io/developpement/frontend/css-scss/overlay-techniques/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://quentinpigne.github.io/developpement/frontend/css-scss/overlay-techniques/index.html</guid><description>Élément en position absolue &lt;html> &lt;body> &lt;div class="overlay">&lt;/div> &lt;body> &lt;html> html, body { min-height: 100%; } body { position: relative; } .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; background-color: rgba(0,0,0,0.5); /*dim the background*/ } Élément avec une position fixe Utilisation d’un pseudo élément Appliquer un grand contour à une modale Appliquer une grande ombre à une modale Utilisation de l’élément HTML &lt;dialog> Références https://tympanus.net/codrops/2013/11/07/css-overlay-techniques/</description></item><item><title>Faire de belles ombres en CSS</title><link>http://quentinpigne.github.io/developpement/frontend/css-scss/shadows/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://quentinpigne.github.io/developpement/frontend/css-scss/shadows/index.html</guid><description>Références https://www.joshwcomeau.com/css/designing-shadows/</description></item></channel></rss>