473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

stylesheet problem

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.
Nov 18 '05 #1
3 1072
all web controls have CSSClass attribute which is your stylesheet class
attribute.

Av.
"Random" <ci*******@hotmail.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 18 '05 #2
It's not a web 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;}

I'm posting this here because I'm wondering if it is something different
about .NET that is making this not work. I mean, "class" is a legal
attribute, but Visual Studio .NET doesn't seem to want to recognize it as
such.
"avnrao" <av*@newsgroups.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
all web controls have CSSClass attribute which is your stylesheet class
attribute.

Av.
"Random" <ci*******@hotmail.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
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.


Nov 18 '05 #3
CSS class names start with a period so your class should be named
".standard". This implies a class defined for all tags as opposed to a
class named "TD.standard" which is defined specifically for TD tags.

"Random" <ci*******@hotmail.com> wrote in message
news:uZ**************@TK2MSFTNGP12.phx.gbl...
It's not a web 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;}

I'm posting this here because I'm wondering if it is something different
about .NET that is making this not work. I mean, "class" is a legal
attribute, but Visual Studio .NET doesn't seem to want to recognize it as
such.
"avnrao" <av*@newsgroups.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
all web controls have CSSClass attribute which is your stylesheet class
attribute.

Av.
"Random" <ci*******@hotmail.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
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.



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?>...
2
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: August 28, 2002 Version: 1.15 URL: http://css.nu/faq/ciwas-aFAQ.html...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: April 10, 2003 Version: 1.16 URL: http://css.nu/faq/ciwas-aFAQ.html Maintainer:...
14
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". ...
3
by: Ron Vecchi | last post by:
I'm pretty new to Xml and Xslt so bear with. I cant seem to add the xsl prefix to my stylesheet and get it to work. Error: The wrong namespace was used for XSL. Use...
1
by: Puja | last post by:
hi all, On my page, i have external stylesheet <link id="sbSiteCSS" rel="stylesheet" type="text/css" runat="server" /> whose href is determined on page_load protected void Page_Load(object...
1
by: niklang | last post by:
Hi everybody, I have an ASP page that uses the MSXML2.ServerXMLHTTP object to read a stylesheet from IIS as follows: strXSLPath = "http://localhost/ej/ejdetail.xsl.asp" ...
4
by: Big Moxy | last post by:
test page - http://projects.missioninternet.com/proweb/clients/test.php. When I added the onclick event so that I could employ ajax on this page the stylesheet formatting for this <lidisappeared....
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.