Apr 14, 2017, 12:02 PM
68 Posts

font specification in a CSS being ignored

  • Category: Styles and Themes
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 3

I use style sheets for xPages all the time, but recently inherited several xPages applications, and have not noticed this issue before:

In a view control on an xPage, the view columns use a style called "viewColumn".  This style sheet includes a line that says:

font-family: Calibri;

But the xPage ignores that font selection.  It uses a default sans serif font instead, which is too big and doesn't match other parts of the xPage.  Why would a view column ignore the font setting in a style sheet? 

Apr 14, 2017, 2:01 PM
33 Posts
client or browser?

Is this in the client or a browser?

Apr 14, 2017, 2:07 PM
68 Posts

Sorry, I forgot to include some details!  This is in Firefox.

Apr 17, 2017, 3:52 AM
33 Posts
Try F12

I suspect there is a CSS element that is applying to the element in question.


Open the page, hit F12 to bring up the developer tools.  You'll be able to select the misbehaving element using the inspector.  The computed CSS is shown in the right hand pane and can be used to see where it is getting the style font from.