473,396 Members | 2,085 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.

css styles not working

Hi all

Now that the entire web project is finished, I wanted to use style
sheet to set a few basic styles like the color of all (asp:)labels

I created style sheet with the builder which has an element style for
a label like this
Label{ color:tan }

I place link in header of document, but labels are still black.

All these controls on the web page(s) are ASP controls in a form. They
already all have a Style tag with nice things line Z-Index, Absolute
position, Top, etc...

Is is possible that style is not applied because there is already a
style tag on every element?

If the above isnt going to work, then is there a way to apply color
attribute to all tags programatically in my base page maybe?

Thanks
Jeff
Jul 31 '06 #1
1 2245
Hello Jeff,

CSS Styles style HTML not ASP.NET, so if you look at how the ASP:Label's
are generated (I think SPAN's). Then you would need to setup a CSS Style
for the HTML not the Label. Does that make any sense?

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
http://adoguy.com
Hi all

Now that the entire web project is finished, I wanted to use style
sheet to set a few basic styles like the color of all (asp:)labels

I created style sheet with the builder which has an element style for
a label like this
Label{ color:tan }
I place link in header of document, but labels are still black.

All these controls on the web page(s) are ASP controls in a form. They
already all have a Style tag with nice things line Z-Index, Absolute
position, Top, etc...

Is is possible that style is not applied because there is already a
style tag on every element?

If the above isnt going to work, then is there a way to apply color
attribute to all tags programatically in my base page maybe?

Thanks
Jeff

Jul 31 '06 #2

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

Similar topics

0
by: Quinton | last post by:
I'm running a website that uses CSS to format the text and a CGI program Coranto that icludes news updates via SSI. My problem is that some parts of the CSS don't seem to take effect on the...
7
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
0
by: Pocholo | last post by:
I'm working with AxWebBrowser and i try to change the entire page, but i don't find any way to do it also i try to change by parts: First the body: htmlDoc1.body.innerHTML="...."; and this...
1
by: R Reyes | last post by:
Hello All, I'm always looking for ways to improve my code. Most of the time (whenever I'm working on a project) I write a bunch of functions. Then after the project is finished, I put all the...
7
by: sasquatch | last post by:
Hi, I've a a site with nested master pages and content pages. I tried using a theme with a stylesheet in the app_themes directory referencing it in the web.config file from a pages tag theme...
5
by: Dinsdale | last post by:
Without using CSS styles or linked stylesheets, I need to apply formatting to text links that use rollover effects. I can NOT get the underline to show using this technique: <A...
0
by: matt urbanowski | last post by:
Hi, I have a calendar control on a form in VS2003 and have applied some styles to it. I have separate styles for all of the groups e.g. DayHeaderStyle, DayStyle, NextPrevStyle etc. and one for the...
9
by: Kevin Raleigh | last post by:
I am using phpmailer to output emails. The CSS features work great in OE but a few of the features break down in Yahoo, and Hotmail. Specifically I can't get the underline feature to work on...
0
by: chithrausha | last post by:
hi can anyone help me in setting the styles for a grid control. i want a design like this. iam having a grid control in which i want to display different styles for header text and different...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.