K
Keith G Hicks
asp.net 2.0
I'm new at so much of this. I'd like to apply a very simple css file to some
asp buttons on content pages via the master page. Not sure if that's
possible but I assume it is from what I've read. I just can't figure out
where to put things.
So here's my master page:
<%@ Master Language="VB" CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css"
href="~\App_Themes\KeithTest\AspButtons.css" />
</head>
Here's my AspButtons.css file:
..WhiteButtons
{
BackColor="#FFFBFF"
BorderColor="#CCCCCC"
ForeColor="#284775"
Height="28px"
Font-Size="11pt"
BorderWidth="2px"
BorderStyle="Outset"
}
I thought I would then put "WhiteButtons" in the cssClass of each button on
each content page but that didn't work and it seems like way more work than
is necessary given what I'm gleaning about stylesheets.
So should I change .WhiteButtons to soemthing else in the css file so that
it would automatically apply to all asp:buttons? What do I need to do and
where to put it in the content pages?
Here's one of the buttons on one of the content pages:
<asp:Button ID="btnSubmit" runat="server" Text="Submit for Approval"
OnClick="btnSubmit_Click" Width="175px" />
I need some clear info on this as I'm sort of stumbling around with it rigth
now. Hope someone can clear this up for me!
Thanks,
Keith
I'm new at so much of this. I'd like to apply a very simple css file to some
asp buttons on content pages via the master page. Not sure if that's
possible but I assume it is from what I've read. I just can't figure out
where to put things.
So here's my master page:
<%@ Master Language="VB" CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css"
href="~\App_Themes\KeithTest\AspButtons.css" />
</head>
Here's my AspButtons.css file:
..WhiteButtons
{
BackColor="#FFFBFF"
BorderColor="#CCCCCC"
ForeColor="#284775"
Height="28px"
Font-Size="11pt"
BorderWidth="2px"
BorderStyle="Outset"
}
I thought I would then put "WhiteButtons" in the cssClass of each button on
each content page but that didn't work and it seems like way more work than
is necessary given what I'm gleaning about stylesheets.
So should I change .WhiteButtons to soemthing else in the css file so that
it would automatically apply to all asp:buttons? What do I need to do and
where to put it in the content pages?
Here's one of the buttons on one of the content pages:
<asp:Button ID="btnSubmit" runat="server" Text="Submit for Approval"
OnClick="btnSubmit_Click" Width="175px" />
I need some clear info on this as I'm sort of stumbling around with it rigth
now. Hope someone can clear this up for me!
Thanks,
Keith