LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2005, 01:41 AM   #1
pranith
Member
 
Registered: Sep 2004
Location: Hyd,India
Posts: 83

Rep: Reputation: 15
Can we change the submit button look using css


hi,
I am writing a web page and In my web page the submit button is the only ugly thing can we change that button to something else using css or smthing else if yes plz tell me how thanks
bye
pranith
 
Old 07-08-2005, 02:13 AM   #2
pranith
Member
 
Registered: Sep 2004
Location: Hyd,India
Posts: 83

Original Poster
Rep: Reputation: 15
Ok I got one answer which is satisfactory using html itself using this tag
<input type="image" border="0" name="imageField" src="1_submit.gif" title="Click to login" />
thank neway
bye
 
Old 07-08-2005, 03:54 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If you want to add an icon to a default submit button with css,
there is a solution but it seems that it works only on mozilla :

PHP Code:
<style>
.
icon {
    
backgroundtransparent url('/path/to/icon.png'no-repeat 3px center;
    
padding-left18px;
}
</
style>
<
input type="submit" class="icon" value="Click to login" /> 
(good with a 16x16 icon, else change the padding-left)
On other browsers, the style is ignored
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change menu button borru Linux - Newbie 3 06-06-2005 07:44 PM
javascript: change value of text field and submit codec Programming 3 06-06-2005 08:08 AM
Does anyone know how to change the .css on a website that doesn't like nice? randyriver10 General 0 12-26-2004 08:28 AM
Change K Button? sumguy231 Linux - Newbie 5 07-10-2004 04:31 PM
change scrollbar style with CSS nephilim Programming 4 10-14-2003 01:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration