Home › Forum › Problemi Vari con WP › Riuscire a modificare l'ampiezza della sidebar
-
AutorePost
-
-
10 Maggio 2012 alle 8:34 #21612MarchintoshPartecipante
Salve, volevo allargare leggermente la sidebar a destra per farci entrare qualcosa che leggermente sfora per un 10x. Ho provato a modificare diversi width senza ottenere il risultato sperato.
Allora in style.css ho questa porzione di codice:
.sidebar{
position: relative;
width:270px;
float:left;
padding:40px;
left:-1px;
min-height:150px;
}
.fullwidth .sidebar{
display:none;
}
/*column widths for fullwidth pages and reduced width pages*/
#top .wrapper .center .last{
margin-right:0px;
}
/*Reduced width: eg pages with sidebars*/
.one_fourth{overflow:hidden; float:left; position: relative; margin-right:40px; width:95px;}
.one_third{overflow:hidden; float:left; position: relative; margin-right:40px; width:140px; }
.one_half{overflow:hidden; float:left; position: relative; margin-right:40px; width:230px; }
.three_fourth{overflow:hidden; float:left; position: relative; margin-right:40px; width:365px; }
.two_third{overflow:hidden; float:left; position: relative; margin-right:40px; width:320px; }
.footerColumn{overflow:hidden; float:left; position: relative; margin-right:40px; width:182px; font-size:11px;}
/*Fullwidth*/
.fullwidth .one_fourth{width:182px;}
.fullwidth .one_third{width:256px;}
.fullwidth .one_half{width: 405px;}
.fullwidth .three_fourth{width:628px;}
.fullwidth .two_third{width:554px;}Secondo voi qual è più opportuno cambiare?
-
10 Maggio 2012 alle 10:56 #95436wordpress-specPartecipante
in teoria dovresti aumentare il width: 270px; di .sidebar ma in teoria, forse con il link del sito e vedendo il codice con l’inspector element si riesce meglio
-
10 Maggio 2012 alle 13:36 #95443MarchintoshPartecipante
Si ci ho provato ma va a finire tutto al footer, il link è questo: http://goo.gl/Of6yL
-
10 Maggio 2012 alle 13:45 #95444wordpress-specPartecipante
mmm allora devi stringere il div class=”content”, perché cosଠfacendo non entrano i due blocchi dentro il div class=”center”
-
10 Maggio 2012 alle 15:26 #95447MarchintoshPartecipante
Ho provato a modificarea:
.content{
position: relative;
float:left;
width:580px; in 600
z-index: 3;
}
e
.sidebar{
position: relative;
width:270px; in 300
float:left;
padding:40px;
left:-1px;
min-height:150px;
}
Ma comunque va sotto nel footer appena modifico pure il div di sidebar.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.