I tried that, but I could not figure out how to add the CSS properties I
wanted to the Style object (such as padding), since it doesn't have
properties for them, and I couldn't figure out what property to use. Can you
tell me how to set CSS properties that the Style object does not have
properties for? Thanks.
"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Nathan Sokalski" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> Can someone help me?
>
> protected void Page_Load(object sender, EventArgs e)
> {
> Style objStyle = new Style();
> objStyle.ForeColor = System.Drawing.Color.Navy;
> objStyle.BackColor = System.Drawing.Color.LightGray;
> this.Header.StyleSheet.CreateStyleRule(objStyle, null, "body");
> }
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net