Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Issue with skins and style sheets (CSS)

Reply
Thread Tools

Issue with skins and style sheets (CSS)

 
 
Mike Grace
Guest
Posts: n/a
 
      04-20-2006
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


 
Reply With Quote
 
 
 
 
Mike Grace
Guest
Posts: n/a
 
      04-20-2006
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


"Eliyahu Goldin" <> wrote in message
news:...
> 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
>
> "Mike Grace" <> wrote in message
> news:...
>> 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
>>

>
>



 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      04-20-2006
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

"Mike Grace" <> wrote in message
news:...
> 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
>



 
Reply With Quote
 
Mike Grace
Guest
Posts: n/a
 
      04-20-2006
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



"Eliyahu Goldin" <> wrote in message
news:%...
> What control are you trying to style and how?
>
> Eliyahu
>
> "Mike Grace" <> wrote in message
> news:...
>> 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
>>
>>
>> "Eliyahu Goldin" <> wrote in message
>> news:...
>>> 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
>>>
>>> "Mike Grace" <> wrote in message
>>> news:...
>>>> 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
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      04-20-2006
What control are you trying to style and how?

Eliyahu

"Mike Grace" <> wrote in message
news:...
> 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
>
>
> "Eliyahu Goldin" <> wrote in message
> news:...
>> 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
>>
>> "Mike Grace" <> wrote in message
>> news:...
>>> 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
>>>

>>
>>

>
>



 
Reply With Quote
 
Mike Grace
Guest
Posts: n/a
 
      04-20-2006
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

"Eliyahu Goldin" <> wrote in message
news:...
>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
>
> "Mike Grace" <> wrote in message
> news:u%...
>> 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
>>
>>
>>
>> "Eliyahu Goldin" <> wrote in message
>> news:%...
>>> What control are you trying to style and how?
>>>
>>> Eliyahu
>>>
>>> "Mike Grace" <> wrote in message
>>> news:...
>>>> 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
>>>>
>>>>
>>>> "Eliyahu Goldin" <> wrote in message
>>>> news:...
>>>>> 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
>>>>>
>>>>> "Mike Grace" <> wrote in message
>>>>> news:...
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      04-20-2006
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

"Mike Grace" <> wrote in message
news:u%...
> 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
>
>
>
> "Eliyahu Goldin" <> wrote in message
> news:%...
>> What control are you trying to style and how?
>>
>> Eliyahu
>>
>> "Mike Grace" <> wrote in message
>> news:...
>>> 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
>>>
>>>
>>> "Eliyahu Goldin" <> wrote in message
>>> news:...
>>>> 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
>>>>
>>>> "Mike Grace" <> wrote in message
>>>> news:...
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Attaching Style Sheets & Skins Med ASP .Net 0 11-26-2007 11:06 PM
Master Pages, Skins & Style Sheets Kat ASP .Net 1 04-04-2007 01:42 PM
Themes and Skins + Style-sheets: general question Griff ASP .Net 1 02-06-2006 07:42 PM
Style sheets, include one style within another (not inheritance) foldface@yahoo.co.uk HTML 1 11-24-2003 01:37 PM
export to Excel - multiple sheets & renaming sheets Carl Corcoran ASP General 1 11-12-2003 07:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57