HighTechTalks DotNet Forums  

how to add color to <td> in stylesheet of Master page?

ASP.net Announcements microsoft.public.dotnet.framework.aspnet.announcements


Discuss how to add color to <td> in stylesheet of Master page? in the ASP.net Announcements forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rich P
 
Posts: n/a

Default how to add color to <td> in stylesheet of Master page? - 02-18-2009 , 02:43 PM






What do I need to add to my stylesheet.css which I reference in
site1.master to add/control colors in different <td>'s in a table in
site.master?

<link rel="stylesheet" href="StyleSheet.css" type="text/css" />

Here is what I have so far in my stylesheet.css

body
{
background-color: Aqua;
font-family: Verdana;
font-size:small;
}



How do I reference the stylesheet property in the <td>

Thanks,

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Rich P
 
Posts: n/a

Default Re: how to add color to <td> in stylesheet of Master page? - 02-18-2009 , 03:35 PM






I think I figured this out. Looks like you have to precede the class
names in the .css file with a period .

.body
{
background-color: Aqua;
font-family: Verdana;
font-size:small;

}

.sidebar
{
background-color: Fuchsia;
font-family: Verdana;
font-size:small;

}

.headline
{font-family:arial; font-size:14px; color:red}


Now the styles in the master page are appearing.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.