stylesheet for DataGrid

G

Guest

Hi

How do I det the font on my DataGrid from the stylesheet? I have tried:

..Grid
{
text-decoration: none;
font-family :Arial;
}

Thanks
Julia
 
G

Guest

Hi

The strange thing is that it is the font that is not working. I have now
tried:
..Grid
{
font-family:Elephant;
background-color:Lime;
}
and the color of my datagrid is Lime but the font is NOT Elephant.... what
can be the problem?

Thanks
J
 
G

Guest

Hi again,

I had to add the td to the stylesheet:
..GridItem td
{
font-family :Elephant;
}

/Julia
 
E

Eliyahu Goldin

Julia,

With your stylesheet all you have to do now is to set the grid's CssClass
property to "Grid".

Eliyahu
 
G

Greg9Strat

CSS is a cascading schema, so if you assign the font-family of
"Elephant" to the grid (HTML table on client-side), then everything
underneath it should follow, unless you specified somewhere else in
your stylesheet that <tr> or <td> tags should have something else...

Another word of advice: don't assign a font-family just one value -
assign it 2 or 3. For example, not everyone will have your font
"Elephant" installed on their computer. Therefore, assign it something
like this:

..Grid { font-family: Elephant, Arial, Helvetica; }

In this example, there is a font that should cover your system, a
Windows PC, and a Mac... this just increases the usefulness of your
CSS.

Happy coding!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top