morc said:
no, it doesnt matter what i write for the font name. I tried Arial as u
said and it hasn't changed anything. I thought it was misspelled at
first also. Am i coding it wrong?
Again, this is not a Java question. It is more like a CSS question, but
since I cannot find any CSS newsgroups, you should probably take it to an
HTML group (of which there are several).
There could be any number of things wrong. A few random ones off the top
of my head:
(1) Your browser doesn't support CSS.
(2) Some HTML/CSS error earlier or later in the page is causing your
browser to choke, and thus misrendering this section.
(3) Whatever <%=data_body%> evaluates to contains its own CSS style
overriding the style you've placed outside.
(4) It IS working, but you have incorrect expectations on what the
output should be.
My advice:
(1) Use the "View source" feature of your browser.
(2) Try validating the HTML and CSS being produced. See
http://validator.w3.org/
(3) Remove JSP from the equation. Try just generating a static page
which the CSS styles that you want.
- Oliver