Question Locked

Font Size in XLS Style Sheet

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm an XML newbie, and need some assistance with setting the font size in my xsl style sheet.

When I add the tag to my style sheet, the size and face will change on the header text in the document, but will not change on any of my tables. I've tried putting the font tag within the

tag, with no luck.

Does anyone have any idea what I'm doing wrong?

5 replies

by ashij

Hi! GSG have you tried associating a stylesheet with the XML file. In my brief (4 years) of web designing (although I haven't done much work with XML), I have found that it is much easier to edit one file than to look through thousand lines for a single font tag.

In case you want to keep the font tag and use it, please post the code (make sure to enclose it with "pre" tags

If you like the idea of stylesheet, look for examples on the web or post back.

Later!

Edit:making it pretty

by thumbsup2

In addition, the FONT tag does not apply to the TABLE tag. In CSS it can, but not in HTML. It should be between each individual cell tags (TD and /TD or TH and /TH). And, better yet, between the P and /P tags within each cell.

Like the previous poster said though, it's much easier to apply some style one time to a style sheet than it is to search for and find hundreds of FONT tags in a table.

In the style sheet, you might have one font for the BODY (ie: body {font-size: 12px;} ), then one font size for a table (ie: table {font-size: 10px;} )

You might even play with creating a table CLASS so that only some tables get that size of font in them (ie: table.mine {font-size: 18pt;} ) and then in the TABLE tag itself, you type class="mine"

If you want to learn CSS, here is the main page from the W3C:

http://www.w3.org/Style/CSS

More specifically, here is the most recent specification (rules) for CSS 2.1

http://www.w3.org/TR/CSS21/

.

by gsg

After playing with this, it does seem that CSS is the way to go. I'd played around and did find that I could change the font if I put it within the cell as you noted above, but that was WAY to cumbersome.

I appreciate all the help.

This discussion is closed to new replies.