|
|
#1 |
|
Junior Member
Join Date: May 2009
Posts: 24
Rep Power: 1 ![]() |
How do you get the CSS and the code in layout.tpl to display an image for the submit button for the top search field? I am trying to get it so that there is no value set for the image but the code keeps inserting "Search" over the top of the image. If I remove the value for the image, "Submit Query" shows up over the image. Any help would be appreciated. Here is the site I am working on: Industrialpost.com.
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2008
Posts: 946
Rep Power: 24 ![]() |
In layout use this for the button. The value defined for smarty.const.LANG_SEARCH_BUTTON is the text on the button, so if you define it to nothing, nothing will show on the button.
<input class="searchbutton" type="submit" name="Submit" value="{$smarty.const.LANG_SEARCH_BUTTON}" /> Then in the css something like this (style as you want) input.search { width: 279px; border: none; background: #fff url(../images/input.gif) no-repeat; padding: 6px 10px; color: #1E67A8; font-weight: bold; } input.button { padding: 3px; } input.searchbutton {background-color: #7B9E52;} Then put the desired image input.gif in your images directory. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2009
Posts: 24
Rep Power: 1 ![]() |
Thanks for the input. However, this doesn't address the problem. I still have text over the image. How do I get rid of the text "Search" over the image? Like I said, if I don't declare any value, the text changes to "Submit Query" which should not show up. Anyone else have a clue about this? Where is this text being defined to show up regardless of any value being defined??? Please help. Industrialpost.com
|
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,950
Rep Power: 115 ![]() |
Try this. In the input.searchbutton {style.css (line 44) add:
text-indent:-1000px;
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2009
Posts: 24
Rep Power: 1 ![]() |
Thanks! That worked. I am assuming that this is relocating the text off screen. However, I added a few more zeros just to make sure that those users that have massive screens and high resolution set won't see an orphan "Search" hang out on the page somewhere. I was thinking about doing this, but wasn't sure if negative numerical values would work. Thanks again! Sweet!
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,486
Rep Power: 43 ![]() ![]() |
Sometimes thinking negatively has a very positive affect.
__________________
Mike-N-Tosh IndianaPC.org - A community website (v3.1.10 Developer - heavily modified) Sandbox (v3.1.10, v4.0.9, 4.1.3) Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs for sale Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Mar 2008
Posts: 946
Rep Power: 24 ![]() |
Try
input type=image name="search" src="thepathway/image.gif" instead of "type=submit". ++++ |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2009
Posts: 24
Rep Power: 1 ![]() |
Ok, I spoke too soon. The solution worked great for Firefox. IE is a different story. Can anyone shed some light on this? I know, I know... IE is so behind the times! Industrialpost.com
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jan 2007
Posts: 353
Rep Power: 18 ![]() |
I am using the default template and whenever I want to change a text link to a button I include the following in the anchor;
Code:
class="bluebtn" or class="greenbtn" Code:
/* misc */
.buttons { text-align: right; padding: 4px 3px 0 0; }
.left_articles .buttons { float: right; height: 20px; }
.bluebtn { background: url(../images/bluebtn.gif) no-repeat; width: 100px; padding: 1px 16px 5px 16px; color: #fff; font-weight: lighter; text-decoration: none; }
.greenbtn { background: url(../images/greenbtn.gif) no-repeat; padding: 1px 17px 5px 16px; color: #fff; font-weight: lighter; text-decoration: none; }
.bluebtn:hover, .greenbtn:hover { background: url(../images/hoverbtn.gif) no-repeat; color: #fff; font-weight: lighter; }
Good luck,
__________________
M Michael V4.1.3 Developer - 3 Column Default Template "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
|
|
|
|
#10 |
|
Moderator
Join Date: Mar 2008
Posts: 946
Rep Power: 24 ![]() |
Which version of I.E.? You may have to use some conditional css to cover I.E. around your button. Search the forum as there are several threads on that. I thnik what Mike says should work though.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modify 68 classifieds so users can submit trade offers | naidu01 | v4 Questions & Support | 2 | 01-18-2009 08:13 AM |
| Back Button for modify listing images | bowers01 | Feature Requests | 0 | 10-28-2008 04:32 AM |
| <button> as Submit button | bowers01 | HTML, CSS, and Design Help | 1 | 09-27-2008 05:21 AM |
| Modify Button ? | VikingBEAR | v4 Questions & Support | 1 | 05-10-2008 11:57 PM |
| Submit button appearance | free2take | v3.1 Questions & Support | 4 | 03-13-2007 06:02 PM |