Votre question

Aide débutant CSS

Tags :
  • CSS
  • Programmation
Dernière réponse : dans Programmation
12 Mars 2007 18:33:02


voila j'ai dll sur un site une feuille CSS.

Mon but etant de faire un site ressemblant à ça.

J'ai un hebergeur et tout ce qu'il faut

Le probleme c'est que je me retrouve avec un fichier style.css

Je l'ai up sur mon ftp et j'ai aussi up un fichier index.htm avec le code suivant :

<head><style type="text/css" media="screen">@import "style.css";</style></head>

Le probleme c'est que je tombe sur une page blanche :


Autres pages sur : aide debutant css

12 Mars 2007 19:10:25

<link href="style.css" rel="stylesheet" type="text/css" />
12 Mars 2007 19:20:17

J'ai toujours une page blanche
Contenus similaires
12 Mars 2007 19:21:49

Bah par défaut une page internet est blanche montre moi ton index.html et ton style.css
12 Mars 2007 19:33:58

  1. /* css Zen Garden default style v1.01 */
  2. /* css released under Creative Commons License - <a href="http://creativecommons.org/licenses/by-nc-sa/1.0/" rel="nofollow" target="_blank">http://creativecommons.org/licenses/by-nc-sa/1.0/</a> */
  5. /* This file based on 'Tranquille' by Dave Shea */
  6. /* You may use this file as a foundation for any new work, but you may find it easier to start from scratch. */
  7. /* Not all elements are defined in this file, so you'll most likely want to refer to the xhtml as well. */
  9. /* Images should be linked as if the CSS file sits in the same folder as the images. ie. no paths. */
  12. /* basic elements */
  13. body {
  14. font: 8pt/16pt georgia;
  15. color: #555753;
  16. background: #fff url(blossoms.jpg) no-repeat bottom right;
  17. margin: 0px;
  18. }
  19. p {
  20. font: 8pt/16pt georgia;
  21. margin-top: 0px;
  22. text-align: justify;
  23. }
  24. h3 {
  25. font: italic normal 12pt georgia;
  26. letter-spacing: 1px;
  27. margin-bottom: 0px;
  28. color: #7D775C;
  29. }
  30. a:link {
  31. font-weight: bold;
  32. text-decoration: none;
  33. color: #B7A5DF;
  34. }
  35. a:visited {
  36. font-weight: bold;
  37. text-decoration: none;
  38. color: #D4CDDC;
  39. }
  40. a:hover, a:active {
  41. text-decoration: underline;
  42. color: #9685BA;
  43. }
  46. /* specific divs */
  47. #container {
  48. background: url(zen-bg.jpg) no-repeat top left;
  49. padding: 0px 175px 0px 110px;
  50. margin: 0px;
  51. }
  53. #intro {
  54. min-width: 470px;
  55. }
  56. #pageHeader {
  57. margin-bottom: 20px;
  58. }
  60. /* using an image to replace text in an h1. This trick courtesy Douglas Bowman, <a href="http://www.stopdesign.com/articles/css/replace-text/" rel="nofollow" target="_blank">http://www.stopdesign.com/articles/css/replace-text/</a> */
  61. #pageHeader h1 {
  62. background: transparent url(h1.gif) no-repeat top left;
  63. margin-top: 10px;
  64. width: 219px;
  65. height: 87px;
  66. float: left;
  67. }
  68. #pageHeader h1 span {
  69. display:none
  70. }
  71. #pageHeader h2 {
  72. background: transparent url(h2.gif) no-repeat top left;
  73. margin-top: 58px;
  74. margin-bottom: 40px;
  75. width: 200px;
  76. height: 18px;
  77. float: right;
  78. }
  79. #pageHeader h2 span {
  80. display:none;
  81. }
  83. #quickSummary {
  84. clear:both;
  85. margin: 20px 20px 20px 10px;
  86. width: 160px;
  87. float: left;
  88. }
  89. #quickSummary p {
  90. font: italic 10pt/22pt georgia;
  91. text-align:center;
  92. }
  94. #preamble {
  95. clear: right;
  96. padding: 0px 10px 0px 10px;
  97. }
  98. #supportingText {
  99. padding-left: 10px;
  100. margin-bottom: 40px;
  101. }
  103. #footer {
  104. text-align: center;
  105. }
  106. #footer a:link, #footer a:visited {
  107. margin-right: 20px;
  108. }
  110. #linkList {
  111. margin-left: 600px;
  112. position: absolute;
  113. top: 0px;
  114. right: 0px;
  115. }
  116. #linkList2 {
  117. font: 10px verdana, sans-serif;
  118. background: transparent url(paper-bg.jpg) top left repeat-y;
  119. padding: 10px;
  120. margin-top: 150px;
  121. width: 130px;
  122. }
  123. #linkList h3.select {
  124. background: transparent url(h3.gif) no-repeat top left;
  125. margin: 10px 0px 5px 0px;
  126. width: 97px;
  127. height: 16px;
  128. }
  129. #linkList h3.select span {
  130. display:none
  131. }
  132. #linkList h3.favorites {
  133. background: transparent url(h4.gif) no-repeat top left;
  134. margin: 25px 0px 5px 0px;
  135. width: 60px;
  136. height: 18px;
  137. }
  138. #linkList h3.favorites span {
  139. display:none
  140. }
  141. #linkList h3.archives {
  142. background: transparent url(h5.gif) no-repeat top left;
  143. margin: 25px 0px 5px 0px;
  144. width:57px;
  145. height: 14px;
  146. }
  147. #linkList h3.archives span {
  148. display:none
  149. }
  150. #linkList h3.resources {
  151. background: transparent url(h6.gif) no-repeat top left;
  152. margin: 25px 0px 5px 0px;
  153. width:63px;
  154. height: 10px;
  155. }
  156. #linkList h3.resources span {
  157. display:none
  158. }
  161. #linkList ul {
  162. margin: 0px;
  163. padding: 0px;
  164. }
  165. #linkList li {
  166. line-height: 2.5ex;
  167. list-style-type: none;
  168. background: transparent url(cr1.gif) no-repeat top center;
  169. display: block;
  170. padding-top: 5px;
  171. margin-bottom: 5px;
  172. }
  173. #linkList li a:link {
  174. color: #988F5E;
  175. }
  176. #linkList li a:visited {
  177. color: #B3AE94;
  178. }
  182. #extraDiv1 {
  183. background: transparent url(cr2.gif) top left no-repeat;
  184. position: absolute;
  185. top: 40px;
  186. right: 0px;
  187. width: 148px;
  188. height: 110px;
  189. }

