Show us the style sheet. You should have a dot before h2 so that it is taken
as a class name. If you used only "h2" in your style sheet, it is the style
to apply to the html h2 tag (which is used for headers).
Patrice
"JezB" <je**@somewhere.com> a écrit dans le message de
news:Oq**************@TK2MSFTNGP11.phx.gbl...
There is no html H2 tag ... I've only just started learning about
stylesheets so I may be doing something silly.
"Patrice" <no****@nowhere.com> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl... Does it work with something else ? H2 could perhaps conflict with html
H2 tag ???
Patrice
"JezB" <je**@somewhere.com> a écrit dans le message de
news:%2*****************@TK2MSFTNGP10.phx.gbl... Im my Page_Load method I create a label dynamically and add it to my
Page:
Label l = new Label();
l.Text = "Example";
l.CssClass = "H2";
this.Controls.Add(l);
My page is linked to an external stylesheet, but when the control is
rendered it is not using the H2 style - what am I missing ?