• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with fonts

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello every one i am using struts framework for my project and i use css for display settings. in my css i have set fonts to arial, but most of the time the jsp rendered has times new roman fonts and when i refresh the page the fonts become arial what could be the cause and please provide a solution
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by taher hussain:
hello every one i am using struts framework for my project and i use css for display settings. in my css i have set fonts to arial, but most of the time the jsp rendered has times new roman fonts and when i refresh the page the fonts become arial what could be the cause and please provide a solution



I'm gonna throw a grenade out there, but I think this is what's happening...

The DIV tag you are pushing the Java returned data into does not have its font-style explicitly set in your CSS. I'd try that first before beating your head against the wall... Asynchronous data doesn't need a page refresh for CSS to work, so I think it's something with your CSS/XHTML. The times new roman is probably your browser's default font-type, so that's probably why it's coming up as that initially.

What browser are you using?
 
reply
    Bookmark Topic Watch Topic
  • New Topic