This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented fne is your dabblet’s title | |
*/ | |
#main { | |
width:700px; | |
margin:auto; | |
} | |
#left { | |
margin-right: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented fne is your dabblet’s title | |
*/ | |
#main { | |
width:700px; | |
margin:auto; | |
} | |
#left { | |
width:200px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDefaultLanguage() { | |
if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) | |
return parseDefaultLanguage($_SERVER["HTTP_ACCEPT_LANGUAGE"]); | |
else | |
return parseDefaultLanguage(NULL); | |
} | |
function parseDefaultLanguage($http_accept, $deflang = "fr") { | |
if( isset($http_accept) && strlen($http_accept) > 1 ) { | |
// Split possible languages into array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p { | |
display: list-item; | |
list-style-position:inside; | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li { | |
float: left; | |
list-style-position: inside; | |
margin-left: 15px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ol { | |
counter-reset: section; /* on instancie un compteur */ | |
padding: 0; | |
/* style */ | |
background-color: #120517 | |
} | |
ol li:before { | |
display: block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Centrer une bannière en CSS avec des côtés fixes et des blocs étirables | |
* | |
* @note: De manière plus moderne, le display table et l'utilisation de border-image pourraient aussi être des solutions possiblement plus propre.* | |
*/ | |
#banniere { | |
position: relative; | |
height: 100px; /* pour donner une taille */ | |
} | |
#banniere > div { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Centrer une bannière en CSS avec des côtés fixes et des blocs étirables | |
* | |
* @note: De manière plus moderne, le display table et l'utilisation de border-image pourraient aussi être des solutions possiblement plus propre.* | |
*/ | |
#banniere { | |
position: relative; | |
height: 100px; /* pour donner une taille */ | |
} | |
#banniere > div { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Exemple de data-URI | |
*/ | |
body { | |
background-color: #f1f1f1; | |
} | |
strong { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.domino_page_bouton, | |
.domino_page_bouton:visited { | |
display: inline-block; | |
color: #fff; | |
text-decoration: none; | |
text-align: center; | |
font-size: 18px; | |
line-height: 20px; | |
/* Add and remove font-family to see the bug. This happen only in Google Chrome */ |
OlderNewer