Professional Web Applications Themes

CSS Inheritance - ASP.NET General

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;}.datagrid.itemstyle { color:"#4A3C8C"; background-color:"#E7E7FF"; }...

  1. #1

    Default 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;}.datagrid.itemstyle {
    color:"#4A3C8C"; background-color:"#E7E7FF"; }


    George Guest

  2. #2

    Default Re: CSS Inheritance

    It shouldn't be. Try refreshing the page (and clearing your browsers cache)
    as IE sometimes doesn't reload linked doents. 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" <com> wrote in message
    news:%phx.gbl... 
    >
    >[/ref]


    Jerry Guest

  3. #3

    Default Re: CSS Inheritance

    thanks man! I love these solutions. All I needed was the space between
    ..datagrid, and .itemstyle
    "Jerry III" <com> wrote in message
    news:phx.gbl... 
    cache) 
    put [/ref][/ref]
    that 
    > >
    > >[/ref]
    >
    >[/ref]


    George Guest

  4. #4

    Default Re: CSS Inheritance

    In news:%phx.gbl,
    George Durzi <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" <com> wrote in message
    : news:phx.gbl...
    :: It shouldn't be. Try refreshing the page (and clearing your browsers
    :: cache) as IE sometimes doesn't reload linked doents. 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" <com> wrote in message
    :: news:%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.itemstyle { ...}
    :::
    ::: but when i create a datagrid like this:
    ::: <asp:datagrid cssclass="datagrid2">
    ::: <itemstyle cssclass="itemstyle"/>
    ::: </asp:datagrid>
    :::
    ::: The itemstyle style is being ed in from the .datagrid style,
    ::: not the .datagrid2 style?
    :::
    ::: should i define this differently?
    :::
    ::: "George Durzi" <com> wrote in message
    ::: news:OokVY%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;}.datagrid.itemstyle { color:"#4A3C8C";
    :::: background-color:"#E7E7FF"; }


    Don Guest

Similar Threads

  1. inheritance
    By mr. App in forum ASP.NET Building Controls
    Replies: 1
    Last Post: July 2nd, 10:04 PM
  2. Inheritance in ActionScript
    By JustAskin in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 9th, 03:38 PM
  3. Template inheritance (DW MX)
    By c_peter webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 28th, 04:36 PM
  4. Page inheritance
    By Mircea Pleteriu in forum ASP.NET General
    Replies: 2
    Last Post: July 14th, 12:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139