| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CSS Query
Hi,
I have never used Stylesheets before, because I mainly focus on the functionality of website applications. I would like to desgin a stylesheet for a new project. I am aware of how to implement them into a web page by adding the link. I was just wondering if buttons are developed in a stylesheet and if they are then how are they reffered to when code needs to be put behind them?? Thankyou... |
|
#2
|
||||
|
||||
|
Buttons can be created with CSS by assigning certain attributes such as height, width, background color, etc., to your links the same as you would with any other elemement. for example:
Code:
<head>
<style type="text/css">
a:link {
width:100px;
height:25px;
font-size:14px;
font-weight:bold;
color:#ff0000;
background-color:#CCCCCC;
border-top:2px outset #FFFFFF;
border-left:2px outset #FFFFFF;
border-right:2px outset #000000;
border-bottom:2px outset #000000;
text-align:center
}
a:hover {
width:100px;
height:25px;
font-size:14px;
font-weight:bold;
color:#ff0000;
background-color:#CCCCCC;
border-top:2px inset #000000;
border-left:2px inset #000000;
border-right:2px inset #FFFFFF;
border-bottom:2px inset #FFFFFF;
text-align:center
}
</style>
</head>
<body>
<a href="http://www.yahoo.com">Yahoo!</a>
</body>
There is a book called The CSS Anthology by Rachel Andrews. I recommend it to anyone trying to convert to CSS. I should get a commission for as many times as I recommend it. Definitely worth adding to your library. ![]()
__________________
GardenWeasel... Does all the work of 10 men and 1 small boy "To know that even one life has breathed easier because you have lived..... This is to have succeeded" R. W. Emerson
|
|
#3
|
||||||
|
||||||
|
Quote:
Stylesheets are merely a way to apply styles to your html elements. So, no, buttons are not developed in a stylesheet. You can, however, style your buttons with a stylesheet. Example: css Code:
I hope this is helpful!
__________________
ShepherdWeb :: Charging Rhino Wizard I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor. {Henry David Thoreau} § shepherdweb.com § fariswheel productions § reagan administration |
|
#4
|
||||
|
||||
|
banker makes a valid point. let me restate.
You can give any href the APPEARNCE of a button. it is not an ACTUAL button until you apply some javascripts to make it ACT as as button ![]() |
|
#5
|
||||
|
||||
|
css query
thanks for the reply....
I am developing my application is asp.net using visual studio, so I think I can develop a stylesheet in the Vis Studio and then include a link to it within my .aspx webpages. |
|
#6
|
||||
|
||||
|
Quote:
That is absolutely correct! Fear the design view! |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > CSS Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|