CSS sur mon site
Résolu
Baby Trunks
Messages postés
172
Date d'inscription
Statut
Membre
Dernière intervention
-
Baby Trunks Messages postés 172 Date d'inscription Statut Membre Dernière intervention -
Baby Trunks Messages postés 172 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai créer un site et je voudrait modifier mon skin ( theme ) .Je souhaiterai qu'il soit adaptable car mon skin est fixe donc pour les petits écran mon site est trop gros et pour des grand écrans mon skin est trop petit .
Voici mon skin :
body
{
width: 900px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
background-image: url("images/fond.png");
background-repeat: repeat-y;
}
/* L'en-tête */
#en_tete
{
width: 600px;
height: 100px;
background-image: url("images/banniere.png");
background-repeat: no-repeat;
margin-bottom: 20px;
margin-left: 150px;
margin-right: 150px;
}
/* Le menu */
#menu
{
float: left;
width: 130px;
}
.element_menu
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
background-color: white;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu ul
{
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu a
{
color: navy;
}
#menu2
{
float: right;
width: 130px;
}
.element_menu2
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu2 h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu2 ul
{
list-style-image: url("images/puce.png");
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu2 a
{
color: navy;
}
/* Le corps de la page */
#corps
{
margin-left: 140px;
margin-right: 140px;
margin-bottom: 20px;
padding: 5px;
color: blue;
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
}
#corps h1
{
color: navy;
text-align: center;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
}
#corps h2
{
height: 30px;
background-image: url("images/titre.png");
background-repeat: no-repeat;
padding-left: 30px;
color: navy;
text-align: left;
}
#corps a
{
color: navy;
}
/* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
#pied_de_page
{
background-color: white;
background-image: url("images/motif.png");
background-repeat: repeat-x;
padding: 5px;
text-align: center;
color: blue;
background-repeat: repeat-x;
border: 2px solid blue;
}
Merci d'avance .
J'ai créer un site et je voudrait modifier mon skin ( theme ) .Je souhaiterai qu'il soit adaptable car mon skin est fixe donc pour les petits écran mon site est trop gros et pour des grand écrans mon skin est trop petit .
Voici mon skin :
body
{
width: 900px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
background-image: url("images/fond.png");
background-repeat: repeat-y;
}
/* L'en-tête */
#en_tete
{
width: 600px;
height: 100px;
background-image: url("images/banniere.png");
background-repeat: no-repeat;
margin-bottom: 20px;
margin-left: 150px;
margin-right: 150px;
}
/* Le menu */
#menu
{
float: left;
width: 130px;
}
.element_menu
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
background-color: white;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu ul
{
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu a
{
color: navy;
}
#menu2
{
float: right;
width: 130px;
}
.element_menu2
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu2 h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu2 ul
{
list-style-image: url("images/puce.png");
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu2 a
{
color: navy;
}
/* Le corps de la page */
#corps
{
margin-left: 140px;
margin-right: 140px;
margin-bottom: 20px;
padding: 5px;
color: blue;
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
}
#corps h1
{
color: navy;
text-align: center;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
}
#corps h2
{
height: 30px;
background-image: url("images/titre.png");
background-repeat: no-repeat;
padding-left: 30px;
color: navy;
text-align: left;
}
#corps a
{
color: navy;
}
/* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
#pied_de_page
{
background-color: white;
background-image: url("images/motif.png");
background-repeat: repeat-x;
padding: 5px;
text-align: center;
color: blue;
background-repeat: repeat-x;
border: 2px solid blue;
}
Merci d'avance .
A voir également:
- CSS sur mon site
- Site comme coco - Accueil - Réseaux sociaux
- Site de telechargement - Accueil - Outils
- Quel site remplace coco - Accueil - Réseaux sociaux
- Site x - Guide
- Site pour vendre des objets d'occasion - Guide
2 réponses
Bonjour
J'ai trouver , le voici :
body
{
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
background-image: url("images/fond.png");
background-repeat: repeat-y;
margin: 0;
}
/* L'en-tête */
#en_tete
{
width: 600px;
height: 100px;
text-align: right;
background-image: url("images/banniere.png");
background-repeat: no-repeat;
margin-bottom: 20px;
margin-top: 20px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
/* Le menu */
#menu
{
float: left;
width: 130px;
}
.element_menu
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
background-color: white;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu ul
{
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu a
{
color: navy;
}
#menu2
{
float: right;
width: 130px;
}
.element_menu2
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu2 h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu2 ul
{
list-style-image: url("images/puce.png");
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu2 a
{
color: navy;
}
/* Le corps de la page */
#corps
{
margin-left: 140px;
margin-right: 140px;
margin-bottom: 20px;
padding: 5px;
color: blue;
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
}
#corps h1
{
color: navy;
text-align: center;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
}
#corps h2
{
height: 30px;
background-image: url("images/titre.png");
background-repeat: no-repeat;
padding-left: 30px;
color: navy;
text-align: left;
}
#corps a
{
color: navy;
}
/* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
#pied_de_page
{
background-color: white;
background-image: url("images/motif.png");
background-repeat: repeat-x;
padding: 5px;
text-align: center;
color: blue;
background-repeat: repeat-x;
border: 2px solid blue;
}
Merci quand meme
A+
J'ai trouver , le voici :
body
{
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
background-image: url("images/fond.png");
background-repeat: repeat-y;
margin: 0;
}
/* L'en-tête */
#en_tete
{
width: 600px;
height: 100px;
text-align: right;
background-image: url("images/banniere.png");
background-repeat: no-repeat;
margin-bottom: 20px;
margin-top: 20px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
/* Le menu */
#menu
{
float: left;
width: 130px;
}
.element_menu
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
background-color: white;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu ul
{
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu a
{
color: navy;
}
#menu2
{
float: right;
width: 130px;
}
.element_menu2
{
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
margin-bottom: 20px;
}
/* Quelques effets sur les menus */
.element_menu2 h3
{
color: blue;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
text-align: center;
}
.element_menu2 ul
{
list-style-image: url("images/puce.png");
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 5px;
}
.element_menu2 a
{
color: navy;
}
/* Le corps de la page */
#corps
{
margin-left: 140px;
margin-right: 140px;
margin-bottom: 20px;
padding: 5px;
color: blue;
background-image: url("images/motif.png");
background-repeat: repeat-x;
background-color: white;
border: 2px solid blue;
}
#corps h1
{
color: navy;
text-align: center;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
}
#corps h2
{
height: 30px;
background-image: url("images/titre.png");
background-repeat: no-repeat;
padding-left: 30px;
color: navy;
text-align: left;
}
#corps a
{
color: navy;
}
/* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
#pied_de_page
{
background-color: white;
background-image: url("images/motif.png");
background-repeat: repeat-x;
padding: 5px;
text-align: center;
color: blue;
background-repeat: repeat-x;
border: 2px solid blue;
}
Merci quand meme
A+