CSS Inheritance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Durzi

    #1

    CSS Inheritance

    I'm trying to maintain several color schemes throughout my site, so that
    different modules have a different color scheme based on a css style.

    Let's take the example of trying to set styles for datagrid controls.

    ..datagrid { font-size: 8pt; border-color:#E7E7FF; border-style:none;
    border-width:thin; background-color:White;}.d atagrid.itemsty le {
    color:"#4A3C8C" ; background-color:"#E7E7FF" ; }


  • Jerry III

    #2
    Re: CSS Inheritance

    It shouldn't be. Try refreshing the page (and clearing your browsers cache)
    as IE sometimes doesn't reload linked documents. And personally I would put
    space between .datagrid .itemstyle, you want the style to mean .itemstyle
    which is a child of .datagrid.

    Jerry

    "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
    news:%23v05RC0Y DHA.3232@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Sorry, I hit Send accidentally, here's the rest of the message
    > :
    >
    > I want to define another style called datagrid2 as follows
    >
    > .datagrid2 { .....}
    > .datagrid2.item style { ...}
    >
    > but when i create a datagrid like this:
    > <asp:datagrid cssclass="datag rid2">
    > <itemstyle cssclass="items tyle"/>
    > </asp:datagrid>
    >
    > The itemstyle style is being sucked in from the .datagrid style, not the
    > .datagrid2 style?
    >
    > should i define this differently?
    >
    > "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
    > news:OokVY%23zY DHA.2236@TK2MSF TNGP10.phx.gbl. ..[color=green]
    > > I'm trying to maintain several color schemes throughout my site, so that
    > > different modules have a different color scheme based on a css style.
    > >
    > > Let's take the example of trying to set styles for datagrid controls.
    > >
    > > .datagrid { font-size: 8pt; border-color:#E7E7FF; border-style:none;
    > > border-width:thin; background-color:White;}.d atagrid.itemsty le {
    > > color:"#4A3C8C" ; background-color:"#E7E7FF" ; }
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • George Durzi

      #3
      Re: CSS Inheritance

      thanks man! I love these solutions. All I needed was the space between
      ..datagrid, and .itemstyle
      "Jerry III" <jerryiii@hotma il.com> wrote in message
      news:Ooqm0f1YDH A.1916@TK2MSFTN GP12.phx.gbl...[color=blue]
      > It shouldn't be. Try refreshing the page (and clearing your browsers[/color]
      cache)[color=blue]
      > as IE sometimes doesn't reload linked documents. And personally I would[/color]
      put[color=blue]
      > space between .datagrid .itemstyle, you want the style to mean .itemstyle
      > which is a child of .datagrid.
      >
      > Jerry
      >
      > "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
      > news:%23v05RC0Y DHA.3232@tk2msf tngp13.phx.gbl. ..[color=green]
      > > Sorry, I hit Send accidentally, here's the rest of the message
      > > :
      > >
      > > I want to define another style called datagrid2 as follows
      > >
      > > .datagrid2 { .....}
      > > .datagrid2.item style { ...}
      > >
      > > but when i create a datagrid like this:
      > > <asp:datagrid cssclass="datag rid2">
      > > <itemstyle cssclass="items tyle"/>
      > > </asp:datagrid>
      > >
      > > The itemstyle style is being sucked in from the .datagrid style, not the
      > > .datagrid2 style?
      > >
      > > should i define this differently?
      > >
      > > "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
      > > news:OokVY%23zY DHA.2236@TK2MSF TNGP10.phx.gbl. ..[color=darkred]
      > > > I'm trying to maintain several color schemes throughout my site, so[/color][/color][/color]
      that[color=blue][color=green][color=darkred]
      > > > different modules have a different color scheme based on a css style.
      > > >
      > > > Let's take the example of trying to set styles for datagrid controls.
      > > >
      > > > .datagrid { font-size: 8pt; border-color:#E7E7FF; border-style:none;
      > > > border-width:thin; background-color:White;}.d atagrid.itemsty le {
      > > > color:"#4A3C8C" ; background-color:"#E7E7FF" ; }
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Don Verhagen

        #4
        Re: CSS Inheritance

        In news:%23AQo4k2Y DHA.1280@tk2msf tngp13.phx.gbl,
        George Durzi <gdurzi@nospam_ hotmail.com> typed:
        : thanks man! I love these solutions. All I needed was the space between
        : .datagrid, and .itemstyle

        syntax is a wonderful thing eh?

        Don




        : "Jerry III" <jerryiii@hotma il.com> wrote in message
        : news:Ooqm0f1YDH A.1916@TK2MSFTN GP12.phx.gbl...
        :: It shouldn't be. Try refreshing the page (and clearing your browsers
        :: cache) as IE sometimes doesn't reload linked documents. And
        :: personally I would put space between .datagrid .itemstyle, you want
        :: the style to mean .itemstyle which is a child of .datagrid.
        ::
        :: Jerry
        ::
        :: "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
        :: news:%23v05RC0Y DHA.3232@tk2msf tngp13.phx.gbl. ..
        ::: Sorry, I hit Send accidentally, here's the rest of the message
        ::::
        :::
        ::: I want to define another style called datagrid2 as follows
        :::
        ::: .datagrid2 { .....}
        ::: .datagrid2.item style { ...}
        :::
        ::: but when i create a datagrid like this:
        ::: <asp:datagrid cssclass="datag rid2">
        ::: <itemstyle cssclass="items tyle"/>
        ::: </asp:datagrid>
        :::
        ::: The itemstyle style is being sucked in from the .datagrid style,
        ::: not the .datagrid2 style?
        :::
        ::: should i define this differently?
        :::
        ::: "George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
        ::: news:OokVY%23zY DHA.2236@TK2MSF TNGP10.phx.gbl. ..
        :::: I'm trying to maintain several color schemes throughout my site,
        :::: so that different modules have a different color scheme based on a
        :::: css style.
        ::::
        :::: Let's take the example of trying to set styles for datagrid
        :::: controls.
        ::::
        :::: .datagrid { font-size: 8pt; border-color:#E7E7FF;
        :::: border-style:none; border-width:thin;
        :::: background-color:White;}.d atagrid.itemsty le { color:"#4A3C8C" ;
        :::: background-color:"#E7E7FF" ; }


        Comment

        Working...