taille de vos fichiers css?

taille de vos fichiers css? - HTML/CSS - Programmation

Marsh Posté le 13-10-2005 à 22:14:15    

bonjour,  
 
étant looser apprenti en css, j'ai appris récemment qu'il faut définir le css dans un fichier séparé (c'est préférable).  
Mais apres qq petits exercices, je m'apercois que même en utilisant tres peu le css, ce fichier commence a répertorier pas mal de choses :heink: . J'aimerais savoir quelle est la taille de vos fichiers css, en nombres de lignes  :)  
 
merci d'avance  :)


---------------
OST Anime
Reply

Marsh Posté le 13-10-2005 à 22:14:15   

Reply

Marsh Posté le 13-10-2005 à 23:01:42    

Bonsoir,
étant moi aussi en phase d'apprentissage de xhtml 1.0 et des css, mon premier css fait seulement une 50aine de ligne vu qu'il doit uniquement être appliqué sur ma page d'accueil. Enfin c'est régulièrement revu au fil de mes cours ;).


Message édité par Johnc 3 le 13-10-2005 à 23:02:08
Reply

Marsh Posté le 13-10-2005 à 23:07:01    

Le mieux c'est de découper en plusieurs parties le fichier CSS pour mieux s'y retrouver. Par exemple une CSS avec juste la mise en page, une autre avec que les couleurs, etc... Je trouve ça beaucoup plus pratique.
De toute façon, la plupart du temps, que ce soit avec une ou plusieurs CSS, c'est quand même assez volumineux ;)


Message édité par onizuka_sensei le 13-10-2005 à 23:07:20
Reply

Marsh Posté le 13-10-2005 à 23:08:21    

http://www.martiusweb.net/html/css/style.css
Si tu as envie de compter :D


---------------
Martin
Reply

Marsh Posté le 13-10-2005 à 23:17:15    

merci Martius, c'est sympa d'avoir mis le lien de ton propre css  :) . Enfin je peux voir un vrai fichier. La ca va, 262 lignes, c'est pas si grand que ca finalement  :pt1cable: . Il sert seulement a la page d'accueil? parce que pour une page seulement, oui ca commence a faire bcp   :sweat:  
 
Onizuka_sensei: ca m'a jamais traversé l'esprit de faire en plusieurs fichiers. Seulement si je veux mettre a la disposition du visiteur plusieurs skins possibles pour le site. Sinon, avec une bonne présentation et qq commentaires, ca doit aller je pense.  :)


---------------
OST Anime
Reply

Marsh Posté le 13-10-2005 à 23:24:46    

Citation :

/*
-------------------
PROPRIETES GLOBALES  
-------------------
*/
 
 
* {
 font-family: Verdana, sans-serif;
 padding: 0;
 margin: 0;
}
 
 
/*
----------------
BLOCS PRINCIPAUX
----------------
*/
 
 
body {
 background: url(/images/background.jpg) fixed no-repeat top left;
 text-align: center; /* bug de centrage sous IE */
}
 
#conteneur {
 width: 100%;
}
 
#main {
 background: rgb(160,159,152);
 border: 1px black solid;
 margin: 0 auto;
 width: 90%;
}
 
 
/*
-----------
HEADERS 1-6
-----------
*/
 
 
h1,h2,h3 {
 border-bottom: 1px black solid;
 font-weight: bold;
 text-align: left;
 padding: 1em 0;
}
 
h1 {
 background: url(/images/header1_gradient.jpg) repeat-x top left;
 font-size: 25px;
 padding: 0;
}
 
h2 {
 background: rgb(190,190,190);
 text-indent: 30px;
 font-size: 16px;
}
 
h3 {
 border-bottom-style: none;
 text-align: center;
 font-size: 11px;
}
 
h4,h5,h6 {
 background: rgb(183,190,198) url(/images/header_gradient.jpg) repeat-y top right;
 border-bottom: 1px black solid;
 vertical-align: middle;
 color: rgb(45,63,85);
 line-height: 20px;
 font-weight: bold;
 font-size: 10px;
 text-indent: 30px;
 text-align: left;
}
 
h5 {
 border-top: 1px black solid;
}
 
h6 {
 clear: both;
 background: rgb(100,100,100) url(/images/w3c.gif) no-repeat center left;
 color: rgb(200,200,200);
 border-top: 1px black solid;
 border-bottom: none;
 text-align: center;
 text-indent: 0;
}
 
 
/*
-----------
PARAGRAPHES
-----------
*/
 
 
p {
 padding: 0.5em 0;
}
 
 
/*
-------------------------
CONTENEUR MENU NAVIGATION
-------------------------
*/
 
 
#conteneur_menu_nav {
 float: left;
 width: 19%;
}
 
 
/*
-------------------
MENUS DE NAVIGATION
-------------------
*/
 
 
#menu_public,#menu_admin {
 background: rgb(220,220,220) url(/images/liens_gauche.gif) repeat-y top left;
 border: 1px black solid;
 border-left: none;
 font-weight: bold;
 font-size: 12px;
 padding: 3px 0;
}
 
