Ask a Question related to ASP.NET General, Design and Development.
-
Lenny #1
Re: creating styles for certain cells in a table
<link rel="stylesheet" type="text/css" href="myfile.css" />
Then use:
..cssClass property.
"Jeremy Chapman" <Nospam@please.com> wrote in message
news:u2ZOnxVVDHA.2544@tk2msftngp13.phx.gbl...to> 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> different cells depending on how I want each one to look like.
>
> How do I do this?
>
>
Lenny Guest
-
Right justify in all the cells of a table?
When I try to right justify all of the cells in a table only the right most cells are right justified. Is there any way to right justify all of the... -
Tabs in table cells
Once I have got a tab in a table I simply copy it when I need another. Saves going to the Type menu all the time. -
tabbing between table cells
Is there a shortcut for "insert end of column" to tab between table cells. Its so clunky. At this rate I think I'll do the tables in a wordprocessor... -
Styles for cells
Hi. I am trying to create some styles for use in my datagrids. I have a class that sets the borders for the itemtemplates of the datagrid but it... -
background in table cells
ameen: Yes. Click in the cell and use the Property Inspector to specify a background image. Be aware that in order to see the background fully,... -
Seaside #2
Re: creating styles for certain cells in a table
Let us see what you've done. Perhaps that will help.
"Jeremy Chapman" <Nospam@please.com> wrote in message
news:OuZ8SDfVDHA.2016@TK2MSFTNGP09.phx.gbl...ones> 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" <nospam@a.com> wrote in message
> news:ekqdncgmEvXCWLiiXTWJiA@comcast.com...> I> > <link rel="stylesheet" type="text/css" href="myfile.css" />
> > Then use:
> > .cssClass property.
> >
> > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > news:u2ZOnxVVDHA.2544@tk2msftngp13.phx.gbl...> > > I am dynamically creating rows and cells in code in a Table component.> > > want to be able to define external style sheets and apply different>> > to> >> > > different cells depending on how I want each one to look like.
> > >
> > > How do I do this?
> > >
> > >
> >
>
Seaside Guest
-
Jeremy Chapman #3
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" <ss@hotmail.com> wrote in message
news:%23FuM9TfVDHA.532@TK2MSFTNGP10.phx.gbl...is> Let us see what you've done. Perhaps that will help.
>
>
>
> "Jeremy Chapman" <Nospam@please.com> wrote in message
> news:OuZ8SDfVDHA.2016@TK2MSFTNGP09.phx.gbl...> > hm... I've done that, but my css file must be formatted incorrectly.component.> > there a template available or some example of the css class?
> >
> > "Lenny" <nospam@a.com> wrote in message
> > news:ekqdncgmEvXCWLiiXTWJiA@comcast.com...> > > <link rel="stylesheet" type="text/css" href="myfile.css" />
> > > Then use:
> > > .cssClass property.
> > >
> > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > news:u2ZOnxVVDHA.2544@tk2msftngp13.phx.gbl...
> > > > I am dynamically creating rows and cells in code in a Table> ones> > I> > > > want to be able to define external style sheets and apply different>> >> > > to
> > > > different cells depending on how I want each one to look like.
> > > >
> > > > How do I do this?
> > > >
> > > >
> > >
> > >
> >
>
Jeremy Chapman Guest
-
Seaside #4
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" <Nospam@please.com> wrote in message
news:u7ty9jfVDHA.1072@TK2MSFTNGP12.phx.gbl...different> 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" <ss@hotmail.com> wrote in message
> news:%23FuM9TfVDHA.532@TK2MSFTNGP10.phx.gbl...> is> > Let us see what you've done. Perhaps that will help.
> >
> >
> >
> > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > news:OuZ8SDfVDHA.2016@TK2MSFTNGP09.phx.gbl...> > > hm... I've done that, but my css file must be formatted incorrectly.> component.> > > there a template available or some example of the css class?
> > >
> > > "Lenny" <nospam@a.com> wrote in message
> > > news:ekqdncgmEvXCWLiiXTWJiA@comcast.com...
> > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
> > > > Then use:
> > > > .cssClass property.
> > > >
> > > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > > news:u2ZOnxVVDHA.2544@tk2msftngp13.phx.gbl...
> > > > > I am dynamically creating rows and cells in code in a Table> > > I
> > > > > want to be able to define external style sheets and apply>> > ones> >> > > > to
> > > > > different cells depending on how I want each one to look like.
> > > > >
> > > > > How do I do this?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Seaside Guest
-
Jeremy Chapman #5
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" <ss@hotmail.com> wrote in message
news:OVBubNgVDHA.2156@TK2MSFTNGP11.phx.gbl...It> Great but how do you distinguish one cell from another in your ASPX page?incorrectly.> seems that might be the missing part of the puzzle.
>
>
>
>
>
> "Jeremy Chapman" <Nospam@please.com> wrote in message
> news:u7ty9jfVDHA.1072@TK2MSFTNGP12.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" <ss@hotmail.com> wrote in message
> > news:%23FuM9TfVDHA.532@TK2MSFTNGP10.phx.gbl...> > > Let us see what you've done. Perhaps that will help.
> > >
> > >
> > >
> > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > news:OuZ8SDfVDHA.2016@TK2MSFTNGP09.phx.gbl...
> > > > hm... I've done that, but my css file must be formatted> different> > is> > component.> > > > there a template available or some example of the css class?
> > > >
> > > > "Lenny" <nospam@a.com> wrote in message
> > > > news:ekqdncgmEvXCWLiiXTWJiA@comcast.com...
> > > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
> > > > > Then use:
> > > > > .cssClass property.
> > > > >
> > > > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > > > news:u2ZOnxVVDHA.2544@tk2msftngp13.phx.gbl...
> > > > > > I am dynamically creating rows and cells in code in a Table> > > > I
> > > > > > want to be able to define external style sheets and apply>> >> > > ones
> > > > > to
> > > > > > different cells depending on how I want each one to look like.
> > > > > >
> > > > > > How do I do this?
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Jeremy Chapman Guest
-
Seaside #6
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" <Nospam@please.com> wrote in message
news:%23gCXB6gVDHA.612@TK2MSFTNGP10.phx.gbl...page?> 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" <ss@hotmail.com> wrote in message
> news:OVBubNgVDHA.2156@TK2MSFTNGP11.phx.gbl...> > Great but how do you distinguish one cell from another in your ASPX> It> incorrectly.> > seems that might be the missing part of the puzzle.
> >
> >
> >
> >
> >
> > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > news:u7ty9jfVDHA.1072@TK2MSFTNGP12.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" <ss@hotmail.com> wrote in message
> > > news:%23FuM9TfVDHA.532@TK2MSFTNGP10.phx.gbl...
> > > > Let us see what you've done. Perhaps that will help.
> > > >
> > > >
> > > >
> > > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > > news:OuZ8SDfVDHA.2016@TK2MSFTNGP09.phx.gbl...
> > > > > hm... I've done that, but my css file must be formatted>> > different> > > is
> > > > > there a template available or some example of the css class?
> > > > >
> > > > > "Lenny" <nospam@a.com> wrote in message
> > > > > news:ekqdncgmEvXCWLiiXTWJiA@comcast.com...
> > > > > > <link rel="stylesheet" type="text/css" href="myfile.css" />
> > > > > > Then use:
> > > > > > .cssClass property.
> > > > > >
> > > > > > "Jeremy Chapman" <Nospam@please.com> wrote in message
> > > > > > news:u2ZOnxVVDHA.2544@tk2msftngp13.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> >> > > > ones
> > > > > > to
> > > > > > > different cells depending on how I want each one to look like.
> > > > > > >
> > > > > > > How do I do this?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Seaside Guest



Reply With Quote

