![]() |
Web Development »
HTML / CSS »
General
Beginner
fun with css part 1By Daniel Walzenbachspice up your fields |
CSS, HTML.NET1.0, .NET1.1, .NET2.0, Win2K, WinXP, Win2003, Visual-Studio, Dev
|
||||||||
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
![]()
Well, I don't know about you but I can't stand those plain html buttons.
Fortunately though there is a solution ;-)
Just create a .css file like the
following
.niceButton
{
padding: 0px 4px 4px 4px;
font-size: 8pt;
font-family: Verdana;
height: 19px;
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#dcdcdc, EndColorStr=#ffffff);
border-right: #7b9ebd 1px solid;
border-top: #7b9ebd 1px ridge;
border-left: #7b9ebd 1px ridge;
border-bottom: #7b9ebd 1px ridge;
}
set the <input /> control's class property to the .css
class created above
<input type="submit" name="Button" value="this is nice" id="Button" class="niceButton" />
and enjoy.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 13 Jun 2005 Editor: |
Copyright 2005 by Daniel Walzenbach Everything else Copyright © CodeProject, 1999-2010 Web18 | Advertise on the Code Project |