( Zaloguj | Zarejestruj )
![]() ![]() |
09.3.2010 - 20:44
Post
#1
|
|
|
aktywność: ![]() ![]() ![]() Grupa: +Bloger Postów: 100 Nr: 7 930 |
I jeszcze jedna kwestia, z którą walczę.
Na stronie http://dariuszczepiel.pl/blog chciałbym zwiększyć szerokość obszaru postów do ok 800px kosztem sidebara. Potrzebuje w postach wklejać obrazki o rozdzielczościo 750px na szerokość, wiec taka właśnie szerokość (lub nawet 800px) to to czego szukam, natomiast sidebar mógłby być ciaśniejszy. Niestety nie mogę znależć w moim style.css czegoś takiego co możnaby tylko zmienić i efekt byłby właśnie taki. Czy ktoś byłby w stanie pomóc? style.css CODE /************************* GLOBAL STYLES ***************************/ body {color:#eee;background: #111 url(images/bg.jpg) no-repeat center fixed;} .container-inner {width:950px; margin:0 auto;padding:1.75em 0 1em} .container {background:url(images/repeater.png) repeat;} h1,h2,h3,h4,h5,h6 {color:#eee;} h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {color:#eee;} h3.sub,h2.sub {margin: 0 0 10px 0;padding: 0 0 5px 0;font-size: 1.1em;font-weight: bold;line-height: 1em;text-transform: uppercase;letter-spacing: 2px;color: #515151;border-bottom: 1px solid #000;} a {color:#428ce7;text-decoration:none;} a:hover, a:focus {color:#fff;} p {color:#eee;} h6.top {color:#ccc;} #top {width:950px; margin:0 auto 1em;padding: 0 0 .5em; color:#666} #top a {color:#666} .login {float:left;} /* Masthead */ #masthead { float: left;height:36px} #masthead h4, #masthead span { margin: 0; padding:10px 0 0; line-height:2em } #masthead h4 { font-weight: bold; text-transform: uppercase; float: left} #masthead h4 a { color: #fff; text-decoration: none; } #masthead span.description { color: #ccc; text-transform: lowercase; font-size: .7em; padding: .35em 3em;} .double-border {background: url(images/double-border.png) repeat-x bottom; height:8px; width:100%;clear:both;float:none;border:none;;margin:1em 0} /*Logo */ h4 img { margin-top: 10px; margin-left: -10px; } /* Navigation at rest */ #nav { float: right; margin: 18px 0 0 0;background:#000;padding:6px 4px 4px 10px;} #nav ul, #nav ul li { margin: 0; padding: 0; } #nav ul li { font-size: 10px; font-weight: bold; text-transform: lowercase; list-style: none; float: left; margin-right: 15px; position: relative;color:#eee } #nav ul li a { color: #eee; text-decoration: none; } #nav ul li a:hover {color:#fff} /* Navigation interaction */ #nav ul li ul { display: none; } #nav ul li.drop:hover ul { display: block; } /* Sub-navigation */ #nav ul li ul { padding-top: 7px; margin-left: -10px; position: absolute;z-index:200} #nav ul li ul li { margin-right: 0; float: none; font-weight: normal; font-size: 11px;z-index:210} #nav ul li ul li a { display: block; background: #1a1a1a; padding: 7px 10px; width: 130px; color: #999; background-repeat: no-repeat; background-position: 5px 50%; } #nav ul li ul li a:hover { text-decoration: underline; background:#000;} #nav ul li ul li a.icon { padding-left: 30px; } #nav ul li ul li a.entries { background-image: url(images/rss.png);background-repeat: no-repeat;background-position: 5px 50%; } #nav ul li ul li a.comments { background-image: url(images/chat.png);background-repeat: no-repeat;background-position: 5px 50%;} #nav ul li ul li a.phone { background-image: url(images/phone.png);background-repeat: no-repeat;background-position: 5px 50%; } #nav ul li ul li a.email { background-image: url(images/email.png);background-repeat: no-repeat;background-position: 5px 50%;} /* Navigation enhanced styles */ #nav ul li ul.push { margin-top: 12px; z-index:211} #nav ul li.enhanced { margin-right: 0; padding-right: 15px; z-index:211} #nav ul li.enhanced span { padding-right: 7px; float: left; z-index:211} #nav ul li.enhanced a.arrow { display: block; position: relative; top: -2px; width: 18px; height: 15px; overflow: hidden; float: left; } #nav ul li.enhanced a.arrow:hover { cursor: pointer; } #nav ul li.enhanced a.arrow img { display: block; position: relative; border: 0; } #nav ul li.enhanced a.rest img { top: 0; } #nav ul li.enhanced a.hover img { top: -15px; } #nav ul li.enhanced a.open img { top: -30px; } /* Posts */ .content {} .content h2 {font-family: Georgia, serif;} .post {display:block;clear:both;} .post h4, .post h6 {font-family: Georgia, serif;} .postmetadata {background:#000;padding:1em;color:#999; font-size:10px;-moz-border-radius: 5px;-khtml-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;} .postmetadata a {} .postmetadata a:hover {color:#fff;} .underlined {border-bottom:1px solid #eee;} h6.underlined {margin:0 0 1em;} .welcomebox {padding:1.5em;margin-bottom:1.5em;background:#eee;-moz-border-radius: 5px;-khtml-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;} .welcomebox p, .welcomebox h2 {color:#000} .nav-image-left, .nav-image-up, .nav-image-right {text-align:center;float:left;width:25px;margin:0 10px 0 2px;} .nav-image-left a, .nav-image-up a, .nav-image-right a {background:#eee;padding:2px 48% 2px 48%;text-decoration:none;color:#000;} .nav-image-left a:hover, .nav-image-up a:hover, .nav-image-right a:hover {background:#000;color:#fff;} .nav {background:#eee;margin:0 0 1em 0;-moz-border-radius: 5px;-khtml-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;} .nav:hover {background:#ccc;} .prev a, .next a {color:#222;text-decoration:none;padding:.2em 1em;} .nav-interior {margin:0;padding:0;clear:both;display:inline;} .nav-interior .next {color:#000;text-decoration:none;float:right;} .nav-interior .prev {color:#000;text-decoration:none;float:left;} /* Sidebar */ #sidebar {margin:0;} #sidebar h3 {margin:0;padding:0 0 .6em 0} #sidebar .item {margin:0 0 4em 0} #sidebar ul{list-style:none;margin:0 0 1.6em 0;font-size:1em;} #sidebar ul li a,ul.txt li{color:#eee;height:1%;line-height:1.2em;border-bottom:1px solid #000;display:block;padding:6px 0 6px 8px;} #sidebar ul li a:hover,ul.txt li:hover{color:#fff;background-position:1px 0.8em;background: #000} #sidebar ul li a span,ul.txt li,h4 a span{color:#696455;} #sidebar ul li.active a{cursor:default;color:white;} #sidebar ul ul{margin:0;list-style:none;} /* Footer */ #footer-wrap {background:#000;} #footer {width:950px;padding:1.5em 0;margin:0 auto;color:#999;text-align:left} #footer p {color:#999} #footer h3 {margin:0;padding:0 0 .6em 0; border-bottom:none; color:#999} #footer .item {margin:0 0 4em 0} #footer ul{list-style:none;margin:0 0 1.6em 0;font-size:1em;} #footer ul li a,ul.txt li{height:1%;line-height:1.2em;display:block;padding:6px 0 6px 8px;} #footer ul li a:hover,ul.txt li:hover{color:#fff;background-position:1px 0.8em;background: #111} #footer ul li a span,ul.txt li,h4 a span{color:#696455;} #footer ul li.active a{cursor:default;color:white;} #footer ul ul{margin:0;list-style:none;} #footer ul#recentcomments {list-style:none;margin:0 0 1.6em 0;font-size:1em;} #footer ul#recentcomments li.recentcomments {display:block;padding:4px 0 4px 8px;} #footer ul#recentcomments li.recentcomments a {border:0; background-image:none} #footer ul#recentcomments li.recentcomments a:hover{color:#fff;background-position:1px 0.8em;background: #111} #footer ul#recentcomments li.recentcomments a span{color:#696455;} /* Floats & Images */ .right { float: right; } .left { float: left; } .middle {margin: 0 auto;float:left;} .clear { clear: both; } img.centered{display: block;margin-left: auto;margin-right: auto;max-width:950px} img.alignright{padding: 4px;margin: 3px 0 2px 10px;display: inline;max-width:950px} img.alignleft{padding: 4px;margin: 3px 10px 2px 0;display: inline;max-width:950px} img.alignnone{padding:0 4px 4px 0; margin: 3px 10px 2px 0;display: block;max-width:950px} .alignleft{float: left;} .alignright{float: right;} .aligncenter,div.aligncenter {display: block;margin-left: auto;margin-right: auto;} .wp-caption {padding-top:0;margin:0} .wp-caption img {margin: 0;padding: 0;border: 0 none;} .wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px;;text-align:center;padding: .5em 0;margin: 0;background:#000;max-width:950px} .home .wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px;;text-align:center;padding: .5em 0;margin: 0;background:#000;max-width:590px} .thumbnail, .attachment-thumbnail {max-width:150px;margin:0 1.5em 1.5em 0;float:left} .attachment-medium {max-width:950px;overflow:hidden;display: inline} .attachment-large {max-width:950px;overflow:hidden;display: inline} .content .size-medium, content size-large {margin: 0 1.5em 1.5em 0} .home .size-medium, .home .size-large {max-width:590px; height:auto; overflow:hidden;margin:0 .5em .5em 0;} dl.gallery-item .gallery-caption {clear:both;float:none;width:150px;} dl.gallery-item {width:170px;padding:10px} .gallery-icon .attachment-thumbnail{padding:0;margin:0} .gallery {width:auto;} /* Etc */ #filters {clear: both;height: 2em;margin-bottom: 1em;} #filters li {float: left;margin-right: 2em;} .prev {} .next {} /* remember to define focus styles! */ :focus {outline: 0;} .advertisement .box {background:#e5ecf9;} /* Search */ #search {margin:0; padding:0;} #search #s {background: #ddd url('images/search.png') 0px center no-repeat;color: #222;font-size: 1em;margin:0;padding: 4px 0 4px 17px;width: 120px;border:1px solid #333;} #search input {border:0} #search #s:hover {color: #0066cc;background: #fff url('images/search_blue.png') 0px center no-repeat;} .search-excerpt {margin: 0;} /* Comments */ h3#comments{margin: 10px 0 0;padding: 20px 10px;background: #000;} h3#comments span.comments-subscribe {float:right;font-size:.7em;margin-left: 3px;padding: 0 0 0 19px;background: url("images/rss.png") no-repeat 0 50%;color:#cccccc;} h3#respond{margin: 10px 0 0;padding: 20px 10px;background: #000;} ol.commentlist{list-style-type: none;margin: 0;padding: 0;border-top: 5px solid #eee;} ol.commentlist li strong{padding-left:1em;} ol.commentlist li .comment-entry{margin: 5px 0 0;border-bottom: 5px solid #eee;padding: 5px 150px 0;line-height: 2em;} ol.commentlist li .avatar{border:1px solid #000;padding:1em;margin:2em 1em 1em 0;} #commentform{margin: 0 0 7px;padding: 30px 150px 6px;border-top: 10px solid #333;background: #000;} /* ************************ SLIDESHOW ********************************/ ul#portfolio {padding:0;list-style:none;margin:0 0 1em;overflow:hidden;max-height:590px;} ul#portfolio li {list-style:none;padding:0;} ul#portfolio li h4 {margin: 0 0 .5em 0;text-transform:uppercase;padding:0 16px;} ul#portfolio li img {max-width:950px;text-align:center;margin:0;} /*qTranslate*/ .qtrans_language_chooser { list-style-type:none } .qtrans_language_chooser li { float:left; margin-right:3px } Będę wdzięczny ! -------------------- |
|
|
|
09.3.2010 - 22:57
Post
#2
|
|
|
aktywność: ![]() ![]() ![]() Grupa: +Bloger Postów: 100 Nr: 7 930 |
chyba znalazlem, niebawem napisze co to za rozwiazanie !
Edit: A więc rozwijając temat - znowu odpowiedzialny za to jest plik screen.css w katalogu modularity-lite/library/styles Należy odszukac w nim linijki: span-15 (odpwoiada za szerokosc postow) oraz span-8 (szerokosc sidebara) i odpwoeidnio zmodyfikowac ich wartosc. Pamietac nalezy ze sumuja sie do 900px. Ja dalem span-15 na 800px i span-8 na 100px Dziwaczny sposob, ale zadzialal. Ten post edytował dczepiel 10.3.2010 - 20:35 -------------------- |
|
|
|
10.3.2010 - 08:34
Post
#3
|
|
|
aktywność: Grupa: Bloger Postów: 14 Nr: 7 975 |
witam mam ten sam problem chciałbym zwiększyć pole postów ale nie mam pojęcia jak.
KOD /* LAYOUT */
body { background: url(images/background.png); } #wrapper { padding:0; } #container { } #contentwrap { background: url(images/wontent-wrapper.png) top left repeat-y; } a { color: #920f07; } a:hover { color: #c90d02; } /* HEADER */ #header { height: 100px; padding-top:20px; background: #6f0c06; } #header h1 { margin-bottom: 8px !important; padding: 8px 0 0 15px; font-weight: normal; font-family: Verdana, Arial; font-weight: bold; font-size: 42px; } #header h1 a, #header h1 a:visited { color: #fff; text-decoration: none; } #header h2 { padding-left: 15px; color: #bc9f9f; font-size: 14px; line-height: 14px; font-family: Arial; } .logoimg { margin: 0 0 0 10px; } /* NAVIGATION MENUS */ #pagemenucontainer { height: 30px; margin-top: 25px; } #pagemenu { height: 30px; } #pagemenu, #pagemenu ul { padding: 0; margin: 0; list-style: none; line-height: 1; } #pagemenu { margin-bottom: 1px; } #pagemenu ul { float: left; list-style: none; margin: 0px 0px 0px 0px; padding: 0px; } #pagemenu li { float: left; list-style: none; margin: 0px; padding: 0px; } #pagemenu ul li { list-style: none; margin: 0px; padding: 0px; } #pagemenu li a, #pagemenu li a:link { color: #fff; display: block; margin: 0px 3px 0px 3px; padding: 10px 10px 10px 10px; text-decoration: none; font-weight: bold; text-transform: uppercase; font-size: 11px; font-family: Arial, Helvetica, sans-serif; text-shadow: 0 1px 0 #000; } #pagemenu li a:hover, #pagemenu li a:active, .current_page_item { background: #6f0c06; color: #fff; display: block; text-decoration: none; -moz-border-radius: 6px 6px 0px 0px; -khtml-border-radius: 6px 6px 0px 0px; -webkit-border-radius: 6px 6px 0px 0px; border-radius: 6px 6px 0px 0px; } #pagemenu li.current_page_item a { color:#fff; } #pagemenu li:hover, #pagemenu li.sfhover { position: static; } .navcontainer { height: 30px; background: #700d07; } #nav { height: 30px; } #nav, #nav ul { padding: 0; margin: 0; list-style: none; line-height: 1; } #nav { margin-bottom: 1px; padding-left: 15px; } #nav ul { float: left; list-style: none; margin: 0px 0px 0px 0px; padding: 0px; } #nav li { float: left; list-style: none; margin: 0px; padding: 0px; } #nav ul li { list-style: none; margin: 0px; padding: 0px; } #nav li a, #nav li a:link { color: #fff; display: block; margin: 0px 3px 0px 3px; padding: 8px 12px 9px 12px; text-decoration: none; font-size: 13px; font-weight: bold; text-transform: uppercase; text-shadow: 0 1px 0 #000; font-family: Arial, Helvetica, Sans-serif; } #nav li a:hover, #nav li a:active, .current-cat { background: #fff; color: #3e0400; display: block; text-decoration: none; text-shadow: 0 1px 0 #dcb0b0; -moz-border-radius: 6px 6px 0px 0px; -khtml-border-radius: 6px 6px 0px 0px; -webkit-border-radius: 6px 6px 0px 0px; border-radius: 6px 6px 0px 0px; } #nav li.current-cat a { color:#3e0400; text-shadow: 0 1px 0 #dcb0b0; } #nav li:hover, #nav li.sfhover { position: static; } /* CONTENT */ #content { padding: 15px 5px 15px 15px; } pre { overflow: auto; width: 470px; } .post { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #ddd; } .post p { margin-bottom: 10px; } .title { margin: 0 0 8px 0; padding: 0px; line-height: 22px; font-family: Arial, Verdana; color: #2f2e2e; font-weight: bold; } .title a { text-decoration: none; color: #2f2e2e; } .title a:hover { text-decoration: none; color: #9e0f07; } .pagetitle { margin-bottom: 20px; line-height: 22px; font-family: Arial, Verdana; text-decoration: underline; } .readmorecontent { text-align: right; } a.readmore { padding: 4px 15px; background: #651d05; color: #fff; text-decoration: none; text-shadow: 0 1px 0 #000; } a.readmore:hover { background-color: #9e0f07; } .postdate { font-size: 11px; padding: 1px 0px; font-family: Arial, Verdana; } .postmeta { font-size: 11px; padding: 2px 0px; font-family: Arial, Verdana; } .postdate img, .postmeta img { border: none; vertical-align: middle; margin:2px; } .entry { text-align: justify; line-height: 20px; padding-top: 8px; font-family: Arial, Verdana; font-size: 14px; } .navigation { padding: 10px 0; } blockquote { overflow: hidden; padding-left: 9px; font-style: italic; color: #666; border-left: 3px solid #CADAE7; } .post img { max-width: 680px; } img.wp-smiley { max-height: 12px; margin: 0; padding: 0; border: none; } .aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; } .alignleft { float: left; } .alignright { float: right; } .wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; padding-top: 4px; margin: 10px; /* optional rounded corners for browsers that support it */ -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .wp-caption img { margin: 0; padding: 0; border: 0 none; } .wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; margin: 0; } /* SIDEBAR(S) */ .sidebaradbox { margin-top: 5px; text-align:center; } .ad125 { margin: 1px; } .sidebar { margin: 0 25px 10px 25px; color: #b2b2b2; } .sidebar a { text-decoration: none; color: #b2b2b2; } .sidebar a:hover { text-decoration: underline; color:#fff; } #s { width: 140px; padding: 5px; border: 1px solid #414141; background: #323030; color: #bababa; } #topsearch { margin:16px 0 0 0; text-align: right; height: 34px; } #topsearch label { display: none; } #topsearch #s { width: 215px; padding: 5px; border: 1px solid #414141; background: #323030; color: #bababa; } .rssbox { background: #fff7df; border: 1px solid #f9931b; padding: 10px; margin: 10px 0 0 0; } .rssbox a { color: #e23007; text-transform: uppercase; font-size: 13px; font-weight: bold; text-decoration: none; } .rssbox a:hover { color: #e23007; text-decoration: underline; } .twitterbox { background: #eff0fa; border: 1px solid #657fc0; padding: 10px; margin: 10px 0 0 0; } .twitterbox a { color: #02349b; text-transform: uppercase; font-size: 13px; font-weight: bold; text-decoration: none; } .twitterbox a:hover { color: #02349b; text-decoration: underline; } /* Social icons */ .addthis_toolbox { padding: 15px 0 5px 0; text-align: center; } .addthis_toolbox .custom_images a { width: 32px; height: 32px; margin: 0 1px 0 1px; padding: 0; } .addthis_toolbox .custom_images a:hover img { opacity: 1; } .addthis_toolbox .custom_images a img { opacity: 0.75; } .sidebar h2 { margin: 10px 0 0 0; padding: 10px 0 10px 12px; background: url(images/tab_backgr.png) top left no-repeat; font-size: 14px; font-family: Arial, Helvetica, Sans-serif; font-weight: bold; text-transform: uppercase; color: #b3b3b3; text-shadow: 0 1px 0 #000; } .sidebar ul { list-style-type: none; margin: 0px 0px 10px 0px; padding: 0px; } .sidebar ul li { list-style-type: none; margin: 0px 0px 5px 0px; padding: 0px; } .sidebar ul ul { list-style-type: none; margin: 0px; padding: 0px; } .sidebar ul li li { padding: 3px 0px 3px 15px; margin: 0px; background: url(images/bullet.gif) no-repeat top left; } .sidebar ul li ul li { background: url(images/bullet.gif) no-repeat top left; padding: 2px 0px 2px 15px; margin: 2px 0; } #wp-calendar th { font-style: normal; text-transform: capitalize; color: #eee; background: none; } #wp-calendar caption { padding: 2px 4px; text-transform: uppercase; margin: 2px 0 2px 0; background: #2c2b2b; } #wp-calendar td { color: #999; font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; letter-spacing: normal; padding: 2px 0; text-align: center; } #wp-calendar td:hover, #wp-calendar #today { background: #eef0f4; color: #555; } #wp-calendar { empty-cells: show; font-size: 14px; margin: 0; font-weight: bold; width: 100%; } #wp-calendar a:hover { color: #000; } /* FOOTER */ #footer { background: #700d07; padding: 22px; text-align: center; color: #fff; font-size: 13px; } #footer a { color: #fff; } #footer a:hover { text-decoration: none; } #footer2 { color: #acacac; font-size: 11px; text-align: center; padding: 10px; } #footer2 a { color: #acacac; text-decoration: none; } /* COMMENTS */ #comments h3 { margin-bottom: 10px; } #commentform input { width: 170px; padding: 2px; margin: 5px 5px 1px 0; } #commentform { margin: 5px 10px 0 0; } #commentform textarea { width: 100%; padding: 2px; } #respond:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } #commentform #submit { margin: 0 0 5px auto; float: right; } .alt { margin: 0; padding: 10px; } .commentlist { padding: 0; text-align: justify; } .commentlist li { margin: 15px 0 10px; padding: 5px 5px 10px 10px; list-style: none; } .commentlist li ul li { margin-right: -5px; margin-left: 10px; } .commentlist p { margin: 10px 5px 10px 0; } .children { padding: 0; } #commentform p { margin: 5px 0; } .nocomments { text-align: center; margin: 0; padding: 0; } .commentmetadata { margin: 0; display: block; } .post_thumbnail { margin: 0 10px 10px 0; |
|
|
|
![]() ![]() |
| : 9 02 12 - 08:52 |