ianez
Not too shy to talk
Posted on: 2010/11/10 18:58
#1
@aitor
for hiding left/right blocks simply look at the code in the three style sheets named style-noCol.css, style-noLcol.css, style-noRcol.css.. they show you how to put left/right col or both width to zero, by simply changing values of four classes
In the head of theme.html you have a smarty filter which import the right css as setted up in blocks admin.
Size of columns depends from two main values:
*Left column > 'left' px value in #colmid
*Right column > 'margin-left' negative px value in #colright, but pay attention that this value is the total of left col width + right col width, so if you want a left column of 120px and a right column of 200px here is the code:
all the other values in #col1pad, #col2, #col3 should change accordingly to the values above.
Remember that #col1pad it the div that gives you the padding (distance) of the center content form side bar.
Hope this help you as a start
Ian
ps the real crashy thing could be having the possibility to use something like smarty variables in the css.. so setting up values could be really automatic..
Support for Cssified xoops default theme
2010/11/10 18:58 In answer to some requests I open this thread about the css version of the default Xoops theme. All the info at: https://xoops.org/modules/news/article.php?storyid=5679@aitor
for hiding left/right blocks simply look at the code in the three style sheets named style-noCol.css, style-noLcol.css, style-noRcol.css.. they show you how to put left/right col or both width to zero, by simply changing values of four classes

In the head of theme.html you have a smarty filter which import the right css as setted up in blocks admin.
Size of columns depends from two main values:
*Left column > 'left' px value in #colmid
*Right column > 'margin-left' negative px value in #colright, but pay attention that this value is the total of left col width + right col width, so if you want a left column of 120px and a right column of 200px here is the code:
#colmid {
left:120px;
}
#colright {
margin-left:-320px /*120px+200px*/
}
all the other values in #col1pad, #col2, #col3 should change accordingly to the values above.
Remember that #col1pad it the div that gives you the padding (distance) of the center content form side bar.
Hope this help you as a start
Ian
ps the real crashy thing could be having the possibility to use something like smarty variables in the css.. so setting up values could be really automatic..
Xoops Italian Support Staff Member || My playground for Xoops