68 Classifieds Forums

Control width of table columns in category table

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 ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-06-2008, 07:53 PM
Junior Member
 
Join Date: Aug 2008
Posts: 24
Rep Power: 2
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
Reply With Quote
  #2  
Old 09-06-2008, 08:11 PM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 871
Rep Power: 28
Mike-N-Tosh is just really niceMike-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
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
Reply With Quote
  #3  
Old 09-07-2008, 09:37 AM
Junior Member
 
Join Date: Aug 2008
Posts: 24
Rep Power: 2
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 09:39 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 02:03 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22