Support Forums

Adjust column width

This is a discussion on Adjust column width within the Technical Support forums, part of the Technical Support Forums category; While I thought this would be a simple task to do, I'm finding it troublesome to find the correct location ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 03-24-2008, 04:58 PM   #1
Junior Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 9
mhmartin is on a distinguished road
Default Adjust column width

While I thought this would be a simple task to do, I'm finding it troublesome to find the correct location to define the width settings of the 2 primary columns in the viewlisting.tpl file. I would like column 1 (with the titles) to be wider. Any suggestions as to where I can add the code?

I tried inserting it in the following location with no success (and yes, it is set to display the seller):

Code:
<tr> 
<td width="35"><strong>{$smarty.const.LANG_SELLER}:</strong></td>
<td>{if $preview!="Y"}<a href="viewmember.php?member={$owner}">{$username}</a>
{else}{$username}{/if}</td>
Would I have to insert the width into every row to get this to function properly? I've only been setting the width of one row in hopes that it would cause the entire column to adjust.

Thanks for any suggestions.

Matt
__________________
____________________
68 Classifieds v4.1.6 Developer
Meteorite Treasures
mhmartin is offline  
Old 03-24-2008, 05:12 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,750
Rep Power: 52
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Your in the right file and the right code, but 35 pixels is very narrow. It looks like the table cell IS 35 when I look at a listing on your site. Just increase that to maybe 100?

-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  
Old 03-24-2008, 05:52 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,318
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

Quote:
Would I have to insert the width into every row to get this to function properly? I've only been setting the width of one row in hopes that it would cause the entire column to adjust.
You should only have to do the width in one column and it will affect the rest.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is online now  
Old 03-24-2008, 06:53 PM   #4
Junior Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 9
mhmartin is on a distinguished road
Default

Thank you both for your prompt response. Unfortunately changing the value to 100 did not change it one bit. I viewed the source of the page to make sure it reflected the change and it did...but the change does not alter the appearance as it should. I also tried switching it to another line...no difference. I took this snippet from the view source:

Code:
<table width="100%" border="0" cellpadding="0" cellspacing="3" class="norm">
<tr> 
<td width="100"><strong>Phone:</strong></td>
<td>808-293-1447</td>
			</tr>
Any other suggestions?

Matt
__________________
____________________
68 Classifieds v4.1.6 Developer
Meteorite Treasures
mhmartin is offline  
Old 03-24-2008, 09:05 PM   #5
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,750
Rep Power: 52
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Maybe I'm confused, but I went back to your site and the column width is now larger. In fact it's about 200 pixels wide.

Perhaps you sorted it out after your last post.

-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  
Old 03-24-2008, 11:14 PM   #6
Junior Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 9
mhmartin is on a distinguished road
Default

Apparently I needed to empty my browser's cache...Refresh wasn't cutting it. Now it appears correct.

Thanks for your help Mike-N-Tosh & Suzkaw!

Matt
__________________
____________________
68 Classifieds v4.1.6 Developer
Meteorite Treasures
mhmartin is offline  
Old 03-25-2008, 01:19 PM   #7
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 45
Maffo is just really nice Maffo is just really nice
Default

You should always use a unit measure such as 100px or 100%, not 100. You may have browser conflicts with that.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 03-25-2008, 10:50 PM   #8
Junior Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 9
mhmartin is on a distinguished road
Default

Thanks for the recommendation Maffo, I'll fix that...good tip to know.

Matt
__________________
____________________
68 Classifieds v4.1.6 Developer
Meteorite Treasures
mhmartin is offline  
Old 03-25-2008, 11:21 PM   #9
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,750
Rep Power: 52
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Maffo
You should always use a unit measure such as 100px or 100%, not 100. You may have browser conflicts with that.
Actually, that is NOT correct. According to the w3 specification for length (which this is) is defined as pixels or percentage. Only the % needs to be defined in a length specification, because pixels is default. If no length is specified in any HTML element, then the length is calculated in pixels by adding all of the parts of the element (e.g. margin, border, padding, content).

The only time that px is required is if it is used to define a font size, which is not a length specification. This is because the default for a font is em (The user defined browser preference for font size) in HTML.

I'm not trying to start an argument, but standards should be followed and HTML standards are set by the w3.

-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  
Old 03-26-2008, 12:02 AM   #10
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 45
Maffo is just really nice Maffo is just really nice
Default

Your right Mike, I think I might have inherited this from CSS and not HTML. I always use the
PHP Code:
style="width: 200px; height: 50px;" 
tag when I cant have the values in my external stylesheet, just the same I always use PX in my stylesheets.
I only use
PHP Code:
height="100px"  width ="50px" 
for images. And after just reading up , it seems you are correct and can drop the px from the img tag.

CSS Dimensions
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors on Install barrysmith v3.1 Questions & Support 16 10-10-2007 02:10 PM
Making a Left Hand Column goose Templates, HTML, CSS, and Design Help 1 09-26-2007 06:49 PM
Installation Error Maffo v3.1 Questions & Support 7 06-17-2007 12:34 PM


All times are GMT -4. The time now is 11:05 AM.


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