Mon index.htm contient juste le code que tu m'as donné.

Quand j'ai dl le style.css je pensais que j'aurais juste a le mettre dans la racine de mon ftp et que j'aurais quelque chose pour le configurer aprés
12 Mars 2007 19:57:45

c normal une page css sans html ne marche pas
voici le html du site ex:


This xhtml document is marked up to provide the designer with the maximum possible flexibility.
There are more classes and extraneous tags than needed, and in a real world situation, it's more
likely that it would be much leaner.

However, I think we can all agree that even given that, we're still better off than if this had been
built with tables.


<body id="css-zen-garden">

<div id="container">
<div id="intro">
<div id="pageHeader">
<h1><span>css Zen Garden</span></h1>
<h2><span>The Beauty of <acronym title="Cascading Style Sheets">CSS</acronym> Design</span></h2>

<div id="quickSummary">
<p class="p1"><span>A demonstration of what can be accomplished visually through <acronym title="Cascading Style Sheets">CSS</acronym>-based design. Select any style sheet from the list to load it into this page.</span></p>
<p class="p2"><span>Download the sample <a href="/zengarden-sample.html" title="This page's source HTML code, not to be modified.">html file</a> and <a href="/zengarden-sample.css" title="This page's sample CSS, the file you may modify.">css file</a></span></p>

<div id="preamble">
<h3><span>The Road to Enlightenment</span></h3>
<p class="p1"><span>Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible <acronym title="Document Object Model">DOM</acronym>s, and broken <acronym title="Cascading Style Sheets">CSS</acronym> support.</span></p>
<p class="p2"><span>Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the <acronym title="World Wide Web Consortium">W3C</acronym>, <acronym title="Web Standards Project">WaSP</acronym> and the major browser creators.</span></p>
<p class="p3"><span>The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the (yet to be) time-honored techniques in new and invigorating fashion. Become one with the web.</span></p>

<div id="supportingText">
<div id="explanation">
<h3><span>So What is This About?</span></h3>
<p class="p1"><span>There is clearly a need for <acronym title="Cascading Style Sheets">CSS</acronym> to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The code remains the same, the only thing that has changed is the external .css file. Yes, really.</span></p>
<p class="p2"><span><acronym title="Cascading Style Sheets">CSS</acronym> allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. To date, most examples of neat tricks and hacks have been demonstrated by structurists and coders. Designers have yet to make their mark. This needs to change.</span></p>

<div id="participation">
<p class="p1"><span>Graphic artists only please. You are modifying this page, so strong <acronym title="Cascading Style Sheets">CSS</acronym> skills are necessary, but the example files are commented well enough that even <acronym title="Cascading Style Sheets">CSS</acronym> novices can use them as starting points. Please see the <a href="http://www.mezzoblue.com/zengarden/resources/" title="A listing of CSS-related resources"><acronym title="Cascading Style Sheets">CSS</acronym> Resource Guide</a> for advanced tutorials and tips on working with <acronym title="Cascading Style Sheets">CSS</acronym>.</span></p>
<p class="p2"><span>You may modify the style sheet in any way you wish, but not the <acronym title="HyperText Markup Language">HTML</acronym>. This may seem daunting at first if you’ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.</span></p>
<p class="p3"><span>Download the sample <a href="/zengarden-sample.html" title="This page's source HTML code, not to be modified.">html file</a> and <a href="/zengarden-sample.css" title="This page's sample CSS, the file you may modify.">css file</a> to work on a copy locally. Once you have completed your masterpiece (and please, don’t submit half-finished work) upload your .css file to a web server under your control. <a href="http://www.mezzoblue.com/zengarden/submit/" title="Use the contact form to send us your CSS file">Send us a link</a> to the file and if we choose to use it, we will spider the associated images. Final submissions will be placed on our server.</span></p>

<div id="benefits">
<p class="p1"><span>Why participate? For recognition, inspiration, and a resource we can all refer to when making the case for <acronym title="Cascading Style Sheets">CSS</acronym>-based design. This is sorely needed, even today. More and more major sites are taking the leap, but not enough have. One day this gallery will be a historical curiosity; that day is not today.</span></p>

<div id="requirements">
<p class="p1"><span>We would like to see as much <acronym title="Cascading Style Sheets, version 1">CSS1</acronym> as possible. <acronym title="Cascading Style Sheets, version 2">CSS2</acronym> should be limited to widely-supported elements only. The css Zen Garden is about functional, practical <acronym title="Cascading Style Sheets">CSS</acronym> and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real requirement we have is that your <acronym title="Cascading Style Sheets">CSS</acronym> validates.</span></p>
<p class="p2"><span>Unfortunately, designing this way highlights the flaws in the various implementations of <acronym title="Cascading Style Sheets">CSS</acronym>. Different browsers display differently, even completely valid <acronym title="Cascading Style Sheets">CSS</acronym> at times, and this becomes maddening when a fix for one leads to breakage in another. View the <a href="http://www.mezzoblue.com/zengarden/resources/" title="A listing of CSS-related resources">Resources</a> page for information on some of the fixes available. Full browser compliance is still sometimes a pipe dream, and we do not expect you to come up with pixel-perfect code across every platform. But do test in as many as you can. If your design doesn’t work in at least IE5+/Win and Mozilla (run by over 90% of the population), chances are we won’t accept it.</span></p>
<p class="p3"><span>We ask that you submit original artwork. Please respect copyright laws. Please keep objectionable material to a minimum; tasteful nudity is acceptable, outright pornography will be rejected.</span></p>
<p class="p4"><span>This is a learning exercise as well as a demonstration. You retain full copyright on your graphics (with limited exceptions, see <a href="http://www.mezzoblue.com/zengarden/submit/guidelines/">submission guidelines</a>), but we ask you release your <acronym title="Cascading Style Sheets">CSS</acronym> under a Creative Commons license identical to the <a href="http://creativecommons.org/licenses/by-nc-sa/1.0/" title="View the Zen Garden's license information.">one on this site</a> so that others may learn from your work.</span></p>
<p class="p5"><span>Bandwidth graciously donated by <a href="http://www.dreamfirestudios.com/">DreamFire Studios</a>. Now available: <a href="http://www.amazon.com/exec/obidos/ASIN/0321303474/mezzo...">Zen Garden, the book</a>.</span> </p>

<div id="footer">
<a href="http://validator.w3.org/check/referer" title="Check the validity of this site’s XHTML">xhtml</a>  
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="Check the validity of this site’s CSS">css</a>  
<a href="http://creativecommons.org/licenses/by-nc-sa/1.0/" title="View details of the license of this site, courtesy of Creative Commons.">cc</a>  
<a href="http://www.contentquality.com/mynewtester/cynthia.exe?U..." title="Check the accessibility of this site according to U.S. Section 508">508</a>  
<a href="http://mezzoblue.com/zengarden/faq/#aaa" title="Check the accessibility of this site according to Web Content Accessibility Guidelines 1.0">aaa</a>


