Support Forums


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

 
LinkBack Thread Tools Display Modes
Old 09-06-2008, 06:53 PM   #1
Junior Member
 
Join Date: Aug 2008
Posts: 24
Rep Power: 5
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
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,676
Rep Power: 48
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
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as 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: 5
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

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 09:43 PM
Removing browse category table from main page. gabs v3.0 Questions & Support 1 06-24-2006 12:37 PM
3.0.xx upgrading to 3.1... is this normal? Mikael v3.1 Questions & Support 4 05-23-2006 04:36 PM
Photo table width newone v3.0 Questions & Support 0 05-05-2006 08:24 PM
Main Table width? PonyTrader v3.0 Questions & Support 2 04-19-2006 12:48 PM


All times are GMT -4. The time now is 08:14 PM.


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