Support Forums

Control width of table columns in category table

This is a discussion on Control width of table columns in category table within the Templates, 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 ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 09-06-2008, 06:53 PM   #1
Junior Member
 
Join Date: Aug 2008
Posts: 24
Rep Power: 14
domino is on a distinguished road
Default Control width of table columns in category table

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
domino is offline   Reply With Quote
Old 09-06-2008, 07:11 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,337
Rep Power: 70
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

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:
    <td valign="top" width="50%"// added width
    
{if $data[td]<>""
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 09-07-2008, 08:37 AM   #3
Junior Member
 
Join Date: Aug 2008
Posts: 24
Rep Power: 14
domino is on a distinguished road
Default

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 08:39 AM.
domino is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Main Category Table Width zavala77 Templates, HTML, CSS, and Design Help 2 07-10-2008 09:43 PM


All times are GMT -4. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0