PC Review


Reply
Thread Tools Rate Thread

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

 
 
FrodoBaggins
Guest
Posts: n/a
 
      20th Feb 2004
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.



 
Reply With Quote
 
 
 
 
Gary Chang
Guest
Posts: n/a
 
      21st Feb 2004
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.
--------------------

 
Reply With Quote
 
FrodoBaggins
Guest
Posts: n/a
 
      23rd Feb 2004
Gary,

That worked fine.

Thank you.

Frodo.

"Gary Chang" <v-(E-Mail Removed)> wrote in message
news:RGih0AE#(E-Mail Removed)...
> 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.
> --------------------
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp:Label - how can I get the Text property? Steve Hershoff Microsoft ASP .NET 1 6th Nov 2006 05:12 PM
Label.Text Property =?Utf-8?B?TmV0R29vZnk=?= Microsoft VB .NET 4 28th Jun 2006 04:10 PM
Symbols in Label Text Property fripper Microsoft VB .NET 5 28th Feb 2006 10:13 PM
Changing Label text property on another form, post #2 Mike Johnson Microsoft VB .NET 3 17th May 2004 05:44 PM
Changing Label text property on another form Mike Johnson Microsoft VB .NET 3 17th May 2004 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:25 PM.