Issue with skins and style sheets (CSS)

Discussion in 'ASP .Net' started by Mike Grace, Apr 20, 2006.

  1. Mike Grace

    Mike Grace Guest

    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
    Mike Grace, Apr 20, 2006
    #1
    1. Advertising

  2. Mike Grace

    Mike Grace Guest

    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
    >>

    >
    >
    Mike Grace, Apr 20, 2006
    #2
    1. Advertising

  3. 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
    >
    Eliyahu Goldin, Apr 20, 2006
    #3
  4. Mike Grace

    Mike Grace Guest

    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
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >
    Mike Grace, Apr 20, 2006
    #4
  5. 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
    >>>

    >>
    >>

    >
    >
    Eliyahu Goldin, Apr 20, 2006
    #5
  6. Mike Grace

    Mike Grace Guest

    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
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >
    Mike Grace, Apr 20, 2006
    #6
  7. 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
    >>>>>
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >
    Eliyahu Goldin, Apr 20, 2006
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Griff
    Replies:
    1
    Views:
    387
    Alan Silver
    Feb 6, 2006
  2. tshad
    Replies:
    1
    Views:
    458
    Mischa Kroon
    Jul 28, 2006
  3. Kat
    Replies:
    1
    Views:
    361
  4. Med

    Attaching Style Sheets & Skins

    Med, Nov 26, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    263
  5. Carl Corcoran
    Replies:
    1
    Views:
    252
    Bob Barrows
    Nov 12, 2003
Loading...

Share This Page