Note that there are some explanatory texts on larger screens.

plurals
  1. POon css overriding fail even full path css (Primefaces)
    primarykey
    data
    text
    <p>I am trying to override background of PF slider with following codes</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets"&gt; &lt;h:head&gt; &lt;link rel="shortcut icon" type="image/x-icon" href="#{request.contextPath}/images/favicon.ico" /&gt; &lt;title&gt;&lt;/title&gt; &lt;/h:head&gt; &lt;body&gt; &lt;f:facet name="last"&gt; &lt;h:outputStylesheet library="css" name="css.css" /&gt; &lt;/f:facet&gt; </code></pre> <p>relevant part of css.css</p> <pre><code>.usagePanels.myslider.ui-widget-content, html body div form#formData div#sliderDIV.ui-panel div#sliderDIV_content.ui-panel-content table tbody tr td table tbody tr td div#wwwpanel.ui-panel div#wwwpanel_content.ui-panel-content table#j_idt29.ui-panelgrid tbody tr.ui-widget-content td div#j_idt31.myslider { background-color: black!important; } </code></pre> <p>It produces following html, but slider background is not black.</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;link type="text/css" rel="stylesheet" href="/DataUsageCalculator/faces/javax.faces.resource/theme.css?ln=primefaces-blitzer" /&gt; &lt;link type="text/css" rel="stylesheet" href="/DataUsageCalculator/faces/javax.faces.resource/css.css?ln=css" /&gt; &lt;link type="text/css" rel="stylesheet" href="/DataUsageCalculator/faces/javax.faces.resource/primefaces.css?ln=primefaces" /&gt; &lt;script type="text/javascript" src="/DataUsageCalculator/faces/javax.faces.resource/jquery/jquery.js?ln=primefaces"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/DataUsageCalculator/faces/javax.faces.resource/primefaces.js?ln=primefaces"&gt;&lt;/script&gt; </code></pre> <p>when I inspect applied styles on sliders and disable line </p> <p>.ui-widget-content { <strong>*background: url("/DataUsageCalculator/faces/javax.faces.resource/images/ui-bg_flat_75_ffffff_40x100.png?ln=primefaces-blitzer") repeat-x scroll 50% 50% #FFFFFF;*</strong></p> <p>}</p> <p>with firebug it works. Even I use full path css it does not work normally. What am I doing wrong?</p> <p>Applied Styles (Firebug output)</p> <pre><code>element.style { width: 300px; } .usagePanels.myslider.ui-widget-content, html body div form#formData div#sliderDIV.ui-panel div#sliderDIV_content.ui-panel-content table tbody tr td table tbody tr td div#wwwpanel.ui-panel div#wwwpanel_content.ui-panel-content table#j_idt29.ui-panelgrid tbody tr.ui-widget-content td div#j_idt31.myslider { background-color: black !important; } .usagePanels .ui-widget-content { background-color: #F5FAFF !important; } .sliderDIV .ui-widget-content { } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget .ui-widget { font-size: 1em; } .ui-slider-horizontal { height: 0.8em; } .ui-slider { position: relative; text-align: left; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-corner-all { border-radius: 6px 6px 6px 6px; } .ui-widget-content { background: url("/DataUsageCalculator/faces/javax.faces.resource/images/ui-bg_flat_75_ffffff_40x100.png?ln=primefaces-blitzer") repeat-x scroll 50% 50% #FFFFFF; border: 1px solid #EEEEEE; color: #333333; } .ui-widget { font-family: Arial,sans-serif; font-size: 1.1em; } .ui-widget-content { color: #333333; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget .ui-widget { font-size: 1em; } .ui-panelgrid { border-collapse: collapse; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget { font-family: Arial,sans-serif; font-size: 1.1em; } .ui-widget-content { color: #333333; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget .ui-widget { font-size: 1em; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget-content { color: #333333; } .ui-widget { font-family: Arial,sans-serif; font-size: 1.1em; } .ui-widget-content { color: #333333; } .ui-widget, .ui-widget .ui-widget { font-family: Arial; font-size: 12px !important; } .ui-widget-content { color: #333333; } .ui-widget { font-family: Arial,sans-serif; font-size: 1.1em; } element.style { text-align: center; } body { font-family: "Lucida Grande","Lucida Sans Unicode","Lucida Sans","Verdana,Arial,sans serif"; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload