Probleme sur theme Php [résolu]

Probleme sur theme Php [résolu] - PHP - Programmation

Marsh Posté le 11-01-2008 à 20:10:48    

Bonsoir tout le monde .
 
Je vous explique mon problème:  
 
En fait, j'ai crée mon site sur une résolution de  1280x800 jusque la, pas de problème ... Le ic, c'est que lorsque je passe en 1024, ma sidebar se déplace ...  
 
Je vous laisse voir par vous même : http://radicale.cymea.net
 
Soyez clément, c'est la première fois que je vois du php  :sarcastic:  
 
Je sais pas si c'est utile de mettre tout mon code ici , sa va vous donnez mal a la tête lol ( c'est un peu le bordel :p )  
 
Voili voilou, je passerais très régulièrement pour répondre a vos questions ^^
 
Merci a ceux qui vont essayer de m'aider :)


Message édité par ye ye le 12-01-2008 à 16:22:23
Reply

Marsh Posté le 11-01-2008 à 20:10:48   

Reply

Marsh Posté le 11-01-2008 à 22:18:29    

C'est pas du php mais du html :o

Reply

Marsh Posté le 11-01-2008 à 23:37:39    

euh ? peux tu argumenter ?  
 
parce quand je vois mon index  

Code :
  1. <?php  get_header(); ?>
  2. <?php //include(TEMPLATEPATH . "/leftad.php" ); ?>
  3. <div class="content">
  4. <?php if (have_posts()) : ?>
  5.  <?php while (have_posts()) : the_post(); ?>
  6.             <div id="postTop">
  7.    <div id="postTitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
  8.   </div>
  9.            
  10.   <div class="post">
  11.    <?php the_content('Read the rest of this entry &raquo;'); ?>
  12.   </div>
  13.  <?php endwhile; ?>
  14.  <div class="navigation">
  15.   <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
  16.   <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
  17.  </div>
  18. <?php else : ?>
  19.  <div class="titletop"></div>>
  20.  <h1 class="title">Not Found</h1>
  21.  <div class="titlebottom"></div>
  22.  <div class="post">
  23.   <p>Sorry, but you are looking for something that isn't here.</p>
  24.  </div>
  25. <?php endif; ?>
  26. </div>
  27. <?php get_sidebar(); ?>
  28. <?php get_footer(); ?>


 
sa ressemble a du php :p


Message édité par ye ye le 11-01-2008 à 23:38:50
Reply

Marsh Posté le 11-01-2008 à 23:39:50    

mais le placement des éléments sur ta page, la mise en forme c'est du HTML et sûrement une bonne pincée de CSS  :o


Message édité par bricocoman le 11-01-2008 à 23:53:14
Reply

Marsh Posté le 12-01-2008 à 01:25:06    

oui, mais comment faire pour régler mon problème ?
 
 
mon css :  
 

