CSS and DataGrid

Discussion in 'ASP .Net Web Controls' started by Sink, Dec 5, 2003.

  1. Sink

    Sink Guest

    I am working with a CSS sheet for cross-browser
    compatibiltiy and am having a problem with the following.
    I have an Element TD with a color of Blue for my text
    along with other stuff, but when I display a DataGrid,
    my Datagrid styles are lost and everything is blue.
    Is there a way to maintain my Datagrid formatting without
    having to resort to setting my TD's manually?
    Sink, Dec 5, 2003
    #1
    1. Advertising

  2. Sink

    MSFT Guest

    Hi Gary,

    Instead of setting CSS style for all <TD> tags on a form, you may define
    different CSS class like:

    .MyTD
    {
    color: red;
    }
    .DataGridTD
    {
    color: blue;
    }

    And then, implement these classes to different controls on your web form.

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
    MSFT, Dec 5, 2003
    #2
    1. Advertising

  3. Sink

    Sink Guest

    Hi,
    Thanks for the response. I tried this but it I can't seem
    to get NN to accept the class. AM I doinf something wrong?
    I used the class property of the <TD> and set to the
    ElementID and IE is happy, but NN ignores.
    Regards
    G.,
    >-----Original Message-----
    >Hi Gary,
    >
    >Instead of setting CSS style for all <TD> tags on a form,

    you may define
    >different CSS class like:
    >
    >.MyTD
    >{
    > color: red;
    >}
    >.DataGridTD
    >{
    > color: blue;
    >}
    >
    >And then, implement these classes to different controls

    on your web form.
    >
    >Luke
    >Microsoft Online Support
    >
    >Get Secure! www.microsoft.com/security
    >(This posting is provided "AS IS", with no warranties,

    and confers no
    >rights.)
    >
    >.
    >
    Sink, Dec 5, 2003
    #3
  4. Sink

    MSFT Guest

    Hi gary,

    NN supports the CSS class. ( By the way, it is Case Sensitivity). You may
    refer to following web site for more information on CSS in NN:

    http://devedge.netscape.com/central/css/

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
    MSFT, Dec 8, 2003
    #4
    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. Eric
    Replies:
    4
    Views:
    697
    clintonG
    Dec 24, 2004
  2. tom watson

    print.css and screen.css

    tom watson, Sep 9, 2003, in forum: HTML
    Replies:
    1
    Views:
    450
    Jukka K. Korpela
    Sep 9, 2003
  3. =?ISO-8859-1?Q?G=E9rard_Talbot?=

    Whining and bitching about MSIE 6 CSS bugs and CSS support

    =?ISO-8859-1?Q?G=E9rard_Talbot?=, Jul 9, 2005, in forum: HTML
    Replies:
    0
    Views:
    403
    =?ISO-8859-1?Q?G=E9rard_Talbot?=
    Jul 9, 2005
  4. Andreas Klemt
    Replies:
    0
    Views:
    267
    Andreas Klemt
    Oct 8, 2003
  5. Replies:
    1
    Views:
    200
    Randy Webb
    Feb 19, 2006
Loading...

Share This Page