Issue with skins and style sheets (CSS)

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
 
M

Mike Grace

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
 
E

Eliyahu Goldin

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
 
M

Mike Grace

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
 
M

Mike Grace

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
 
E

Eliyahu Goldin

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top