Professional Web Applications Themes

creating styles for certain cells in a table - ASP.NET General

<link rel="stylesheet" type="text/css" href="myfile.css" /> Then use: ..cssClass property. "Jeremy Chapman" <Nospamplease.com> wrote in message news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl... > I am dynamically creating rows and cells in code in a Table component. I > want to be able to define external style sheets and apply different ones to > different cells depending on how I want each one to look like. > > How do I do this? > >...

  1. #1

    Default Re: creating styles for certain cells in a table

    <link rel="stylesheet" type="text/css" href="myfile.css" />
    Then use:
    ..cssClass property.

    "Jeremy Chapman" <Nospamplease.com> wrote in message
    news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > I am dynamically creating rows and cells in code in a Table component. I
    > want to be able to define external style sheets and apply different ones
    to
    > different cells depending on how I want each one to look like.
    >
    > How do I do this?
    >
    >

    Lenny Guest

  2. #2

    Default Re: creating styles for certain cells in a table

    Let us see what you've done. Perhaps that will help.



    "Jeremy Chapman" <Nospamplease.com> wrote in message
    news:OuZ8SDfVDHA.2016TK2MSFTNGP09.phx.gbl...
    > hm... I've done that, but my css file must be formatted incorrectly. is
    > there a template available or some example of the css class?
    >
    > "Lenny" <nospama.com> wrote in message
    > news:ekqdncgmEvXCWLiiXTWJiAcomcast.com...
    > > <link rel="stylesheet" type="text/css" href="myfile.css" />
    > > Then use:
    > > .cssClass property.
    > >
    > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > > > I am dynamically creating rows and cells in code in a Table component.
    > I
    > > > want to be able to define external style sheets and apply different
    ones
    > > to
    > > > different cells depending on how I want each one to look like.
    > > >
    > > > How do I do this?
    > > >
    > > >
    > >
    > >
    >
    >

    Seaside Guest

  3. #3

    Default Re: creating styles for certain cells in a table

    in my .aspx page I've put the following line in the HEAD section
    <LINK REL="stylesheet" TYPE="text/css" HREF="GlobalStyles.css">

    and this is my GlobalStyles.css file

    styScheduleHeaderColumn
    {
    height: 10;
    background-color: #E6C186;
    font-family: Arial;
    font-size: xx-small;
    }

    styCell
    {
    height: 65;
    background-color: #E6C186;
    font-family: Arial;
    font-size: xx-small;
    }

    styCellLine
    {
    height: 15;
    background-color: #E6C186;
    font-family: Arial;
    font-size: xx-small;
    }

    "Seaside" <sshotmail.com> wrote in message
    news:%23FuM9TfVDHA.532TK2MSFTNGP10.phx.gbl...
    > Let us see what you've done. Perhaps that will help.
    >
    >
    >
    > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > news:OuZ8SDfVDHA.2016TK2MSFTNGP09.phx.gbl...
    > > hm... I've done that, but my css file must be formatted incorrectly.
    is
    > > there a template available or some example of the css class?
    > >
    > > "Lenny" <nospama.com> wrote in message
    > > news:ekqdncgmEvXCWLiiXTWJiAcomcast.com...
    > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
    > > > Then use:
    > > > .cssClass property.
    > > >
    > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > > > > I am dynamically creating rows and cells in code in a Table
    component.
    > > I
    > > > > want to be able to define external style sheets and apply different
    > ones
    > > > to
    > > > > different cells depending on how I want each one to look like.
    > > > >
    > > > > How do I do this?
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Jeremy Chapman Guest

  4. #4

    Default Re: creating styles for certain cells in a table

    Great but how do you distinguish one cell from another in your ASPX page? It
    seems that might be the missing part of the puzzle.





    "Jeremy Chapman" <Nospamplease.com> wrote in message
    news:u7ty9jfVDHA.1072TK2MSFTNGP12.phx.gbl...
    > in my .aspx page I've put the following line in the HEAD section
    > <LINK REL="stylesheet" TYPE="text/css" HREF="GlobalStyles.css">
    >
    > and this is my GlobalStyles.css file
    >
    > styScheduleHeaderColumn
    > {
    > height: 10;
    > background-color: #E6C186;
    > font-family: Arial;
    > font-size: xx-small;
    > }
    >
    > styCell
    > {
    > height: 65;
    > background-color: #E6C186;
    > font-family: Arial;
    > font-size: xx-small;
    > }
    >
    > styCellLine
    > {
    > height: 15;
    > background-color: #E6C186;
    > font-family: Arial;
    > font-size: xx-small;
    > }
    >
    > "Seaside" <sshotmail.com> wrote in message
    > news:%23FuM9TfVDHA.532TK2MSFTNGP10.phx.gbl...
    > > Let us see what you've done. Perhaps that will help.
    > >
    > >
    > >
    > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > news:OuZ8SDfVDHA.2016TK2MSFTNGP09.phx.gbl...
    > > > hm... I've done that, but my css file must be formatted incorrectly.
    > is
    > > > there a template available or some example of the css class?
    > > >
    > > > "Lenny" <nospama.com> wrote in message
    > > > news:ekqdncgmEvXCWLiiXTWJiAcomcast.com...
    > > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
    > > > > Then use:
    > > > > .cssClass property.
    > > > >
    > > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > > news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > > > > > I am dynamically creating rows and cells in code in a Table
    > component.
    > > > I
    > > > > > want to be able to define external style sheets and apply
    different
    > > ones
    > > > > to
    > > > > > different cells depending on how I want each one to look like.
    > > > > >
    > > > > > How do I do this?
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Seaside Guest

  5. #5

    Default Re: creating styles for certain cells in a table

    I've built a custom ItemTemplate class which ownes a Table component. The
    binding event of the ItemTemplate determines the style for the cell.

    "Seaside" <sshotmail.com> wrote in message
    news:OVBubNgVDHA.2156TK2MSFTNGP11.phx.gbl...
    > Great but how do you distinguish one cell from another in your ASPX page?
    It
    > seems that might be the missing part of the puzzle.
    >
    >
    >
    >
    >
    > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > news:u7ty9jfVDHA.1072TK2MSFTNGP12.phx.gbl...
    > > in my .aspx page I've put the following line in the HEAD section
    > > <LINK REL="stylesheet" TYPE="text/css" HREF="GlobalStyles.css">
    > >
    > > and this is my GlobalStyles.css file
    > >
    > > styScheduleHeaderColumn
    > > {
    > > height: 10;
    > > background-color: #E6C186;
    > > font-family: Arial;
    > > font-size: xx-small;
    > > }
    > >
    > > styCell
    > > {
    > > height: 65;
    > > background-color: #E6C186;
    > > font-family: Arial;
    > > font-size: xx-small;
    > > }
    > >
    > > styCellLine
    > > {
    > > height: 15;
    > > background-color: #E6C186;
    > > font-family: Arial;
    > > font-size: xx-small;
    > > }
    > >
    > > "Seaside" <sshotmail.com> wrote in message
    > > news:%23FuM9TfVDHA.532TK2MSFTNGP10.phx.gbl...
    > > > Let us see what you've done. Perhaps that will help.
    > > >
    > > >
    > > >
    > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > news:OuZ8SDfVDHA.2016TK2MSFTNGP09.phx.gbl...
    > > > > hm... I've done that, but my css file must be formatted
    incorrectly.
    > > is
    > > > > there a template available or some example of the css class?
    > > > >
    > > > > "Lenny" <nospama.com> wrote in message
    > > > > news:ekqdncgmEvXCWLiiXTWJiAcomcast.com...
    > > > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
    > > > > > Then use:
    > > > > > .cssClass property.
    > > > > >
    > > > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > > > news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > > > > > > I am dynamically creating rows and cells in code in a Table
    > > component.
    > > > > I
    > > > > > > want to be able to define external style sheets and apply
    > different
    > > > ones
    > > > > > to
    > > > > > > different cells depending on how I want each one to look like.
    > > > > > >
    > > > > > > How do I do this?
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Jeremy Chapman Guest

  6. #6

    Default Re: creating styles for certain cells in a table

    Well that's the point. You have to apply the style to the individual cell as
    needed. You've created the styles but don't seem to have applied them to the
    cells. How are you trying to do this?



    "Jeremy Chapman" <Nospamplease.com> wrote in message
    news:%23gCXB6gVDHA.612TK2MSFTNGP10.phx.gbl...
    > I've built a custom ItemTemplate class which ownes a Table component. The
    > binding event of the ItemTemplate determines the style for the cell.
    >
    > "Seaside" <sshotmail.com> wrote in message
    > news:OVBubNgVDHA.2156TK2MSFTNGP11.phx.gbl...
    > > Great but how do you distinguish one cell from another in your ASPX
    page?
    > It
    > > seems that might be the missing part of the puzzle.
    > >
    > >
    > >
    > >
    > >
    > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > news:u7ty9jfVDHA.1072TK2MSFTNGP12.phx.gbl...
    > > > in my .aspx page I've put the following line in the HEAD section
    > > > <LINK REL="stylesheet" TYPE="text/css" HREF="GlobalStyles.css">
    > > >
    > > > and this is my GlobalStyles.css file
    > > >
    > > > styScheduleHeaderColumn
    > > > {
    > > > height: 10;
    > > > background-color: #E6C186;
    > > > font-family: Arial;
    > > > font-size: xx-small;
    > > > }
    > > >
    > > > styCell
    > > > {
    > > > height: 65;
    > > > background-color: #E6C186;
    > > > font-family: Arial;
    > > > font-size: xx-small;
    > > > }
    > > >
    > > > styCellLine
    > > > {
    > > > height: 15;
    > > > background-color: #E6C186;
    > > > font-family: Arial;
    > > > font-size: xx-small;
    > > > }
    > > >
    > > > "Seaside" <sshotmail.com> wrote in message
    > > > news:%23FuM9TfVDHA.532TK2MSFTNGP10.phx.gbl...
    > > > > Let us see what you've done. Perhaps that will help.
    > > > >
    > > > >
    > > > >
    > > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > > news:OuZ8SDfVDHA.2016TK2MSFTNGP09.phx.gbl...
    > > > > > hm... I've done that, but my css file must be formatted
    > incorrectly.
    > > > is
    > > > > > there a template available or some example of the css class?
    > > > > >
    > > > > > "Lenny" <nospama.com> wrote in message
    > > > > > news:ekqdncgmEvXCWLiiXTWJiAcomcast.com...
    > > > > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
    > > > > > > Then use:
    > > > > > > .cssClass property.
    > > > > > >
    > > > > > > "Jeremy Chapman" <Nospamplease.com> wrote in message
    > > > > > > news:u2ZOnxVVDHA.2544tk2msftngp13.phx.gbl...
    > > > > > > > I am dynamically creating rows and cells in code in a Table
    > > > component.
    > > > > > I
    > > > > > > > want to be able to define external style sheets and apply
    > > different
    > > > > ones
    > > > > > > to
    > > > > > > > different cells depending on how I want each one to look like.
    > > > > > > >
    > > > > > > > How do I do this?
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Seaside Guest

Similar Threads

  1. Right justify in all the cells of a table?
    By Weintraub in forum Macromedia Freehand
    Replies: 4
    Last Post: July 31st, 08:06 PM
  2. Tabs in table cells
    By Tony_Stuart@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: April 1st, 06:04 AM
  3. tabbing between table cells
    By Getho in forum Macromedia Freehand
    Replies: 1
    Last Post: September 22nd, 02:01 AM
  4. Styles for cells
    By Erik Cruz in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: September 6th, 07:03 PM
  5. background in table cells
    By Murray *TMM* in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 10th, 06:06 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