how to change table dimensions?

Started by fairyberry, June 16, 2011, 09:04:40 PM

Previous topic - Next topic

fairyberry

How can I change table dimensions (both rows and column height/width etc) for the index with all the boards, and for the page that has all the threads?
I looked everywhere and can't find which file the table dimensions are set in.

All Colours Sam

which SMF version are you using?

on 2.0  the Board Index table is controlled by this on your css/index.css:


table.table_list {
width: 100%;
}


which means  the table will have the same width as your theme.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

fairyberry

that's just the width though, what about all the other dimensions?

All Colours Sam

a table has only two dimensions, width and height and the height depends on how many rows your table has.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

fairyberry


All Colours Sam

you will have to set some css classes to modify only  the <tr>   that you want

for example, most of the rows  has a class  <tr class="windowbg2">  or  <tr class="windowbg">   you will need to modify your template to add your custom class  <tr class="windowbg2 cusheight ">



and then  set that class on your css/index.css file:


.cusheight{

height: 100px;
}
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: