NameSilo

<input type=button, <input type=text (css)

SpaceshipSpaceship
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Watch

adam_uk

Established Member
Impact
20
hey guys this may seem like a bit of a dumb question but id like to know this is possible, im pretty sure it is i just cant think of it

you know with links you have a then a:hover, then a:visited i need to do something like that but with forms

i can do a style sheet link this

input { font-family: arial, etc etc etc }

but that applys to every <input on the page id to be able to do something like this

input:submit {font-family: tahoma; size:3000000px; etc etc etc }

so then it only applys to the submit buttons?

i can do it with class="submitbutton" but id like to do it the other way if poss

anyone know what im talking about?

seems like a really dumb question but im baffled.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can do it straight into the tag if you wanted

HTML:
<input type="text" style="color:000000;border: 1px solid;border-color:000000;" name="">

Just put in Style="" and between that, format it like CSS

Hope that Helps
 
0
Close
yeh i new i could do that, problem is though im gonna have a few forms and stuff with buttons all over place so id like to do it from a stylesheet so if i need/want to change id rather change one file than edit 5 or 6 files and update it

thanks
 
0
Close
Make your own class name:

Original
HTML:
input { font-family: arial, etc etc etc }

Changed (will make the class name 'newclass')

HTML:
.newclass { font-family: arial, etc etc etc }

call by doing

HTML:
<input type="text" class="myclass" name="">

OR:

You will just have to make a separate class for them
 
0
Close
You could use a CSS2 selector:

input[type="submit"] {
font-family: tahoma;
size:3000000px;
etc etc etc
}

I'm not sure what browsers currently support that, though.
 
0
Close
thanks ill give that ago
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Each character of a domain name in its own box, with how to type one of them
Bookmarks: see bookmarks without a label
You can now show only the bookmarks you have not labeled. Open the label filter in the Bookmarks tab of your account menu, or on your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back