| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CSS Button Query
hi,
I have the following code for a button on my aspx page: Code:
<asp:Button ID="Button1" runat="server" Text="Button" /></div> I want the button to have a certain style, therefore I have created the follwoing code in my stylesheet - default.css: Code:
Button1 { color:#ffff00;font-weight:normal;
font-family:"Comic Sans MS", cursive;font-size:14pt;background-color:#cc9999;
background-color:#cc9999;border-style:solid;border-width:4px;
border-color:#ffcccc #993333 #993333 #ffcccc}
How would I enter a link into my aspx button code to link to the stylesheet code for the button, so that the design specified in the css is used?? Thankyou |
|
#2
|
||||
|
||||
|
links to CSS document is to be placed in the <head> of your page like:
<link rel="stylesheet" type="text/css" media="screen" href="/mystyles.css" />
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > CSS Button Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|