Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
put Submit as a Image
Shyam Hai
Ranch Hand
Posts: 68
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to put an image as a submit button instead of using the button that is given.
Now i am try like this
CSS:
-----
.submit { width: 108px; height: 21px; padding: 20px 0 0; margin: 0; border: 0; background: transparent url('../images/login.jpg') no-repeat center top; overflow: hidden; cursor: pointer; /* hand-shaped cursor */ cursor: hand; /* for IE 5.x */ }
JSP
:
----
<html:submit value="submit" styleClass="submit"/>
But it came normal button only. not image.
Please give the solution.
Joe Ess
Bartender
Posts: 9626
16
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
background: transparent url('../images/login.jpg') no-repeat center top;
Is the image where you say it is? If I recall correctly, the path for the image is considered from where the style sheet is located, not the JSP.
Try it without the "transparent"
background: url('../images/submit.jpg') no-repeat top left;
is an example from my code
[
How To Ask Questions On JavaRanch
]
Shyam Hai
Ranch Hand
Posts: 68
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for your reply.
But still i'm not get correct output.
i'm not getting image, i got only normal button.
<html:submit value="submit" styleClass="submit"/>
please check this code also.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
background image in button
Hidden button is shown in FireFox
Image in place of buttons
what affects addActionListener(this)?
How to change cusor and calling..........
More...