<div id="linkList">
<div id="linkList2">
<div id="lselect">
<h3 class="select"><span>Select a Design:</span></h3>
<li><a href="" title="AccessKey: a" accesskey="a">Retro Theater</a> by <a href="http://space-sheeps.info/" class="c">Eric Rogé</a></li>
<li><a href="" title="AccessKey: b" accesskey="b">Lily Pond</a> by <a href="http://www.tulips4rose.com" class="c">Rose Thorogood</a></li>
<li><a href="" title="AccessKey: c" accesskey="c">Icicle Outback</a> by <a href="http://www.timovirtanen.com/" class="c">Timo Virtanen</a></li>
<li><a href="" title="AccessKey: d" accesskey="d">Zen Army</a> by <a href="http://www.niceguy.com/" class="c">Carl Desmond</a></li>
<li><a href="" title="AccessKey: e" accesskey="e">The Original</a> by <a href="http://www.bluejam.com/" class="c">Joachim Shotter</a></li>
<li><a href="" title="AccessKey: f" accesskey="f">Floral Touch</a> by <a href="http://www.jahmasta.com/" class="c">Jadas Jimmy</a></li>
<li><a href="" title="AccessKey: g" accesskey="g">Elegance in Simplicity</a> by <a href="http://www.manisheriar.com/blog/" class="c">Mani Sheriar</a></li>
<li><a href="" title="AccessKey: h" accesskey="h">Dazzling Beauty</a> by <a href="http://blog.denysri.com/" class="c">Deny Sri Supriyono</a></li>

<div id="larchives">
<h3 class="archives"><span>Archives:</span></h3>
<li><a href="/?cssfile=116/116.css&page=1" title="View next set of designs. AccessKey: n" accesskey="n"><span class="accesskey">n</span>ext designs »</a></li>
<li><a href="http://www.mezzoblue.com/zengarden/alldesigns/" title="View every submission to the Zen Garden. AccessKey: w" accesskey="w">Vie<span class="accesskey">w</span> All Designs</a></li>

<div id="lresources">
<h3 class="resources"><span>Resources:</span></h3>
<li><a href="116/116.css" title="View the source CSS file for the currently-viewed design, AccessKey: v" accesskey="v"><span class="accesskey">V</span>iew This Design’s <acronym title="Cascading Style Sheets">CSS</acronym></a></li> <li><a href="http://www.mezzoblue.com/zengarden/resources/" title="Links to great sites with information on using CSS. AccessKey: r" accesskey="r"><acronym title="Cascading Style Sheets">CSS</acronym> <span class="accesskey">R</span>esources</a></li>
<li><a href="http://www.mezzoblue.com/zengarden/faq/" title="A list of Frequently Asked Questions about the Zen Garden. AccessKey: q" accesskey="q"><acronym title="Frequently Asked Questions">FA<span class="accesskey">Q</span></acronym></a></li>
<li><a href="http://www.mezzoblue.com/zengarden/submit/" title="Send in your own CSS file. AccessKey: s" accesskey="s"><span class="accesskey">S</span>ubmit a Design</a></li>
<li><a href="http://www.mezzoblue.com/zengarden/translations/" title="View translated versions of this page. AccessKey: t" accesskey="t"><span class="accesskey">T</span>ranslations</a></li>


<!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
<div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div>
<div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>

soi tu colle le css sr la meme page ou tu donne un chemin pour que le html et le css sc retrouve
12 Mars 2007 20:23:09

va sur le site et enregistre les image dans le meme dossier ou dans le css regarde les jpg ou gif et tu lui donner le chemin
a plus
12 Mars 2007 22:05:28

si il y 10 je crois clic droit pour le faire
12 Mars 2007 22:18:30

cutino989 a dit :
si il y 10 je crois clic droit pour le faire

Désolé je n'ai pas compris ton message.

J'ai up les image sur mon ftp, dans plusieurs dossier mais toujours rien.
12 Mars 2007 23:38:01

Si ta pas le css qui va avec le html, bah tu peux toujours courrir!
13 Mars 2007 00:59:44

desole je ne pas le temps de tu faire donne toi la paine
voici des image de ton site css

a toi d continuer a bientot et bonne continuation
13 Mars 2007 07:43:50


mon probleme n'est pas les images, j'arrive a les extraire du site, le probleme c'est qu'elles ne s'affiches pas, même en les upant sur mon ftp.

Sinon pour allstar 27, j'ai bien dl le "html file" et le "css file" sur ce lien :

13 Mars 2007 16:59:22

dans ton css
recherche les ex: gif, ou jpg ex background: url(zen-bg.jpg) no-repeat
13 Mars 2007 18:02:48


j'ai bien ces codes :

background: url(zen-bg.jpg) no-repeat top left;

mais qu'est ce que je suis cencé en faire ?

13 Mars 2007 21:13:34

si ton image ne s'afiche pas c que tu lui donne pas le le chemin
dans t'as fiche css ex(zen-bg.jpg) si l'image est dans le meme endroi que la fiche sinon (..../zen-bg.jpg)
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS