473,804 Members | 3,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS and Submit Button problem (across browsers)

Sorry, I posted this in ...authoring.ht ml newgroup, and only just found this
newsgroup. Sorry for the double post:

Morning,

I just added the CSS style below* to my CSS page and then used the class on
type="submit" whereever I use a Submit button for a form. Just wanted to
make the buttons stick out a little more is all.

Well it turns out that when I do this, both FireFox and Netscape show the
button as if it were an image file. In other words the "simulated push"
don't work. Although everything works great in IE and Opera.

As I said, all I wanted to do was add some spice to the buttons, but if this
won't work across browsers I can't! Looks horrible.
So I guess my quesiton is, is this the case, or perhaps did I make a mistake
in my code that was minor enough that only some browsers picked it up?

Thanks,

Daniel
* here is the how I reference the class:
<input class="my_butto n" type="submit" value=" Search ">

* here is the class definition in my CSS Style Sheet:
input.my_button
{
#background:#DD DDDD;
font-weight: 600;
font-variant: small-caps;
padding: 1px;
border: 2px outset #7777CC;
}

Feb 6 '06 #1
4 2200
Daniel Kaplan schrieb:
Sorry, I posted this in ...authoring.ht ml newgroup, and only just found this
newsgroup. Sorry for the double post:

Morning,

I just added the CSS style below* to my CSS page and then used the class on
type="submit" whereever I use a Submit button for a form. Just wanted to
make the buttons stick out a little more is all.

Well it turns out that when I do this, both FireFox and Netscape show the
button as if it were an image file. In other words the "simulated push"
don't work. Although everything works great in IE and Opera.


AFAIK, input elements are not necessarily styleable. This is discussed
to some length on several websites -> google might help.
Feb 6 '06 #2
Daniel Kaplan schrieb:
Sorry, I posted this in ...authoring.ht ml newgroup, and only just found this
newsgroup. Sorry for the double post:

Morning,

I just added the CSS style below* to my CSS page and then used the class on
type="submit" whereever I use a Submit button for a form. Just wanted to
make the buttons stick out a little more is all.

Well it turns out that when I do this, both FireFox and Netscape show the
button as if it were an image file. In other words the "simulated push"
don't work. Although everything works great in IE and Opera.

As I said, all I wanted to do was add some spice to the buttons, but if this
won't work across browsers I can't! Looks horrible.
So I guess my quesiton is, is this the case, or perhaps did I make a mistake
in my code that was minor enough that only some browsers picked it up?

Thanks,

Daniel
* here is the how I reference the class:
<input class="my_butto n" type="submit" value=" Search ">

* here is the class definition in my CSS Style Sheet:
input.my_button
{
#background:#DD DDDD;
font-weight: 600;
font-variant: small-caps;
padding: 1px;
border: 2px outset #7777CC;
}


Hi,

you can use

input.my_button :active
{
border: 2px inset #7777CC;
}

to get the "push" feeling back.

However I cannot try it on IE (Linux here).
Klaus
--
Linux User #54760
Fingerprint: 890bdbdeaa3ddab 07bac87a3115d55 3a
Feb 6 '06 #3
"Klaus Krtschil" <kl****@gmx.d e> wrote in message
news:44******** ****@individual .net...
you can use

input.my_button :active
{
border: 2px inset #7777CC;
}

to get the "push" feeling back.

However I cannot try it on IE (Linux here).


Same results...Anoth er person wrote that as far as he knew "...input
elements are not necessarily styleable."

Although I am trying to find an official webpage that says that.
Feb 6 '06 #4
Daniel Kaplan wrote:
"Klaus Krtschil" <kl****@gmx.d e> wrote in message
news:44******** ****@individual .net...
input.my_button :active
{
border: 2px inset #7777CC;
}
Same results...


This won't have any effect in IE because it has very limited support for
pseudo classes. It only supports :hover and :active on <a> elements.
Another person wrote that as far as he knew "...input
elements are not necessarily styleable."

Although I am trying to find an official webpage that says that.


It's not likely you'll find anything "official" about it. Styling form
elements is a touchy subject. It's often argued that form elements
belong to the O/S, not the browser, and shouldn't be stylable at all.
Hence some browsers support very limited styling, if any.

So don't bother getting all worked up if your style rules aren't
applied. You have no control over what browser makers implement, or not.
Just make sure that the form is usable with or without styling, then
move on to something more important.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Feb 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6589
by: Nicolas Keller | last post by:
Hi! I'm used to have Mozilla for testing my PHP sites when I'm coding. The site's nearly finished, now I've made a test with the Internet Exlporer... guess what... failed. The problem: I'm using a form that submit's (POST) its data via three different image buttons (depending on which button you click, something different should happen):
4
7797
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM: The form won't submit if the link is clicked, but will submit if the SUBMIT button is clicked. I need to call a function to change the form's action according to user's input before it is submitted.
3
4345
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via three > different image buttons (depending on which button you click, > something different should happen): > > <form action="id.php" method="post" name="form2">
0
431
by: Daniel Kaplan | last post by:
Morning, I just added the CSS style below* to my CSS page and then used the class on type="submit" whereever I use a Submit button for a form. Just wanted to make the buttons stick out a little more is all. Well it turns out that when I do this, both FireFox and Netscape show the button as if it were an image file. In other words the "simulated push" don't work. Although everything works great in IE and Opera.
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.