Support Forums

<button> as Submit button

This is a discussion on <button> as Submit button within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi, I am using this code <button type="reset" style="border:none;background:transparent"><img src="{$smarty.const.URLS}/templates/{$smarty.const.MAIN_TEMPLATE}/images/resetbtn.png"></button> but because it is actually a button when the background:transparent ...


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

Reply
 
Thread Tools Display Modes
Old 09-27-2008, 05:04 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default <button> change width

Hi,
I am using this code
Quote:
<button type="reset" style="border:none;background:transparent"><img src="{$smarty.const.URLS}/templates/{$smarty.const.MAIN_TEMPLATE}/images/resetbtn.png"></button>
but because it is actually a button when the background:transparent is taken away it looks like http://everythingsfree.org/image//im...8217button.jpg
So even when its set to background:transparent the button is hidden but it still is wider than the image and is clickable. How can i make it so the actual button is the width of the image? I have tried using <button width="116" type="reset" style="border:none;background:transparent"> but it does not change anything.
Any ideas?
Cheers
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template

Last edited by bowers01; 09-27-2008 at 05:18 AM.
bowers01 is offline   Reply With Quote
Old 09-27-2008, 05:21 AM   #2
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

never mind just worked it out, used <button type="submit" value="submit" style="border:none;background:transparent;width:11 6px">
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
add a navigation button ericp999 Technical Support 7 07-07-2008 07:47 AM
USER ADMIN Problems & SKP BUTTON megapix Technical Support 3 03-12-2008 01:37 PM


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


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