Code :
  1. /*   
  2. Theme Name: ye ye
  3. */
  4. body {
  5. padding-right:60px;
  6. padding-left:60px;
  7. padding-top:50px;
  8. background:#1a171b url(images/FOND.gif);
  9. font-family:Tahoma;
  10. color:#dddddd;
  11. font-size:12px;
  12. }
  13. img {
  14. border:0;
  15. }
  16. a {
  17. color:#dddddd;
  18. text-decoration:none;
  19. }
  20. a:hover {
  21. text-decoration:underline;
  22. }
  23. h1, h2, h3, h4, h5, h6 {
  24. }
  25. blockquote {
  26. border-left:3px solid #bbd600;
  27. padding-left:10px;
  28. }
  29. .clear {
  30. clear:both;
  31. height:1px;
  32. overflow:hidden;
  33. }
  34. /* The Wrapper */
  35. .wrapper {
  36. width:100%;
  37. margin:1 auto;
  38. /* background:#1a171b url(images/_wrapperbg.gif) 0 235px repeat-x;*/
  39. }
  40. /* The Top */
  41. .top {
  42. height:6px;
  43. background:url(images/top.gif);
  44. }
  45. .topleft {
  46. height:px;
  47. width:px;
  48. float:left;
  49. background:url(images/topleft.gif) left no-repeat;
  50. }
  51. .topright {
  52. height:px;
  53. width:0px;
  54. float:right;
  55. background:url(images/topright.gif);
  56. }
  57. .menu {
  58. float:left;
  59. width:1123px;
  60. height:27px;
  61. background:url(images/menu.gif);
  62. margin-top:1px;
  63. }
  64. .menuleft {
  65. width:100%;
  66. float:10%;
  67. height:27px;
  68. background:url(images/);
  69. }
  70. /*.menuright {
  71. width:5px;
  72. float:left;
  73. height:27px;
  74. background:url(images/menuright.gif);
  75. } */
  76. .top ul {
  77. margin: -25px;
  78. padding:;
  79. list-style:none;
  80. float:left;
  81. width:100%;
  82. line-height:25px;
  83. }
  84. .top li {
  85. display:INLINE ;
  86. }
  87. .top a {
  88. color:# ;
  89. padding:7px 10px 5px 10px;
  90. margin-left:15px;
  91. padding-left:15px ;
  92. }
  93. .top a:hover {
  94. background:url(images/menuHover.png);
  95. padding-right:10px;
  96. width:0px;
  97. margin-top:10px ;
  98. text-decoration:none;
  99. }
  100. /* The Head */
  101. .head {
  102. height:200px;
  103. background:url(images/logoAlchimieRadicale4.gif) no-repeat #1a171b center;
  104. }
  105. /* .blogtitle {
  106. float:left;
  107. width:533px;
  108. background:url(images/.gif) 90px 71px no-repeat;
  109. height:86px;
  110. padding:80px 0 0 151px;
  111. font-size:35px;
  112. font-family:Arial, Helvetica, sans-serif;
  113. font-weight:bold;
  114. }
  115. .blogtitle a {
  116. color:#fff;
  117. text-decoration:none;
  118. } */
  119. /* The Search Form */
  120. .search {
  121. /* float:left;*/
  122. /* height:52px;
  123. width:23.5%;*/
  124. position: absolute;
  125. background:url(.images/search.gif) no-repeat;
  126. margin-top:-30px;
  127. margin-left:980px;
  128. }
  129. .search form {
  130. padding:14px  1px;
  131. background:url(images/searchtext.gif) no-repeat ;
  132. }
  133. .search input {
  134. border:none;
  135. padding:0;
  136. float:left;
  137. }
  138. .search input#s {
  139. background:url(images/searchbar.gif);
  140. /* width:90%;
  141. height:21px;*/
  142. padding:px 0 0 px;
  143. }
  144. .search input#submit {
  145. background:url(images/searchsubmit.gif);
  146. width:0px;
  147. height:27px;
  148. }
  149. /* Left Sidebar */
  150. .leftsidebar {
  151. width:63px;
  152. float:CENTER;
  153. margin-bottom:37px;
  154. }
  155. /* .adhead {
  156. font-family:Arial, Helvetica, sans-serif;
  157. font-size:12px;
  158. font-weight:bold;
  159. height:38px;
  160. background:url(images/adhead.png);
  161. text-align:center;
  162. padding-top:0px;
  163. } */
  164. .adcontent {
  165. margin-left:50px;
  166. }
  167. /* The Content */
  168. .content {
  169. background:url(images/postinfo2.gif) no-repeat;
  170. margin-top:20px;
  171. float:right;
  172. width:900px;
  173. margin-left:20px;
  174. /* margin-right:20px;*/
  175. margin-bottom:px;
  176. padding-top:0Px;
  177. overflow:hidden;
  178. }
  179. .titletop {
  180. height:8px;
  181. background:url(images/titletop.gif) no-repeat;
  182. overflow:hidden;
  183. }
  184. h1.title {
  185. background:url(images/title.gif) no-repeat;
  186. margin:0;
  187. padding:0 20px;
  188. font-family:Arial, Helvetica, sans-serif;
  189. font-size:13px;
  190. }
  191. h1.title a {
  192. }
  193. h1.title a:hover {
  194. text-decoration:none;
  195. color:#fff;
  196. }
  197. .titlebottom {
  198. height:8px;
  199. background:url(images/titlebottom.gif) no-repeat;
  200. overflow:hidden;
  201. }
  202. /*.postinfo {
  203. font-size:1px;
  204. margin-top:0px;
  205. padding:0 0 0 20px;
  206.  ;
  207. }
  208. /*.pi-comments {
  209. background:url(images/comments.gif) left no-repeat;
  210. float:left;
  211. height:14px;
  212. padding:0 18px 0 20px;
  213. }
  214. .pi-cats {
  215. float:left;
  216. background:url(images/postinfo.gif) left no-repeat;
  217. padding-left:20px;
  218. } */
  219. .post {
  220. text-align:LEFT;
  221. margin-left:50px;
  222. margin-right:50px;
  223. margin:0 0 50px 0;
  224. }
  225. /*#postTop {
  226. margin-top:0px;
  227. background:url(images/-poste_info.gif) no-repeat; width:50Opx;
  228. height:250px;  
  229. } */
  230. #postTitle  {
  231. text-align:center;
  232. color:#a69a46;
  233. font-size:24px;
  234. padding-top:50px;
  235. }
  236. #postTitle a {
  237. color:#a69a46;
  238. text-decoration:none;
  239. }
  240. #postTitle a:hover {
  241. color:#fff;
  242. }
  243. #postBottom {
  244. background:url(images/poste_info.gif) no-repeat;
  245. height:210px
  246. weight: 50px ; }
  247. /* The Sidebar */
  248. .sidebar {
  249. float:left;
  250. width:200px;
  251. height:700px;
  252. margin:px 0 37px 34;
  253. background:#1a171b url(images/sidebar.gif) bottom repeat-x;
  254. }
  255. .sidebarbottom {
  256. height:20px;
  257. background:url(images/_sidebarbottom.gif) no-repeat;
  258. }
  259. .sidebarul {
  260. min-height:10%;
  261. }
  262. .sidebar ul {
  263. margin: 0PX;
  264. padding:0;
  265. list-style:none;
  266. }
  267. .sidebar h2 {
  268. /* height:41px;*/
  269. background:url(images/sidebar.png) center no-repeat;
  270. text-align:center;
  271. font-size:12px;
  272. font-family:Arial, Helvetica, sans-serif;
  273. /* padding-top:9px;*/
  274. /* margin:20px 0;*/
  275. }
  276. .sidebar h2:hover {
  277. background:url(images/sidebarHover.png) center no-repeat;
  278. }
  279. .sidebar ul ul, .sidebar div {
  280. padding:0 25px 0 45px;
  281. line-height:20px;
  282. font-size:11px;
  283. }
  284. .sidebar ul ul ul {
  285. padding:0;
  286. }
  287. .sidebar ul ul li {
  288. background:url(images/arrow.gif) 0 1px no-repeat;
  289. padding:0 0 0 23px;
  290. }
  291. .sidebar ul ul a {
  292. color:#fff;
  293. }
  294. /* The Footer */
  295. .footer {
  296. clear:both;
  297. height:202px;
  298. background:#1a171b url();
  299. }
  300. .footerleft {
  301. float:left;
  302. width:40%;
  303. padding:50px 0 0 80px;
  304. font-family:Arial, Helvetica, sans-serif;
  305. }
  306. .footerleft h2 {
  307. margin:0;
  308. padding:0 0 6px 0;
  309. font-size:18px;
  310. font-weight:bold;
  311. color:#ffd200;
  312. border-bottom:2px solid #2b515d;
  313. }
  314. .footerleft ul {
  315. margin:0;
  316. padding:0;
  317. list-style:none;
  318. line-height:30px;
  319. }
  320. .footerleft li {
  321. border-bottom:2px solid #2b515d;
  322. }
  323. .footerleft a {
  324. color:#badbe6;
  325. }
  326. .footerleft a:hover {
  327. text-decoration:none;
  328. color:#fff;
  329. }
  330. .footerright {
  331. float:right;
  332. width:336px;
  333. padding:27px 29px 0 0;
  334. }
  335. .footerbottom {
  336. clear:both;
  337. text-align:center;
  338. font-size:11px;
  339. padding-top:35px;
  340. line-height:18px;
  341. }
  342. /* The Navigation */
  343. .navigation {
  344. height:25px;
  345. width:100%;
  346. margin:0 auto;
  347. }
  348. .navigation a {
  349. font-weight:bold;
  350. text-decoration:none;
  351. font-size:14px;
  352. }
  353. .alignleft {
  354. float:left;
  355. }
  356. .alignright {
  357. float:right;
  358. }
  359. /* The Attachment */
  360. .contentCenter {
  361. text-align:center;
  362. }
  363. /* The Page Title */
  364. h2.pagetitle {
  365. padding:10px 0 20px 0;
  366. color:#fff;
  367. margin:0;
  368. font-size:20px;
  369. text-align:center;
  370. }
  371. /* The Comments */
  372. .comments {
  373. }
  374. .comments textarea {
  375. width:90%;
  376. height:156px;
  377. background:#fff;
  378. border:1px solid #000;
  379. color:#484849;
  380. padding:10px;
  381. overflow:auto;
  382. font-family:Arial, Helvetica, sans-serif;
  383. font-size:14px;
  384. }
  385. #commentform input {
  386. background:#fff;
  387. border:1px solid #000;
  388. color:#484849;
  389. padding-left:10px;
  390. }
  391. .comments input#submit {
  392. padding:0;
  393. width:72px;
  394. height:29px;
  395. }
  396. .comments h2 {
  397. margin:0 0 10px 0;
  398. padding:0;
  399. font-size:20px;
  400. font-weight:normal;
  401. color:#fff;
  402. }
  403. .comments ol {
  404. margin:0 0 20px 0;
  405. padding:0;
  406. list-style:none;
  407. }
  408. .comments ol li {
  409. }
  410. .comments ol li p {
  411. padding:0;
  412. margin:10px 0;
  413. }
  414. .commenthead {
  415. font-size:12px;
  416. border-bottom:2px solid #fff;
  417. height:20px;
  418. }
  419. .commenthead .alignleft {
  420. color:#fff;
  421. font-weight:bold;
  422. }


 
doit y avoir pas mal de code bizarre mais comme dit sur mon premier poste, c'est mon premier site, je découvre ^^


Message édité par ye ye le 12-01-2008 à 01:27:26
Reply

Marsh Posté le 12-01-2008 à 11:59:22    

Ca doit être lié aux css concernant les blocs qui représentent ta barre et le contenu de la page. La largeur disponible pour l'affichage étant réduit, ça rentre plus :spamafote:
 
Faut réduire la taille :spamafote: T'as 900+200 pour 1024, ça déborde c'est normal :D

Reply

Marsh Posté le 12-01-2008 à 16:21:37    

héhé je pense avoir resolu mon problème :)  
 
Merci a toi leflos5 de m'avoir mis sur la bonne voie xD  
 
Je pense avoir fais le principal, mais je suis pret a prendre tout conseil que vous pourriez me donner ^^  
 
A plus
 
(j'edit mon premier poste merci a tous )

Reply

Marsh Posté le 13-01-2008 à 10:55:49    

Ah bah oui maintenant y'a une page blanche :D

Reply

Sujets relatifs:

Leave a Replay

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