* ul {
 list-style: none;
 border: none;
}
 
* li {
 text-indent: 30px;
 text-align: left;
}
 
* li a {
 background: rgb(220,220,220) url(/images/liens_gauche.gif) repeat-y top left;
 color: rgb(120,120,120);
 vertical-align: middle;
 text-decoration: none;
 line-height: 32px;
 display: block;
 width: 100%;
}
 
html>body * li a {
 width: auto;
}
 
* li a:hover {
 background: rgb(205,205,205) url(/images/liens_hover.gif) no-repeat center left;
 color: black;
}
 
 
/*
-----------
PAGE DROITE
-----------
*/
 
 
#page_droite,#page_droite_noir,#page_droite_erreur {
 border: 1px black solid;
 border-right: none;
 margin-bottom: 10px;
 float: right;
 width: 79%;
}
 
#page_droite {
 background: rgb(200,200,200) url(/images/texte_gradient.jpg) repeat-y top right;
}
 
#page_droite_noir {
 background: black url(/images/background_noir.jpg) repeat-y top center;
 text-align: center;
 padding: 80px 0;
}
 
 
/* PAGES D'ERREURS */
 
 
#page_droite_erreur {
 background: rgb(200,200,200);
}
 
#header_page_erreur {
 border-bottom: 1px black solid;
 background: rgb(220,220,220);
 padding: 50px 80px;
 text-align: left;
}
 
#details_page_erreur {
 padding: 15px 80px;
 text-align: left;
 font-weight: bold;
 font-size: 12px;
}
 
 
/* TEXTE PAGE DROITE */
 
 
.texte_page,.texte_page_noir {
 text-align: left;
}
 
/* ---------- */
 
.texte_page,.texte_page a {
 color: rgb(20,20,20);
 margin: 10px 30px;
 font-size: 14px;
}
 
.texte_page a {
 text-decoration: none;
 margin: 0;
}
 
.texte_page a:link,.texte_page a:visited {
 border: 1px rgb(200,200,200) solid;
}
 
.texte_page a:hover {
 background-color: Gainsboro; /* cf. table des couleurs CSS */
 color: rgb(39,60,82);
 border-color: black;
}
 
/* ---------- */
 
.texte_page_noir,.texte_page_noir a {
 color: rgb(120,120,120);
 padding: 20px 15%;
 font-size: 12px;
}
 
.texte_page_noir a {
 text-decoration: underline;
 padding: 0;
}
 
 
/*
-------------
BLOCS ANNEXES
-------------
*/
 
 
#menu_admin_header {
 background: rgb(190,190,190);
 border: 1px black solid;
 border-left: none;
 font-weight: bold;
 font-size: 16px;
 text-indent: 30px;
 text-align: left;
 margin: 10px 0;
}
 
#astl_logo {
 background: rgb(190,190,190);
 border: 1px black solid;
 border-left: none;
 padding: 15px 0;
 margin: 10px 0;
}
 
 
/*
------------------------
PRECHARGEMENT DES IMAGES
------------------------
*/
 
 
#cache {
 position: absolute;
 top: -5000px;
}


 
Hop une de mes feuilles CSS.
Tu remarqueras que pour optimiser le code, je me serts des définitions de propriétés multiples, ce qui est largement mieux que les css générées par les éditeurs, avec 300 lignes de redondance

Reply

Marsh Posté le 13-10-2005 à 23:32:31    

ANViL a écrit :

Hop une de mes feuilles CSS.


alala, comme ca doit être long de faire un site, purée......... :pfff:  
et sinon t'aurais pas pu mettre un lien comme Martius?  :D


Message édité par kensei le 13-10-2005 à 23:33:19

---------------
OST Anime
Reply

Marsh Posté le 14-10-2005 à 00:06:35    

kensei a écrit :

merci Martius, c'est sympa d'avoir mis le lien de ton propre css  :) . Enfin je peux voir un vrai fichier. La ca va, 262 lignes, c'est pas si grand que ca finalement  :pt1cable: . Il sert seulement a la page d'accueil? parce que pour une page seulement, oui ca commence a faire bcp   :sweat:


L'adresse que j'ai donné est la feuille de style globale, sinon j'ai :
http://www.martiusweb.net/html/css/accueil.css pour la page d'accueil uniquement
http://www.martiusweb.net/html/css/article.css pour la section articles/réalisations
http://www.martiusweb.net/html/css/tutoriaux.css pour la section tutoriaux
http://www.martiusweb.net/html/css/dl.css pour la page des téléchargements
 
entre article.css et tutoriaux.css on retrouve la même chose pour les menus, ça diffère dans la mise en forme de certaines balises comme <p>, <pre> ou <code>...


---------------
Martin
Reply

Marsh Posté le 14-10-2005 à 01:02:52    

200 lignes pour ma part.
 
mais c est un fichier simple.
ca grossit très vites ces petites betes la :D

Reply

Marsh Posté le 14-10-2005 à 02:03:40    

dans des gros projets ou le graphiste s'est laché un peu dans chacun des pages tu atteints de longues très longues CSS, d'ou l'interet de toujours bocou commenter  
 

Code :
  1. /**************************************************
  2. * Dimensions du Site
  3. *      Height Width   Padding Margin
  4. * Cadre Global 100%  880px    x   x (Skyscrapper compris)
  5. *  Bandeau   135px  760px    x   x
  6. *  Partiegauche  x  150px    x   x
  7. *  Centre    x  490px   15px 5px  x (Cadre Global - skyscrapper - PartieGauche - Partiedroite - 30px padding centre)
  8.        (dont 30px padding)  
  9. *  PartieDroite  x  135px    x   x
  10. * Pied de Page 20px  760px    x   x
  11. * Skyscrapper   x  120px;   x   x
  12. *
  13. * /!\ Quand vous modifiez une largeur bien v�rifier que  en largeur:  
  14. *  PartieGauche + Centre + PartieDroite = Bandeau
  15. *  PartieGauche + Centre + PartieDroite + Skyscrapper = Cadre Global
  16. *
  17. * Si ce n'est pas le cas il faut modifier la largeur de la partie centrale.
  18. ***************************************************/
  19. /************************************************
  20. * Styles G�n�riques
  21. *************************************************/
  22. body, html{
  23. margin:0;
  24. padding:0;
  25. text-align: center;
  26. }
  27. * {/*Tous les �l�ments*/
  28. font-family: Verdana, Arial, Helvetica, sans-serif;
  29. font-size : 8pt;
  30. }
  31. A {
  32. text-decoration: none;
  33. }
  34. A:hover {
  35. text-decoration: underline;
  36. }
  37. P {
  38. margin: 5px 0px;
  39. }
  40. form.noform{
  41. display: none;
  42. }
  43. /*Lien*/
  44. a{ color:#8D051D;}
  45. /*Titres*/
  46. h1{
  47. background : url("../Images/FauteuilRougeBlancDroite.gif" ) no-repeat left bottom;
  48. font-size: 12pt;
  49. font-weight:bold;
  50. color:#8D051D;
  51. border-bottom: #8d051d 1px solid;
  52. text-align: left;
  53. padding: 2px 0px 3px 20px;
  54. }
  55. h1.type2{
  56. background : none;
  57. font-size: 13pt;
  58. font-weight:bold;
  59. color: GrayText;
  60. text-align: left;
  61. padding: 2px;
  62. border:none;
  63. }
  64. h2{
  65. font: bold 10pt;
  66. color: #8d051d;
  67. border-bottom: #8d051d 1px solid;
  68. text-align: left;
  69. padding: 2px 0px 3px 0px;
  70. margin-bottom:5px;
  71. }
  72. h3
  73. {
  74.     font-size: 10pt;
  75.     margin-bottom: 5px;
  76.     border-bottom: silver 2px dotted
  77. }
  78. h4{
  79. color:#8D051D;
  80. font-weight: bold;
  81. margin-bottom:4px;
  82. }
  83. /*Liste � puces*/
  84. UL{ list-style: none; margin-left:15px;}
  85. UL LI{
  86. background: url("../Images/PuceJaune.gif" ) no-repeat 0px 5px;
  87. margin-left:0px;
  88. padding-left:15px;
  89. }
  90. TABLE { border-collapse: collapse; border-spacing: 0px;}
  91. INPUT, TEXTAREA{
  92. border:1px solid #8D051D;
  93. margin-top: 2px;
  94. }
  95. FORM SELECT {
  96. margin-top: 3px;
  97. }
  98. INPUT {
  99. clear:right;
  100. vertical-align: middle;
  101. }
  102. INPUT.radio {
  103. border:none;
  104. }
  105. INPUT.checkbox {
  106. border:none;
  107. }
  108. FORM LABEL{
  109. clear:left;
  110. float:left;
  111. width:120px;
  112. font-weight: bold;
  113. color: #8D051D;
  114. }
  115. FORM{ text-align:left; padding:0; margin:0;}
  116. TD.Cadenas {
  117. background: url("../Images/Pictos/Cadenas.gif" ) no-repeat right center;
  118. min-height: 17px;
  119. _height: 17px;
  120. width:180px;
  121. }
  122. DIV.Cadenas {
  123. margin-right: 20px;
  124. }
  125. /************************************************
  126. * Squelette
  127. *************************************************/
  128. #CSSCadreGlobal {
  129. height:auto;
  130. width:760px;
  131. min-width:760px;
  132. margin: auto;
  133. padding: 0;
  134. margin-bottom:5px;
  135. }
  136. #Bandeau {
  137. height: 150px;
  138. margin: 0;
  139. padding: 0;
  140.    background: url("../Images/Bandeau.jpg" ) no-repeat left top;
  141. position : relative;
  142. }
  143. #PartieGauche {
  144. margin: 0;
  145. padding: 0;
  146. vertical-align: top;
  147. padding-bottom:10px;/*S�paration minimum entre le menu et le pied de page, ne marche que pour IE, pour FF cf #Menu*/
  148. /*margin-bottom:10px; /*S�paration minimum entre le menu et le pied de page, ne marche que pour FF, pour IE cf #partiegauche*/
  149. background-color: #8D051D;
  150. }
  151. #PartieGauche DIV.Squelette{
  152. width:135px;
  153. }
  154. #Centre {
  155. padding: 10px 5px;
  156. margin: 0;
  157. vertical-align: top;
  158. }
  159. #Centre DIV.Squelette{ width:480px;}
  160. #PartieDroite {
  161. vertical-align: top;
  162. background-color: #8D051D;
  163. }
  164. #PartieDroite DIV.Squelette{ width:135px;}
  165. #Skyscraper  {
  166. text-align: center;
  167. width:500px;
  168. }
  169. /****************************
  170. * Corps Global  
  171. ****************************/
  172. /**************************
  173. * Menu de gauche
  174. ***************************/
  175. .MenuPrinc, .MenuPrinc *   {
  176. margin:0;
  177. padding:0;
  178. background:none;
  179. }
  180. .MenuPrinc LI SPAN, .GrandTitreMenu{
  181. display: block;
  182. text-decoration: none;
  183.    color: #ffffff;
  184. font-weight: bold;
  185. font-size: 10pt;
  186. /*min-height: 25px;
  187. _height: 25px;*/
  188. text-align: center;
  189. padding: 3px 2px;
  190. background-color: #8D051D;
  191. list-style: none;
  192. }
  193. .MenuPrinc LI UL LI{
  194.  list-style: none;
  195.  background: #fbb635;
  196. }
  197. .MenuPrinc LI UL LI A{
  198. display: block;
  199. text-align: left;
  200. font-size: 10px;
  201. color:Black;
  202. padding:1px 0px 1px 10px;
  203. background: #fbb635 url("../Images/puce_triangle.gif" ) no-repeat;
  204. background-position: 1px 2px;
  205. min-height: 15px;
  206. _height: 15px;
  207. }
  208. .MenuPrinc LI UL LI  UL LI{
  209.   background: #FEE4B4;
  210. }
  211. .MenuPrinc LI UL LI UL LI A  {
  212. padding:1px 0px 1px 10px;
  213. background: #FEE4B4 url("../Images/puce_carre.gif" ) no-repeat;
  214. background-position: 1px 2px;
  215. min-height: 15px;
  216. _height: 15px;
  217. }
  218. .MenuPrinc LI UL LI A.menuDev, .MenuPrinc LI UL LI A.menuDevOut {
  219. font-weight: bold;
  220. background: #fbb635 url("../Images/flechemenubas.gif" ) no-repeat right 4px;
  221. }
  222. .MenuPrinc LI UL LI A.menuDevOut {
  223. background-image: url("../Images/flechemenuhaut.gif" );
  224. }
  225. /******************************
  226. * Bandeau : �l�ments int�rieurs
  227. ******************************/
  228. #Bandeau #BandeInfos {
  229. background-color: #FEE4B4;
  230. width: 680px;
  231. height: 34px;
  232. border:none;
  233. margin-left:4px;
  234. margin-bottom:0px;
  235. vertical-align: middle;
  236. }
  237. /*Titre Actualit�, d�cor� de 2 ziguiguis*/
  238. #Bandeau #BandeInfos TD.Titre {
  239. background: url("../Images/BandeInfosImageGauche.gif" ) no-repeat 4px center;
  240. width:110px;
  241. }
  242. #Bandeau #BandeInfos TD.Titre SPAN{
  243. padding-left:12px;
  244. padding-right:10px;
  245. color:#8D051D;
  246. font-size:12pt;
  247. font-weight: bold;
  248. text-align:center;
  249. background: url("../Images/BandeInfosImageDroite.gif" ) no-repeat right center;
  250. }
  251. /*texte de la bande d'information*/
  252. #Bandeau #BandeInfos TD.message{
  253. text-align:center;
  254. vertical-align: middle;
  255. font-size:10px;
  256. }
  257. /*Haut du Bandeau*/
  258. #Bandeau DIV {
  259. height: 107px;
  260. position:relative;
  261. }
  262. /* LogoCliquable dans le Bandeau*/
  263. #Bandeau #LogoCliquable{
  264. display: block;
  265. position:relative;
  266. left: 6px;
  267. top: 1px;
  268. _top: 8px;
  269. width: 144px;
  270. height: 82px;
  271. text-decoration: none;
  272. }
  273. #Bandeau #LogoCliquable A{
  274. position:absolute;
  275. display: block;
  276. text-decoration:none;
  277. text-indent:-5000;
  278. }
  279. #Bandeau #LogoCliquable A.LogoLaMondiale {
  280. width: 55px;
  281. height: 32px;
  282. left: 10px;
  283. }
  284. #Bandeau #LogoCliquable A.LogoAG2R {
  285. width: 50px;
  286. height: 32px;
  287. left: 82px;
  288. }
  289. #Bandeau #LogoCliquable A.LogoSocialClub {
  290. width: 130px;
  291. height: 40px;
  292. left: 8px;
  293. top:36px
  294. }
  295. #Bandeau P.Message{
  296. position:absolute;
  297. display:block;
  298. color:white;
  299. text-align:center;
  300. top: 26px;
  301. left: 170px;
  302. width: 520px;
  303. font-weight: bold;
  304. font-size:11pt;
  305. }
  306. /******************************
  307. * Pied de Page
  308. *******************************/
  309. #PiedDePage1 {
  310. text-align:center;
  311. vertical-align: middle;
  312. background-color:  #FBB635;
  313. }
  314. #PiedDePage1 TD {
  315. padding: 4px 0;
  316. }
  317. #PiedDePage1 A {
  318. border-right: #ffffff 1px solid;
  319. padding-right: 5px;
  320. font-weight: bold;
  321. font-size: 8pt;
  322. vertical-align: middle;
  323. color: #fff;
  324. letter-spacing: -1px;
  325. }
  326. #PiedDePage1 A.Dernier{
  327. border:none;
  328. }
  329. #PiedDePage2 {
  330. background-color: #FBB635;
  331. padding: 2px 20px;
  332. text-align:center;
  333. background-color: White;
  334. COLOR: #888888;
  335. font-size: 11px;
  336. FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif;
  337. }
  338. #PiedDePage2 A {
  339. font-weight: normal;
  340. COLOR: #888888;
  341. font-size: 11px;
  342. FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif;
  343. }
  344. /******************************
  345. * Partie Droite
  346. *******************************/
  347. A.lienSocialeAttitude {
  348. FONT-WEIGHT: bold;
  349. FONT-SIZE: 16px;
  350. COLOR: #8d051d;
  351. FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif;
  352. TEXT-DECORATION: underline;
  353. display: block;
  354. background-color: #FBB635;
  355. margin-top: 5px;
  356. padding: 5px;
  357. }
  358. A.lienSocialeAttitude:hover {
  359. TEXT-DECORATION: none
  360. }
  361. /*Identification*/
  362. #CSSAccesMembres{  margin-left:auto; margin-right:0px;}
  363. /*Formulaire de connexion*/
  364. #CartoucheConnexion {
  365. background-color: #FBB635;
  366. color: #8D051D;
  367. margin: 0;
  368. padding: 5px;
  369. }
  370. #CartoucheConnexion FORM {
  371. margin: 0;
  372. text-align: center;
  373. }
  374. #CartoucheConnexion FORM LABEL {
  375. font-weight: bold;
  376. font-family: Arial, Helvetica, sans-serif;
  377. font-size: 9pt;
  378. }
  379. #CartoucheConnexion FORM INPUT {
  380. border: 1px solid #8D051D;
  381. width: 100px;
  382. margin: 0;
  383. }
  384. #CartoucheConnexion IMG {
  385. border: none;
  386. }
  387. #CartoucheConnexion A   {
  388. font-size: 7pt;
  389. font-weight:bold;
  390. text-decoration: underline;
  391. }
  392. #PartieDroite FORM {
  393. margin: 0;
  394. }
  395. /****************************
  396. * Bloc Membre Connect�
  397. ****************************/
  398. DIV#CSSAccesMembresConnecte {
  399. border-left:1px solid #8D051D;
  400. border-right:1px solid #8D051D;
  401. margin-left:auto;
  402. margin-right:0px;
  403. }
  404. DIV#CSSAccesMembresConnecte * {
  405. font-size:10px;
  406. font-family: Verdana, Arial, Helvetica, sans-serif;
  407. }
  408. /*Titre*/
  409. DIV#CSSAccesMembresConnecte H1 { 
  410. background:none;
  411. background-color: #8D051D;
  412. margin:0px;
  413. color: white;
  414. padding:2px 0px 2px 2px;
  415. }
  416. /*Liens*/
  417. DIV#CSSAccesMembresConnecte A {
  418. display: block;
  419. border-bottom:1px solid #8D051D;
  420. background-color: White;
  421. padding:2px;
  422. color: #8D051D;
  423. text-decoration: none;
  424. }
  425. DIV#CSSAccesMembresConnecte A:hover {
  426. text-decoration: underline;
  427. }
  428. DIV#CSSAccesMembresConnecte A.Deco {
  429. font-weight: bold;
  430. text-decoration: underline;
  431. } /*Lien D�connexion*/
  432. /******************************
  433. * Styles Sp�ciaux
  434. ********************************/
  435. /*boutons*/
  436. /*Styles G�n�riques*/
  437. .bouton1, .bouton2{
  438. padding:1px 2px 0px 18px;
  439. font-weight: bold;
  440. border:1px solid #8D051D;
  441. text-decoration: none;
  442. line-height: 25px;
  443. }
  444. .bouton1{/*Bouton fond rouge*/
  445. background: #8D051D url("../Images/FauteuilMiniBRGauche.gif" ) no-repeat left bottom;
  446. color:white;
  447. }
  448. .bouton2{/*Bouton Fond blanc cadre rouge*/
  449. background: #FFF url("../Images/FauteuilMiniRBGauche.gif" ) no-repeat left bottom;
  450. color:#8D051D;
  451. }
  452. .CadreCadenas, .CadreCadenas2{ background : url("../Images/Pictocadenas.gif" ) no-repeat right top; padding:2px 20px 2px 2px;}
  453. .CadreCadenas, .Cadre1{/*Cadre fond rouge avec Cadenas HautDroite*/
  454. color: white; background-color: #8D051D;
  455. }
  456. .CadreCadenas2, .Cadre2{
  457. background-color: transparent;
  458. color: #8D051D;
  459. border:1px solid #8D051D;
  460. }
  461. /*Cadres sans Cadenas*/
  462. .Cadre1, Cadre2{ padding:2px; }
  463. /*Tableau de type 1*/
  464. table.tableau1 {width:100%}
  465. table.tableau1 TH  { background-color : #8D051D; color:white; text-decoration: none; padding:2px; text-align:center;}
  466. table.tableau1 th a{ color:white; text-decoration: underline;}
  467. table.tableau1 TD {border:1px solid #8D051D; background-color : #FEE4B4; padding:1px 5px;}
  468. .croissant A, .decroissant A { padding-left:20px; background-repeat: no-repeat; background-position: 2px center; }
  469. .croissant A {background-image: url(../Images/triangleCroissant.gif);}
  470. .decroissant A{background-image: url(../Images/triangleDecroissant.gif);}
  471. /*Centrer Tous les �l�ments d'un tableau, en hauteur et en largeur*/
  472. .centreV, table.centreV td {vertical-align: middle;}
  473. .centreH, table.centreH TD {text-align: center;}
  474. /*.centreV, .centreH, */
  475. .ActionsTelechargement{ margin-left:15px;}
  476. .ActionsTelechargement IMG,.ActionsTelechargement A  { vertical-align: middle;}
  477. .ActionsTelechargement IMG { margin-right:15px;}
  478. /*Annonces - Appels d'offres*/
  479. .DescAnnonce {
  480. border-right:1px solid #8D051D;
  481. color: #8D051D;
  482. font-weight:bold;
  483. display:block;
  484. padding-right:5px;
  485. padding-bottom:10px;
  486. text-align:right;
  487. width:170px;
  488. height: 100%;
  489. border-collapse: collapse;
  490. vertical-align: top;
  491. }
  492. .LibAnnonce{
  493. border-collapse: collapse;
  494. padding-left:10px;
  495. padding-bottom:10px;
  496. }
  497. .LibAnnonce UL {
  498. margin-left:0px;
  499. padding-left:0px;
  500. }
  501. .LibAnnonce UL LI{
  502. padding-left:25px;
  503. background-position: 8px 5px;
  504. }
  505. .LibAnnonce UL LI.Alerte{
  506. background-position: left top;
  507. _height:24px;/*Pour IE*/
  508. min-height:24px;/*pour les navigateurs respectueux des standards*/
  509. line-height: 110%;
  510. vertical-align: middle;
  511. }
  512. .Alerte{
  513. text-align:left;
  514. padding-left:25px;
  515. background:url(../Images/Pictos/Alerte.jpg) no-repeat left top;
  516. }
  517. H4.Alerte{
  518. line-height:26px;
  519. height:26px;
  520. vertical-align:middle;
  521. padding-right:20px;
  522. }
  523. /*Style pour une ligne pour afficher un partenaire*/
  524. .lignepartenaire{margin-bottom:10px; border-bottom:1px solid #8D051D;}
  525. .lignepartenaire TD { padding-bottom:10px;}
  526. .lignepartenaire TD.NomPrenomPart { width:130px;}
  527. .lignepartenaire TD.boutons {  text-align:right;
  528. width:130px;}
  529. .lignepartenaire TD.boutons A.bouton2{
  530. display: block;
  531. height: 18px;
  532. line-height: normal;
  533. text-align:left;
  534. }
  535. .Pagination{ text-align:center;margin-top:5px;}
  536. .Pagination span { color : black}
  537. .Pagination p {margin-top:2px; }
  538. .Pagination p b {}
  539. /*Marges Horizontales pour un objet*/
  540. .MargesH1{ margin-top:10px; margin-bottom:10px;}
  541. /*Styles pour polices*/
  542. .gras{ font-weight:bold;}
  543. .italic{ font-style: italic;}
  544. .normal{ font-weight:normal;}
  545. .nonsouligne{ text-decoration: none;}
  546. .souligne{ text-decoration: underline;}
  547. /*************************************
  548. * Squelette Admin
  549. *************************************/
  550. #CSSCadreGlobalAdmin     {
  551. height:auto;
  552. width:760px;
  553. margin: 0;
  554. padding: 0;
  555. margin-bottom:5px;
  556. /*border-collapse: collapse;*/
  557. }
  558. #CSSCadreGlobalAdmin #Bandeau  {
  559. height: 150px;
  560. width:auto;
  561. margin: 0;
  562. padding: 0;
  563.    background: url("../Images/Bandeau.jpg" ) no-repeat left top;
  564. position:relative;
  565. }
  566. #CSSCadreGlobalAdmin #PartieGauche {
  567. width:135px;
  568. margin: 0;
  569. padding: 0;
  570. vertical-align: top;
  571. _padding-bottom:10px;/*S�paration minimum entre le menu et le pied de page, ne marche que pour IE, pour FF cf #Menu*/
  572. margin-bottom:10px; /*S�paration minimum entre le menu et le pied de page, ne marche que pour FF, pour IE cf #partiegauche*/
  573. background-color: #8D051D;
  574. min-height: 100%;
  575. _height: 100%;
  576. }
  577. #CSSCadreGlobalAdmin #Centre   {
  578. height:auto;
  579. width:625px;
  580. padding: 15px 15px;
  581. margin: 0;
  582. vertical-align: top;
  583. }
  584. /*********************************************************************************************************************************************
  585. * Les lignes qui suivent correspondent aux param�tres CSS par d�faut.
  586. * Ces param�tres seront actifs seulement si les �l�ment utilis�s se trouve dans un bloc
  587. * d�fini par class="NoStyle"
  588. *********************************************************************************************************************************************/
  589. .NoStyle * {
  590. color: WindowText;
  591. border: none;
  592. background: transparent none repeat scroll left top;
  593. margin:0;
  594. padding:0;
  595. font: normal normal normal medium/normal Arial, Helvetica, sans-serif;
  596. }
  597. .NoStyle div, map, dt, isindex {
  598.   display: block;
  599. }
  600. .NoStyle h1 {
  601. display: block;
  602. font-size: 2em;
  603. font-weight: bold;
  604. margin: .67em 0;
  605. }
  606. .NoStyle h2 {
  607.   display: block;
  608.   font-size: 1.5em;
  609.   font-weight: bold;
  610.   margin: .83em 0;
  611. }
  612. .NoStyle h3 {
  613.   display: block;
  614.   font-size: 1.17em;
  615.   font-weight: bold;
  616.   margin: 1em 0;
  617. }
  618. .NoStyle h4 {
  619.   display: block;
  620.   font-weight: bold;
  621.   margin: 1.33em 0;
  622. }
  623. .NoStyle h5 {
  624.   display: block;
  625.   font-size: 0.83em;
  626.   font-weight: bold;
  627.   margin: 1.67em 0;
  628. }
  629. .NoStyle h6 {
  630.   display: block;
  631.   font-size: 0.67em;
  632.   font-weight: bold;
  633.   margin: 2.33em 0;
  634. }
  635. .NoStyle UL{
  636.   display: block;
  637.   list-style-type: disc;
  638.   margin: 1em 0;
  639. }
  640. .NoStyle ol {
  641.   display: block;
  642.   list-style-type: decimal;
  643.   margin: 1em 0;
  644.   }
  645. .NoStyle li {
  646.   display: list-item;
  647. }
  648. .NoStyle table {
  649.   display: table;
  650.   border-spacing: 2px;
  651.   border-collapse: separate;
  652.   margin-top: 0;
  653.   margin-bottom: 0;
  654.   text-indent: 0;
  655. }
  656. .NoStyle tr {
  657.   display: table-row;
  658.   vertical-align: inherit;
  659. }
  660. .NoStyle tbody {
  661.   display: table-row-group;
  662.   vertical-align: middle;
  663. }
  664. /* for XHTML tables without tbody */
  665. .NoStyle table > tr {
  666.   vertical-align: middle;
  667. }
  668. .NoStyle td {
  669.   display: table-cell;
  670.   vertical-align: inherit;
  671.   text-align: inherit;
  672.   padding: 1px;
  673. }
  674. .NoStyle dd {
  675.   display: block;
  676. }
  677. .NoStyle p, dl, multicol {
  678.   display: block;
  679.   margin: 1em 0;
  680. }
  681. .NoStyle blockquote {
  682.   display: block;
  683.   margin: 1em 40px;
  684. }
  685. .NoStyle address {
  686.   display: block;
  687.   font-style: italic;
  688. }
  689. .NoStyle u, .NoStyle ins {
  690.   text-decoration: underline;
  691. }
  692. /* nested lists have no top/bottom margins */
  693. .NoStyle ul ul, .NoStyle  ul ol, .NoStyle  ul dir, .NoStyle  ul menu, .NoStyle  ul dl,
  694. .NoStyle ol ul, .NoStyle  ol ol, .NoStyle  ol dir, .NoStyle  ol menu, .NoStyle  ol dl,
  695. .NoStyle dir ul, .NoStyle dir ol, .NoStyle dir dir, .NoStyle dir menu, .NoStyle dir dl,
  696. .NoStyle menu ul, .NoStylemenu ol, .NoStylemenu dir, .NoStylemenu menu, .NoStylemenu dl,
  697. .NoStyle dl ul, .NoStyle  dl ol, .NoStyle  dl dir, .NoStyle  dl menu, .NoStyle  dl dl {
  698.   margin-top: 0;
  699.   margin-bottom: 0;
  700. }
  701. /* 2 deep unordered lists use a circle */
  702. .NoStyle ol ul, .NoStyle  ul ul, .NoStyle  menu ul, .NoStyle  dir ul,
  703. .NoStyle ol menu, .NoStyleul menu, .NoStylemenu menu, .NoStyledir menu,
  704. .NoStyle ol dir, .NoStyle ul dir, .NoStyle menu dir, .NoStyle dir dir {
  705.   list-style-type: circle;
  706. }
  707. /* 3 deep (or more) unordered lists use a square */
  708. .NoStyle ol ol ul, .NoStyle    ol ul ul, .NoStyle    ol menu ul, .NoStyle    ol dir ul,
  709. .NoStyle ol ol menu, .NoStyle  ol ul menu, .NoStyle  ol menu menu, .NoStyle  ol dir menu,
  710. .NoStyle ol ol dir, .NoStyle   ol ul dir, .NoStyle   ol menu dir, .NoStyle   ol dir dir,
  711. .NoStyle ul ol ul, .NoStyle    ul ul ul, .NoStyle    ul menu ul, .NoStyle    ul dir ul,
  712. .NoStyle ul ol menu, .NoStyle  ul ul menu, .NoStyle  ul menu menu, .NoStyle  ul dir menu,
  713. .NoStyle ul ol dir, .NoStyle   ul ul dir, .NoStyle   ul menu dir, .NoStyle   ul dir dir,
  714. .NoStyle menu ol ul, .NoStyle  menu ul ul, .NoStyle  menu menu ul, .NoStyle  menu dir ul,
  715. .NoStyle menu ol menu, .NoStylemenu ul menu, .NoStylemenu menu menu, .NoStyle menu dir menu,
  716. .NoStyle menu ol dir, .NoStyle menu ul dir, .NoStyle menu menu dir, .NoStyle menu dir dir,
  717. .NoStyle dir ol ul, .NoStyle   dir ul ul, .NoStyle   dir menu ul, .NoStyle   dir dir ul,
  718. .NoStyle dir ol menu, .NoStyle dir ul menu, .NoStyle dir menu menu, .NoStyle dir dir menu,
  719. .NoStyle dir ol dir, .NoStyle  dir ul dir, .NoStyle  dir menu dir, .NoStyle  dir dir dir {
  720.   list-style-type: square;
  721. }
  722. .NoStyle hr {
  723.   display: block;
  724.   height: 2px;
  725.   border: 1px;
  726.   margin: 0.5em auto 0.5em auto;
  727. }
  728. .NoStyle b, .NoStyle strong {
  729.   font-weight: bolder;
  730. }
  731. .NoStyle i, .NoStyle cite, .NoStyle em{
  732.   font-style: italic;
  733. }
  734. .NoStyle u, .NoStyle ins {
  735.   text-decoration: underline;
  736. }
  737. .NoStyle s, .NoStyle strike, .NoStyle del {
  738.   text-decoration: line-through;
  739. }
  740. .NoStyle blink {
  741.   text-decoration: blink;
  742. }
  743. .NoStyle big {
  744.   font-size: larger;
  745. }
  746. .NoStyle small {
  747.   font-size: smaller;
  748. }
  749. .NoStyle sub {
  750.   vertical-align: sub;
  751.   font-size: smaller;
  752.   line-height: normal;
  753. }
  754. .NoStyle sup {
  755.   vertical-align: super;
  756.   font-size: smaller;
  757.   line-height: normal;
  758. }
  759. .NoStyle nobr {
  760.   white-space: nowrap;
  761. }


