This is a discussion on Control width of table columns in category table within the HTML, CSS, and Design Help forums, part of the General category; I have edited the categories.php file under includes/classes/kernel so I can show more subcategories on the home page under each ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have edited the categories.php file under includes/classes/kernel so I can show more subcategories on the home page under each category.
I have my number of categories for home page set to 2. Because of the increased subcategories, it makes on column wider than the other. The subcategories make it stretch. So, since one of my categories has 6 subcategories and the category below it has two, the right column, where the larger number of subcategories are, is much wider. I'd prefer it if I could have the subcategories wrap tightly under the category, say two or three per line rather than be so wide. Where/how/can I change this so that the text wraps and the columns are of equal size? I've tried various things but isn't working. I probably don't know which file to alter. Thanks
|
|
#2
|
||||
|
||||
|
I believe you would want to edit the browse.tpl file. Try adding width="50%" to both of the <td> declaration. I haven't tried or tested this.
Around line 17: PHP Code:
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8 Templates for sale | 68 Classifieds Customizations Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
|
#3
|
|||
|
|||
|
Thanks Mike.
No, that's doesn't have any effect on it. I added this to the css: .main td { width: 50%; } That works. I tried this yesterday and must have typed something wrong or it was just too late in the day!
Last edited by domino; 09-07-2008 at 09:39 AM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Main Category Table Width | zavala77 | HTML, CSS, and Design Help | 2 | 07-10-2008 10:43 PM |
| Removing browse category table from main page. | gabs | v3.0 Questions & Support | 1 | 06-24-2006 01:37 PM |
| 3.0.xx upgrading to 3.1... is this normal? | Mikael | v3.1 Questions & Support | 4 | 05-23-2006 05:36 PM |
| Photo table width | newone | v3.0 Questions & Support | 0 | 05-05-2006 09:24 PM |
| Main Table width? | PonyTrader | v3.0 Questions & Support | 2 | 04-19-2006 01:48 PM |