stylesheet not working

R

Random

Under .NET, why doesn't the "class" attribute seem to apply to elements that
refer to a specific stylesheet reference? I've verified that the stylesheet
is being referenced by creating styles that refer specifically to HTML tags.
But if I want to call on a particular style just using the "class"
attribute, there is no stylesheet formatting being done.
 
R

Robert Koritnik

Could you provide CSS class definitions and HTML usage? You probably
overlooked something.
 
R

Random

It's not an ASP.NET control. They're just normal, table elements.

I have this in the header...

<link type="text/css" rel="stylesheet" id="Style" runat="server" />

And script that applies the href to the stylesheet reference. I've checked
the source on the browser page and it is being applied correctly. then I
have the element...

<table class="standard">....</table>

And, of course, the class reference in the stylesheet...

standard {background-color: Aqua;font-size: 2;}
 
S

Scott G.

You probably have a problem in your stylesheet; for the example bits you posted you need a CSS rule like

..standard { background-color: Aqua; font-size; 2; }

Don't forget the leading '.' for class defintions.

Scott
It's not an ASP.NET control. They're just normal, table elements.

I have this in the header...

<link type="text/css" rel="stylesheet" id="Style" runat="server" />

And script that applies the href to the stylesheet reference. I've checked
the source on the browser page and it is being applied correctly. then I
have the element...

<table class="standard">....</table>

And, of course, the class reference in the stylesheet...

standard {background-color: Aqua;font-size: 2;}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top