PS: la classe NoStyle, me permet de définir des boites de tests sans style. C'est un bordel un peu particulier (dont client chiant)


Message édité par gatsusat le 14-10-2005 à 02:04:04

---------------
Les CSS c'est bon mangez-en
Reply

Marsh Posté le 14-10-2005 à 02:03:40   

Reply

Marsh Posté le 14-10-2005 à 08:33:28    

'Tain je savais pas a quel point. Faut vraiment être généreux pour passer autant de temps pour son site et les visiteurs, le tout presque bénévolement..... :ouch:  
Moi pour le moment, j'ai en tête que si le site ne me rapporte pas un minimum,je laisse tomber ou fais un autre site qui, je l'espère, marchera mieux. Mais bon avec de l'expérience, je réviserai ptêt mon point de vue   :sarcastic:


Message édité par kensei le 14-10-2005 à 08:33:44

---------------
OST Anime
Reply

Marsh Posté le 14-10-2005 à 11:25:14    

ben c'est la CSS d'un site pro.
 
c'est evident que faire un site pour le benevolat et setuer à la tache pour les autres c'est pas sympathique pour soit


---------------
Les CSS c'est bon mangez-en
Reply

Marsh Posté le 14-10-2005 à 18:50:11    

pourquoi 902 lignes  :lol:

Reply

Marsh Posté le 14-10-2005 à 22:03:09    

ya 680 lignes utiles, même si ya eu certaines personnes a passer sur la feuille de style, elle pourrait être optimisée je te l'accorde. Mais quand tu sais que tu n'as pas que ça à faire, tu ne le fais pas malheureusement.
 
et puis 900 lignes c'est raisonnable pour une CSS je trouve :D


---------------
Les CSS c'est bon mangez-en
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed