E ae pessoal, to começando com php agora e já to quebrando a cabeça. Tenho no site 3 sidebar´s, sendo que gostaria de jogar a do meio mais para a esquerda, pois é uma sidebar mais de propagandas e ficaria melhro no layout se fosse à esquerda, o conteudo principal no meio, e a outra sidebar à direita O que eu já tentei foi o óbvio, de mudar onde tá right pra left, essas coisas, alterar os valores contidos....li algumas coisas como: http://www.cssnolanche.com.br/diferenca-en...solute-e-fixed/ http://maujor.com/tutorial/qqer-ordem-3colunas.php mas não deram certo...imagino que deve ser bem simples resolver isso Desde já muito obrigado ae Tentei colocar o código em spoiler ou em code mas deu erro na página, então segue abaixo: body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset, img {
border:0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style:normal;
font-weight:normal;
}
ol {
margin:0;
padding:0;
list-style-type:decimal;
}
ul {
margin:0;
padding:0;
list-style-type:none;
}
caption, th {
text-align:left;
}
h1, h2, h3, h4, h5, h6 {
font-size:100%;
}
/*----------------------------------------------- START -------------------------------------------------*/
body {
background:#a8d3f3 url(images/background.gif) repeat top left;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
}
/*----------------------------------------------- HEADER -------------------------------------------------*/
#ad728 {
width:980px;
height:95px;
background: url(images/ad728.png) no-repeat top left;
padding:5px 0px 0px 0px;
margin:20px auto 10px auto;
text-align:center;
}
#header {
width:980px;
height:75px;
padding:0px;
margin:0px auto 10px auto;
}
#header .logo {
position:relative;
width:390px;
height:75px;
padding:0px;
margin:0px;
overflow:hidden;
float:left;
text-indent:-9999px;
}
#header .logo span {
position:absolute;
width:390px;
height:75px;
left:0;
top:0;
margin:0;
background:url(images/logo.png) no-repeat;
}
#header .search {
float:left;
width:330px;
height:75px;
background: url(images/search.png) no-repeat top left;
margin:0px 0px 0px 5px;
}
#header .search .searchformtop {
font-family:Verdana, Arial;
font-size:20px;
font-weight:bold;
border:none;
background:none;
padding:4px;
color:#fff;
margin:20px 0px 0px 20px;
float:left;
width:212px;
}
#header .search input.gosearch {
width: 66px;
height: 32px;
background: url(images/searchon.png) no-repeat;
margin:20px 0px 0px 0px;
float:left;
}
#header .search input.gosearch:hover {
background: url(images/searchon.png) no-repeat 0 -32px;
margin:20px 0px 0px 0px;
}
#header .rss {
float:left;
width:245px;
height:65px;
background: url(images/rssback.png) no-repeat top left;
margin:0px 0px 0px 5px;
padding:10px 0px 0px 5px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#444352;
}
#header .rss p {
margin:0px 0px 0px 10px;
padding:0px;
clear:both;
}
#header .rss ul {
float:left;
list-style:none;
padding:0px;
margin:0px 0px 5px 0px;
width:240px;
clear:both;
}
#header .rss ul li {
float:left;
display:inline;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:14px;
color:#FFFFFF;
font-weight:bold;
padding:0px 0px 0px 15px;
background: url(images/rss.png) no-repeat top left;
letter-spacing:-1px;
margin:0px 0px 0px 10px;
}
#header .rss ul li a, #header .rss ul li a:visited {
text-decoration:none;
color:#FFFFFF;
}
#header .rss ul li a:hover {
text-decoration:none;
color:#444352
}
/*----------------------------------------------- CONTAINER -------------------------------------------------*/
#container {
width:980px;
overflow:hidden;
margin:0 auto;
}
.sIFR-flash {
visibility: visible !important;
}
.sIFR-replaced {
visibility: visible !important;
}
span.sIFR-alternate {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
display: block;
overflow: hidden;
margin: 0;
}
/*----------------------------------------------- SIDEBAR -------------------------------------------------*/
#sidebar {
width:330px;
margin:0 auto;
float:right;
padding:0px;
}
#sidebar .nav {
width:330px;
height:28px;
list-style:none;
margin:0px;
padding:0px;
}
#sidebar .nav li {
width:85px;
height:22px;
float:left;
display:inline;
background: url(images/nav.png) no-repeat top left;
margin:0px 0px 0px 1px;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
text-transform:uppercase;
color:#5fcefe;
text-align:center;
padding:6px 0px 0px 0px;
}
#sidebar .nav li a, #sidebar .nav li a:visited {
text-decoration:none;
color:#5fcefe;
}
#sidebar .nav li a:hover {
text-decoration:none;
color:#FFFFFF;
}
#sidebar .btop {
width:330px;
height:8px;
border:none;
background: url(images/sidecornertop.png) no-repeat top left;
margin:0px;
padding:0px;
}
#sidebar .bbot {
width:330px;
height:15px;
border:none;
background: url(images/sidecornerbot.png) no-repeat top left;
margin:0px;
padding:0px;
}
#sidebar .sidecontent {
width:300px;
overflow:hidden;
padding:2px 10px 10px 20px;
margin:0px;
background: url(images/sidecontent.png) repeat-y top center;
}
#sidebar .sidecontent h2 {
font-family:Geneva, Arial, Helvetica, sans-serif;
/* font-weight:bold; */
color:#FFFFFF;
font-size:22px;
padding:0px;
margin:5px 0px 0px 0px;
line-height:30px;
/* text-transform:lowercase; */
}
#sidebar a, #sidebar:visited {
text-decoration:none;
color:#FFFFFF;
}
#sidebar a:hover {
text-decoration:none;
color:#5fcefe;
}
#sidebar .sidecontent h2 span {
color:#fe5f5f
}
#sidebar .sidecontent ul {
list-style:none;
width:300px;
margin:0px;
padding:0px;
}
#sidebar .sidecontent ul li {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
padding:4px 0px 6px 0px;
margin:0px;
background: url(images/sideli.png) repeat-x left bottom;
color:#c7c5db;
display:block;
}
#sidebar .sidecontent ul li a, #sidebar .sidecontent ul li a:visited {
padding:0px 0px 0px 12px;
background: url(images/sidelia.gif) no-repeat top left;
text-decoration:none;
color:#FFFFFF;
}
#sidebar .sidecontent ul li a:hover {
text-decoration:none;
color:#5fcefe;
}
#sidebar2 {
float:right;
overflow:hidden;
width:145px;
padding:0px;
margin:10px 0px 0px 0px;
}
#sidebar2content {
overflow:hidden;
width:125px;
padding:0px 10px;
margin:0px;
background: url(images/side2back.png) repeat-y top left;
}
#sidebar2content h2 {
font-family:Geneva, Arial, Helvetica, sans-serif;
/* font-weight:bold; */
color:#444352;
font-size:18px;
padding:0px;
margin:0px 0px 0px 0px;
line-height:24px;
letter-spacing:-1px;
}
#sidebar2content img {
margin:2px 0px;
}
#sidebar2content ul {
width:125px;
list-style:none;
margin:0px 0px 5px 0px;
padding:0px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color:#75748d;
font-size:11px;
}
#sidebar2content ul li {
display:block;
background: url(images/side2li.gif) repeat-x bottom left;
padding:3px 0px 5px 0px;
}
#sidebar2content ul li a, #sidebar2content ul li a:visited {
text-decoration:none;
color:#75748d;
padding:0px 0px 0px 12px;
background: url(images/side2lia.gif) no-repeat top left;
}
#sidebar2content ul.archives li a, #sidebar2content ul.archives li a:visited {
text-decoration:none;
color:#75748d;
padding:0px 0px 0px 12px;
background: url(images/side2liachives.gif) no-repeat top left;
}
#sidebar2content ul.blogroll li a, #sidebar2content ul.blogroll li a:visited {
text-decoration:none;
color:#75748d;
padding:0px 0px 0px 12px;
background: url(images/side2liaroll.gif) no-repeat top left;
}
#sidebar2content ul.archives li a:hover {
text-decoration:none;
color:#3f3f4d;
padding:0px 0px 0px 14px;
}
#sidebar2content ul.blogroll li a:hover {
text-decoration:none;
color:#3f3f4d;
padding:0px 0px 0px 14px;
}
#sidebar2content ul li a:hover {
text-decoration:none;
color:#3f3f4d;
padding:0px 0px 0px 14px;
}
#sidebar2content ul ul {
margin:0px;
padding:0px;
list-style:none;
}
#sidebar2content ul ul li {
background:none;
padding:3px 0px 3px 0px;
}
#sidebar2content ul ul li a, #sidebar2content ul ul li a:visited {
text-decoration:none;
color:#75748d;
padding:0px 0px 0px 12px;
background: url(images/side2lichild.gif) no-repeat top left;
}
#sidebar2content ul ul li a:hover {
text-decoration:none;
color:#3f3f4d;
padding:0px 0px 0px 14px;
}
#sidebar2 .btop {
width:145px;
height:28px;
border:none;
background: url(images/side2top.png) no-repeat top left;
margin:0px;
padding:0px;
}
#sidebar2 .bbot {
width:145px;
height:10px;
border:none;
background: url(images/side2bot.png) no-repeat top left;
margin:0px;
padding:0px;
}
/*----------------------------------------------- CONTENT -------------------------------------------------*/
#content {
width:650px;
padding:0px;
margin:0px;
float:left;
overflow:hidden;
background:#fff url(images/contentback.png) no-repeat top center;
}
#content .conbot {
width:650px;
height:14px;
background: url(images/contentbot.png) no-repeat top left;
clear:both;
}
#posts {
float:left;
width:485px;
margin:10px 0px 0px 0px;
padding:0px 10px;
overflow:hidden;
}
#posts .post {
width:475px;
background: url(images/postb.jpg) no-repeat top left;
padding:5px;
margin:0px 0px 15px 0px;
}
#posts .post .info {
list-style:none;
margin:0px;
padding:0px;
width:475px;
clear:both;
}
#posts .post .info li {
display:inline;
float:left;
}
#posts .post .info li.left {
width:47px;
min-height:55px;
text-align:center;
background: url(images/date.png) no-repeat top left;
}
#posts .post .info li.left span {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:#4e4d5c;
font-weight:bold;
text-transform:lowercase;
clear:both;
padding:0px;
margin:0px;
}
#posts .post .info li.left h2 {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-weight:bold;
line-height:24px;
color:#d90019;
font-size: 24px;
padding:0px;
margin:5px auto 0px auto;
clear:both;
}
#posts .post .info li.right {
width:425px;
font-family:Geneva, Arial, Helvetica, sans-serif;
}
#posts .post .info li.right .details {
list-style:none;
width:420px;
padding:0px;
margin:5px;
font-size:11px;
clear:both;
color:#75748d;
letter-spacing:0px;
}
#posts .post .info li.right .details li {
display:inline;
float:left;
margin:0px;
margin:0px 10px 0px 0px;
height:16px;
}
#posts .post .info li.right .details li a, #posts .post .info li.right .details li a:visited {
text-decoration:none;
color:#444352;
}
#posts .post .info li.right .details li a:hover {
text-decoration:none;
color:#75748d
}
#posts .post .info li.right .details li.author {
background: url(images/male.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right .details li.author:hover {
background: url(images/maleh.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right .details li.category {
background: url(images/cat.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right .details li.category:hover {
background: url(images/cath.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right .details li.comments {
background: url(images/com.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right .details li.comments:hover {
background: url(images/comh.png) no-repeat top left;
padding:0px 0px 0px 18px;
}
#posts .post .info li.right h1 {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-weight:bold;
color:#444352;
font-size: 22px;
padding:0px;
letter-spacing:-1px;
line-height:20px;
margin:4px 0px 0px 5px;
clear:both;
}
#posts .post .info li.right h1 a, #posts .post .info li.right h1 a:visited {
text-decoration:none;
color:#444352;
}
#posts .post .info li.right h1 a:hover {
text-decoration:none;
color:#696980;
}
#posts .post .article {
clear:both;
padding:10px 0px 0px 0px;
color:#343440;
}
#posts .post .article a, #posts .post .article a:visited {
background: url(images/linkb.png) repeat-x bottom left;
text-decoration:none;
color:#444352;
}
#posts .post .article a:hover {
text-decoration:none;
color:#51b2db;
}
#posts .post .article p {
letter-spacing:0.1px;
word-spacing:1.5px;
font-size:13px;
line-height:16px;
margin:0px 0px 10px 0px
}
#posts .post .article img {
padding:2px;
margin:4px;
border:1px solid #f5f5ff;
}
#posts .post .article img.wp-smiley {
padding:0px;
margin:0px;
border:none;
margin:0px;
}
#posts .post .article strong {
font-weight:bold;
}
#posts .post .article h1, #posts .post .article h2, #posts .post .article h3 {
font-family:Geneva, Arial, Helvetica, sans-serif;
margin:4px 0px;
letter-spacing:-1px;
font-weight:lighter;
}
#posts .post .article h1 {
font-size:20px;
}
#posts .post .article h2 {
font-size:18px;
}
#posts .post .article h3 {
font-size:16px;
}
#posts .post .article em {
font-style:italic;
}
#posts .post .article .tags {
margin:10px 0px;
border:1px dashed #e7e5fd;
padding:5px 5px;
}
#posts .post .article .tags span {
font-style:italic;
font-weight:bold;
margin:0px 0px 0px 0px;
}
#posts .post .article ol {
list-style:decimal;
padding:10px 0px;
margin:5px 0px;
font-size:12px;
color:#5d5d73;
}
#posts .post .article ol li {
display:block;
padding:4px 0px 4px 0px;
margin:0px;
}
#posts .post .article ul {
list-style:none;
padding:10px;
margin:5px 0px;
font-size:12px;
color:#5d5d73;
}
#posts .post .article ul li {
display:block;
padding:4px 0px 4px 11px;
margin:0px;
background: url(images/articleli.gif) no-repeat top left;
}
#posts .post .article blockquote {
background: url(images/quote.gif) no-repeat top left;
margin:5px 0px;
padding:2px 0px 0px 24px;
min-height:88px;
color:#5d5d73;
}
#posts .post .article .readmore {
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
color:#444352;
margin:2px 10px 2px 0px;
float:right;
clear:both;
}
#posts .post .article .readmore a, #posts .post .article .readmore a:visited {
text-decoration:none;
color:#444352;
background:none;
}
#posts .post .article .readmore a:hover {
text-decoration:none;
color:#000;
background:none;
}
#ad468 {
text-align:center;
padding:5px 0px 0px 0px;
}
#navigation {
width:465px;
height:25px;
font-family:Geneva, Arial, Helvetica, sans-serif;
color:#343440;
padding:6px 10px 0px 10px;
margin-bottom:10px;
font-size:10px;
background: url(images/navigation.png) no-repeat top left;
}
#navigation .l {
float:left;
width:409px;
}
#navigation .r {
float:right;
width:56px;
}
#navigation .l a {
padding: 2px 5px 2px 6px;
border-right: 1px solid #dad8e5;
color:#343440;
text-decoration: none;
}
#navigation .l a:visited {
padding: 2px 5px 2px 6px;
border-right: 1px solid #dad8e5;
color:#343440;
text-decoration: none;
}
#navigation .l a:hover {
padding: 2px 5px 2px 6px;
text-decoration: none;
color:#DD1725
}
#navigation .l span {
padding: 2px 5px;
color:#343440;
}
#navigation .l .on {
padding: 2px 5px;
color:#343440;
border-right: 1px solid #dad8e5;
}
#navigation .r .art {
position:relative;
width:56px;
height:12px;
padding:0px;
margin:0px;
overflow:hidden;
text-indent:-9999px;
}
#navigation .r .art span {
position:absolute;
width:56px;
height:12px;
left:0;
top:0;
margin:0;
background:url(images/articles.gif) no-repeat top left;
}
/*----------------------------------------------- COMMENTS -------------------------------------------------*/
#comments h3 {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:20px;
margin:10px 0px 10px 5px;
font-weight:lighter;
color:#757193;
}
#listcomments {
width:485px;
list-style:none;
margin:0px;
padding:0px;
clear:both;
overflow:hidden;
}
#listcomments li {
display:block;
min-height:146px;
margin:0px 0px 5px 0px;
padding:0px 10px;
overflow:hidden;
background: url(images/commentb.jpg) no-repeat top left;
}
#listcomments li .gravatar {
width:85px;
height:44px;
float:right;
text-align:left;
padding:8px 0px 0px 5px;
}
#listcomments li h4 {
width:365px;
height:44px;
padding:8px 10px 0px 0px;
text-align:right;
}
#listcomments li h4 span {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:18px;
color:#757193;
}
#listcomments li h4 span a, #listcomments li h4 span a:visited {
text-decoration:none;
color:#444352;
}
#listcomments li h4 span a:hover {
text-decoration:none;
color:#51b2db;
}
#listcomments li h4 em {
font-size:10px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color:#757193;
}
#listcomments li h4 em a, #listcomments li h4 em a:visited {
text-decoration:none;
color:#444352;
}
#listcomments li h4 em a:hover {
text-decoration:none;
color:#51b2db;
}
#listcomments li .comtext {
margin:10px auto 0 auto;
padding:5px 0px;
background: url(images/comline.png) repeat-x top left;
color:#5F5F7C;
}
#listcomments li .comtext p {
margin:0px 0px 5px 0px;
}
#listcomments li .comtext a, #listcomments li .comtext a:visited {
background: url(images/linkb.png) repeat-x bottom left;
text-decoration:none;
color:#444352;
}
#listcomments li .comtext a:hover {
text-decoration:none;
color:#51b2db;
}
#listcomments li .comtext img {
padding:0px;
margin:0px;
border:0px;
}
#form {
width:465px;
padding:10px 10px 0px 10px;
margin:10px 0px 0px 0px;
overflow:hidden;
background:#e8e6fe url(images/formtop.png) no-repeat top left;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:12px;
color:#757193;
}
#form a, #form a:visited {
text-decoration:none;
color:#444352;
}
#form a:hover {
text-decoration:underline;
color:#51b2db;
}
#form small {
font-family:Geneva, Arial, Helvetica, sans-serif;
}
#form input {
font-size:13px;
}
#form textarea {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
}
#form input.submitcom {
width: 98px;
height: 30px;
background: url(images/submitcom.png) no-repeat;
margin:0px;
}
#form input.submitcom:hover {
background: url(images/submitcom.png) no-repeat 0 -30px;
margin:0px;
}
#comments .formbot {
width:485px;
height:15px;
padding:0px;
margin:0px;
background: url(images/formbot.png) no-repeat top left;
}
/*----------------------------------------------- FOOTER -------------------------------------------------*/
#footer {
width:980px;
overflow:hidden;
padding:0px;
margin:0 auto;
}
#footer .con {
float:left;
width:650px;
padding:0px;
}
#footer .credits {
width:630px;
height:55px;
background: url(images/footer.png) no-repeat top left;
margin:10px 0px 30px 0px;
padding:10px;
color:#edebf5;
}
#footer .credits .cred {
float:right;
height:50px;
width:154px;
padding:5px 0px 0px 10px;
text-align:center;
background: url(images/credb.gif) repeat-y top left;
}
#footer .credits .cred span {
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
color:#f5f3fe;
text-transform:uppercase;
}
#footer .credits .cred a, #footer .credits .cred a:visited {
text-decoration:none;
color:#f5f3fe
}
#footer .credits .cred a:hover {
text-decoration:none;
color:#f5f3fe
}
#footer .credits .cred .acosmin {
position:relative;
width:154px;
height:24px;
padding:0px;
margin:0px;
overflow:hidden;
float:left;
text-indent:-9999px;
}
#footer .credits .cred .acosmin span {
position:absolute;
width:154px;
height:24px;
left:0;
top:0;
margin:0;
background:url(images/acosmin-credits.png) no-repeat top left;
;
}
#footer .credits .owner {
width:466px;
height:55px;
overflow:hidden;
color:#FFFFFF;
float:left;
}
#footer .credits .owner ul {
list-style:none;
padding:0px;
margin:2px 0px 5px 0px;
width:466px;
float:left;
clear:both;
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
text-transform:uppercase;
}
#footer .credits .owner ul li {
display:inline;
float:left;
padding:3px 10px;
margin:0px;
background: url(images/credb.gif) repeat-y top left;
}
#footer .credits .owner a, #footer .credits .owner a:visited {
text-decoration:none;
color:#fff;
}
#footer .credits .owner a:hover {
text-decoration:none;
color:#e3e1eb;
}
#footer .credits .owner span {
color:#e3e1eb;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:14px;
margin:0px 0px 0px 10px;
font-weight:bold;
clear:both;
}