Support Forums

Form Field Widths

This is a discussion on Form Field Widths within the Technical Support forums, part of the Technical Support Forums category; Hi, Im in the process of putting together a new template and want to set the width of the search ...


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 02-05-2009, 02:35 PM   #1
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 16
nagrap2 is on a distinguished road
Default Form Field Widths

Hi,

Im in the process of putting together a new template and want to set the width of the search text field a certain width.

Please can you let me know how to set the width of the search text field?

I have tried the following but it doesn't seem to work for outputting the search form:

<tr>
<td>{$smarty.const.LANG_SEARCH_TEXT}{$smarty.const .LANG_COLON}</td>
<td><input name="searchtext" type="text" id="searchtext" SIZE="8" /></td>
</tr>

Thanks in advance...
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline  
Old 02-05-2009, 02:54 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can try this in the style sheet:
#searchtext {
width: 80%;
}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 02-05-2009, 02:59 PM   #3
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,426
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

XHTML syntax does NOT allow UPPER CASE for elements or parameters.

-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  
Old 02-05-2009, 03:00 PM   #4
Customer
 
Join Date: Aug 2008
Posts: 80
Rep Power: 16
nagrap2 is on a distinguished road
Default

Thanks Eric, so currently, how does it determine how wide to output the text boxes? Is it based upon the size of the field in the database? Or is there some other crtieria it uses?
__________________
Many Thanks,

Nagrap2

Developer Version 4.1
nagrap2 is offline  
Old 02-05-2009, 03:16 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by nagrap2 View Post
Thanks Eric, so currently, how does it determine how wide to output the text boxes? Is it based upon the size of the field in the database? Or is there some other crtieria it uses?
If you see a smarty constant, its defined in the language file.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change format in "date field" extra field topbidz Technical Support 2 05-01-2008 08:38 PM


All times are GMT -4. The time now is 06:19 PM.


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