ďťż
Podstrony
|
telcocafePracuję nad dostosowaniem theme'a do wordpressa i napotkałem na pewien problem. Strona wyświetla się nieprawidłowo w mniejszych rozdzielczościach (bądź po zmniejszeniu się okna przeglądarki) - możecie sami sprawdzić - http://cimlik.pl/blog/. Potrzebuję pomocy w poprawie kodu stylu css, bo jak się domyślam z nim związane jest błędne wyświetlanie się bloga./* Theme Name: Indigo Theme URI: [url="http://www.kaushalsheth.com/"]http://www.kaushalsheth.com/[/url] Description: A lightweight, simple and pleasant design. Author: Kaushal Sheth Author URI: [url="http://www.kaushalsheth.com/"]http://www.kaushalsheth.com/[/url] */ /*############################################################# Name: Indigo Date: 2006-07-27 Description: A lightweight, simple and pleasant design. Author: Viktor Persson URL: [url="http://arcsin.se"]http://arcsin.se[/url] Feel free to use and modify but please provide credits. #############################################################*/ /* standard elements */ * { margin: 0; padding: 0; } a { color: #F70; } a:hover { color: #C60; } body { background: #0094D6 url('img/bg.gif') repeat-x; color: #466; margin: 0; font-style:normal; font-variant:normal; font-weight:normal; font-size:62.5%; font-family:Lucida Sans Unicode, sans-serif } input { color: #555; font: normal 1.1em "Lucida Sans Unicode",sans-serif; } p, cite, code, ul { font-size: 1.2em; padding-bottom: 1.2em; } h1 { font-size: 1.4em; margin-bottom: 4px; } code { border-right:1px solid #F0F0F0; border-top:1px solid #F0F0F0; border-bottom:1px solid #F0F0F0; background:url('img/bgcode.gif'); border-left:6px solid #39F; color: #555; display: block; margin-bottom: 12px; white-space: pre; font-style:normal; font-variant:normal; font-weight:normal; font-size:1.1em; font-family:Lucida Sans Unicode, serif; padding-left:10px; padding-right:10px; padding-top:8px; padding-bottom:8px } cite { background: url('img/quote.gif') no-repeat; color: #666; display: block; padding-left: 28px; font-style:normal; font-variant:normal; font-weight:normal; font-size:1.3em; font-family:Lucida Sans Unicode, serif } h1, h2, h3 { color: #06C; padding-top: 6px; } /* misc */ .clearer { clear: both; } /* structure */ .container { background: url('img/topleft.gif') no-repeat; } .header { height: 92px; } /* title */ .title { float: left; padding: 28px 0 0 76px; } .title h1 { color: #FFF; font: normal 2em Verdana,sans-serif; } .title h1 a{ color: #FFF; text-decoration:none; } /* navigation */ .navigation { float: left; height: 92px; margin-left: 24px; padding: 0 16px; } .navigation a{ color: #FFF; float: left; font: bold 1.2em "Trebuchet MS",sans-serif; margin-top: 56px; padding: 8px 18px; text-align: center; text-decoration: none; } .navigation a:hover { background-color: #4A91C3; color: #FFF; } /* main */ .main { background: #FFF url('img/bgmain.gif') no-repeat; clear: both; padding-left:52px; padding-right:12px; padding-top:12px; padding-bottom:0 } /* main left */ .sidenav { float: left; width: 24%; } .sidenav h1 { border-bottom: 1px dashed #DDD; color: #E73; font-size: 1.2em; height: 20px; margin-top: 1.2em; } .sidenav ul { margin: 0; padding: 0; } .sidenav li { border-bottom: 1px dashed #EEE; list-style: none; margin: 0; } .sidenav li a { color: #777; display: block; font-size: 0.9em; padding: 3px 6px 3px 18px; text-decoration: none; } .sidenav li a:hover { color: #111; background: url('img/nav_li.gif') no-repeat; } /* content */ .content { float: left; margin-right: 4%; width: 69%; } .content .descr { color: #C60; margin-bottom: 6px; } .content li { margin-left: 18px; list-style-image:url('img/li.gif') } /* search form */ .styled { border: 3px double #E5E5E5; padding: 2px 3px; } .button { border: 1px solid #AAA; margin-left: 5px; padding: 2px 3px; } /* footer */ .footer { background: #0094D6 url('img/bgfooter.gif') repeat-x; color: #C1DEF0; font-size: 1.1em; line-height: 40px; text-align: center } .footer a { color: #FFF; text-decoration: none; } .footer a:hover { color: #FFF; text-decoration: underline; } /*post stylng*/ .post{margin:0 0 25px 0;} .post .info{ padding:2px 3px 3px 8px; border:1px solid #e3e4e4; background-color:#f5f5f5; font-size:0.9em; color:#505050; } /*comment styling*/ /* Comments Styling */ #commentlist li { margin-bottom: 1.5em; padding-bottom: 1em; border-bottom: 1px solid #700000; } #commentform { margin: 1em 0; background: #ffffff; width: 280px; } #commentform textarea { background: #f8f7f6; border: 1px solid #d6d3d3; width: 280px; } #commentform textarea:hover { background: #FFFFFF; border: 1px solid #d6d3d3; } #commentform textarea:focus { background: #ffffff; border: 1px solid #939793; } #commentform #email, #commentform #author, #commentform #url { font-size: 1.1em; background: #f8f7f6; border: 1px solid #d6d3d3; width: 280px; } #commentform #email:hover, #commentform #author:hover, #commentform #url:hover { font-size: 1.1em; background: #ffffff; border: 1px solid #d6d3d3; width: 280px; } #commentform #email:focus, #commentform #author:focus, #commentform #url:focus { font-size: 1.1em; background: #ffffff; border: 1px solid #939793; width: 280px; } #commentform input{ margin-bottom: 3px; } .navigation li { list-style:none; } .navigation ul { margin:0px; } Osobiście nie radze stosować procentów przy marginesach ani przy szerokości! Kod CSS Do poprawy Przykładowy kod do lewego diva powinien być taki: #left{ width:500px; float:left; margin-top:8px; } a do prawego taki #right{ width:200px; margin-top:8px; margin-left:10px; float:left; } Użytkownik bajeczny edytował ten post 20 luty 2007, 21:27 Osobiście nie radze stosować procentów przy marginesach ani przy szerokości! LOL, a to dlaczego ?? |
|||
Sitedesign by AltusUmbrae. |