Questions tagged [styleclass]

The tag has no usage guidance.

1
vote
1answer
19 views

How to hide page header in lightning component

I want to hide a page header from an appHomeTemplate I have looked at several similar questions but none of them give an answer. I have used .THIS.slds-page-header { display: none; } in my page ...
0
votes
0answers
34 views

How to add the css in lightning component style class

I am using a third party lightning component in 'lightning Flow' to display dynamic questions. Some checkboxes are getting displayed via that lightning component but their width is set to 100%. I ...
0
votes
1answer
88 views

How to add css to override existing styling in lightning component

I am using an existing lightning component that displays some checkboxes. I am wondering if there is a way to reduce the size of the checkboxes. <design:component > <design:attribute ...
0
votes
1answer
113 views

Style apex select option in Bootstrap theme

Please help me to style custom picklist in bootstrap theme. So I have a controller with code: public List<selectOption> getSettings() { List<SelectOption> options = new List<...
0
votes
1answer
36 views

styles are changing in <li> , If I put <li> in outputpanel

I am looking to display labels based on the condition for that I am trying to use Outputpanel. But, If I use Outputpanel "li" tag styles are changing and Underline is coming on labels when we put ...
0
votes
1answer
1k views

Custom Style on lightning:textarea

I want to add custom styling to text area height, border, color etc This is Component <lightning:textarea name="notes" value="" class="topText" label="Notes" maxlength="300" /> This is css ...
0
votes
3answers
1k views

border-radius table visualforce page

I am trying to put some styling to my table with a border-radius in my visualforce page but when rendered to pdf I dont see the rounded corners. Is this not possible with render to PDF and if not are ...
0
votes
2answers
258 views

What could be the reason for app.css overriding external styles. How can we prevent it from happening

I have a external CSS stored in static resource. I am referencing style class from that CSS in many places( lightning components and visual force pages). After winter 18 update,few of my styles ...
0
votes
0answers
15 views

Lightning supresses custom classes in VisualForce page

I ran into an issue where a VisualForce page containing custom style classes (in the head tag), and which displays fine in Classic, gets the custom classes supressed in Lightning. If raw styles are ...
4
votes
2answers
7k views

Setting Dynamic style classes for Aura components

As in doc it should be possible to set style classes for #[Lightning] components using a Ternary operator. <div class="{!v.IsTest ? '' : 'slds-hide'}">test</div> But it seems when I do ...
2
votes
1answer
100 views

Shift Command button position to float center

I have a requirement to shift an apex command button to middle or center position. I can get the feeling that if I can achieve float: center then it would be my desired location for the command button,...
0
votes
0answers
177 views

Styles not coming up perfectly on dependent picklists used as input-fields

I am creating a visualforce page using lightning design system style classes.The issue which I am facing is that I am using styleClass attribute in my two picklists shown using These picklists are ...
1
vote
2answers
182 views

Bootstrap Nav Tabs Becomes Inactive on ReRender

I have a Bootstrap Nav Tabs (2 tabs) with some content in both tabs. The first tab has PageblockTable with StandardSetController Pagination. When I click on Next button. The next set is rendered ...
0
votes
1answer
3k views

How to style radio button labels in VisualForce Page

I am having a lot of trouble styling the radio button labels in my page. In the image below you can see that the style of the radio button labels is completely wrong - they should all be the same as ...
0
votes
1answer
1k views

Add styleclass to selectlist same as the style of the first select option child on page load

I have a selectlist with selectoption styled individually. I want to show the background color of selectlist same as the first child option on page-load. I've this code which is not working on ...
0
votes
2answers
174 views

How to use outputField in a query string

I am trying to take the value of an outputfield in a query string but not sure how. What I have works for an inputField but not outputField. Any ideas? VisualForce Page <apex:page ...
2
votes
1answer
2k views

Change background color of one of two VF forms on page

I have a VF page in which I have a form (Total two forms) which includes a pageblock section. I want to change the background color of the form using CSS. How do I do it? I have tried creating a CSS ...
0
votes
2answers
1k views

Background colored column headers in a pdf apex page without using pageblocktable

I have a requirement to show colored backgrounds for column headers of tables. Can someone suggest a way out without using pageblocktable? Please find my controller class here. public class ...
0
votes
0answers
272 views

Using Salesforce style/css for table sort order

I've created a custom page which apes the standard related list layout. I want to use the same CSS styling to indicate that sorting is on a particular column. This is what it looks like on a standard ...
2
votes
1answer
3k views

Multiple styleClass for a VF component

Is there a way to put in multiple style classes? I want to take the btn class and add on a custom style class on my page called additionalStyle.