hide the value of a submit button using CSS

S

spaceoutlet

Hello,

Does anyone know how to hide the value of a submit button using CSS?
It would be usefull in order to make a website more accessible. I
googled around but only found a solution using javascipt. Thank you.

Alex
 
J

Jukka K. Korpela

Scripsit (e-mail address removed):
Does anyone know how to hide the value of a submit button using CSS?

display: none

Well, the entire button is hidden then, but you didn't specify any
limitations.

You could also try setting font-size to 1px (or 0, but then browsers
might ignore it), though this cannot "work" on non-visual browsers or on
browsers that have a minimum font size setting. Or you might set the
color same as background-color, or set the width to 0 with overflow:
hidden.
It would be usefull in order to make a website more accessible.

Now that was a surprise. Are you sure you didn't mean "inaccessible"?
I googled around but only found a solution using javascipt.

My trollometer makes some noises now.

Unless you're just trying to make fun of us, please tell us what the
real problem is. I mean the assumed problem that you're trying to solve
with the odd goal of making a submit button appear without any text.
 
D

dorayme

"Jukka K. Korpela said:
Scripsit (e-mail address removed):


display: none

Well, the entire button is hidden then, but you didn't specify any
limitations.

You mean like when someone asks how to get rid of a mouse in a
cupboard and is advised to get rid of the cupboard because they
did not rule anything out?
 
J

Jukka K. Korpela

Scripsit dorayme:
You mean like when someone asks how to get rid of a mouse in a
cupboard and is advised to get rid of the cupboard because they
did not rule anything out?

Surely that's one solution, if one is willing to get rid of the mouse at
any cost.
 
S

Sean

Hello,

Does anyone know how to hide the value of a submit button using CSS? It
would be usefull in order to make a website more accessible. I googled
around but only found a solution using javascipt. Thank you.

Alex

When you say you want to "hide" the values of the form being submitted,
what exactly do you mean? If it's showing up in the URL, use POST
instead of GET.

Please don't crosspost.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top