Issue with skins and style sheets (CSS)

  • Thread starter Thread starter Mike Grace
  • Start date Start date
M

Mike Grace

Hi,

Sorry for the stupid question but :-

Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for this?

I am trying to set up a theme and no matter what I put in the CSS file, it
doesn't seem to have any effect on my pages.



Regards


Mike
 
Thanks for the info, but it doesn't seem to help.

I have looked at the source and I have set a css element to change a colour
but nothing seems to happen.

Mike
 
Mike,

asp.net controls render as html elements. Viewing html source of the page
(available on mouse rightclick) will help you to understand what html your
controls produce.

Eliyahu
 
For example an asp:dropdownlist control

I must be specifying it incorrectly in the style sheet.

Also, I don't know how to change the disabled colour of a checkbox.


Mike
 
I did try this and it didn't make any difference.

Perhaps the .skin went over the top of it?

Tomorrow I will try it again and if it still doesn't work, then I will post
my css file.

Do you need to specify the .css file in the theme at all or does ASP.NET
just use it if it is there?

Mike
 
A ddl renders as an html select. If you wish to apply a style to all ddls,
you should make a css rule for select. Alternatively you can use CssClass
property.

I am not sure if browsers support changing the disabled colors for
checkboxes.

Eliyahu
 

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

Back
Top