Skip to content

Instantly share code, notes, and snippets.

View verekia's full-sized avatar

Verekia verekia

View GitHub Profile
.multiplebgs header {
/* Les backgrounds multiples sont supportés */
}
.no-multiplebgs header {
/* Les backgrounds multiples ne sont pas supportés */
}
if (Modernizr.geolocation){
// La géolocalisation est supportée
}
else {
// La géolocalisation n'est pas supportée
}
document.createElement("header");
div{
background-color: rgba(255, 0, 0, 0.5);
}
p {
column-count:2;
}
body{
background-color:green;
}
@media screen and (max-device-width: 600px) {
/* Style appliqué uniquement sur les écrans de moins de 600px de largeur */
body{
background-color:red;
a {
color: red;
}
a:not(.notme) {
color: green;
}
<a href="#" class="notme">Je suis rouge</a>
<a href="#">Je suis vert</a>
<a href="#">Je suis vert</a>
a[href^="http://"]{
color:red;
}
<a href="http://www.exemple1.com">Lien externe</a>
<a href="http://www.exemple2.com">Lien externe</a>
<a href="#">Lien interne</a>
<a href="http://www.exemple3.com">Lien externe</a>