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

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
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
•••
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
•••
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
•••
thanks ill give that ago
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back