ccsclass property for text label on web form within VS.NET 2003

F

FrodoBaggins

Dear Team,

I am trying to use stylesheets on a web form.

Initially, I created a folder named 'styles' within the WebUI project.

In this I created the following stylesheet named 'drivingschool.css':

body
{
font-size: 12px;
font-family: verdana, arial;
colour: #000000;
}


Then I placed a reference to this stylesheet within the HEAD section of the
web form as follows:

<LINK href="..styles/drivingschool.css" type="text/css" rel="stylesheet">

However, the rendering of the web form seemed to ignore the stylesheet.

Three questions:

1. Firstly, is my approach above correct?

2. If not what must be done to correct it?

3. I have also looked at the properties of one text label and noticed the
property 'CssClass'.

Does this have to be set also and if so, what should it be set to? I have
tried the help for this, but all it does it give an unrelated example.

Thanks,

Frodo.
 
G

Gary Chang

Hi Frodo,

Thanks for posting in the community.

From your description, I understand that you have problem to apply the css
to your webform,
Please correct me if there is any misunderstand.

Initially, I created a folder named 'styles' within the WebUI project.
Then I placed a reference to this stylesheet within the HEAD section of the
web form as follows

If the web form file is in the same directory which the 'styles' folder
created in, please try the following relative path:
"styles/drivingschool.css"


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
F

FrodoBaggins

Gary,

That worked fine.

Thank you.

Frodo.

Gary Chang said:
Hi Frodo,

Thanks for posting in the community.

From your description, I understand that you have problem to apply the css
to your webform,
Please correct me if there is any misunderstand.




If the web form file is in the same directory which the 'styles' folder
created in, please try the following relative path:
"styles/drivingschool.css"


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Top