Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language.

learn more… | top users | synonyms

1
vote
0answers
28 views

CSS not displaying border when rendered as PDF in 2nd page

I have created a visualforce page rendered as PDF.But in PDF the first page is showing with lot of whitespace on the top and in the remaining pages the border on the top is not displaying . i think ...
1
vote
1answer
15 views

Problem adding css to Visualforce Page

Inline css is working. But I'm unable to call from an external css the same code. Following is in VF.. <apex:stylesheet value="{!URLFOR($Resource.style, 'style.css')}"/> And my style.css ...
2
votes
2answers
112 views

How to apply third “if” condition in styleclass?

I have a third class Class3 that needs to be applied for Status__c == 'In Progress'. This is my code. styleClass="{!IF(account.Status__c == 'Closed','Class1','Class2')}"/> Basically I'm ...
1
vote
1answer
19 views

Add custom apex:inputFile icon/image

I'm using an inputFile button to upload some files... The button renders on my page as a grey 'Choose File To Upload' button. Can I add my own custom icon/image in place of the button? ...
1
vote
1answer
25 views

Can I change the color of a VF table cell dynamically?

I have a picklist called Status, displayed in a Visualforce table with fields like .. Closed Open Critical <div id="col1"> <apex:column > <apex:facet ...
2
votes
1answer
75 views

Is there a way to overwrite the CSS of apex components in salesforce?

I'm using a pageBlock component, it's obviously very handy for storing my returned object/s but I really don't like how it looks. As I'm quite new to apex/salesforce, I'm wondering is there a way to ...
2
votes
1answer
45 views

Preloader in Visualforce page and align text in the center

I have added a circle by using the HTML SVG tag in a VF page. When i render that page as PDF, it's not showing that circle. Is there another way to add small circle but also to be visible when ...
1
vote
1answer
39 views

highlight single selected row in table

I have a table with rows, i want to highlight the selected row to do some actions on it. I used onRowClick and give it background color, but if i click on anothe row, it highlight two rows .. how to ...
0
votes
0answers
15 views

issue with app selector in IE 8 salesforce

I am facing UI issue on salesforce app navigation dropdown in IE8 standard: we dont have any css added for home page components, Please suggest any solution. Issue is not reproducing on any other ...
1
vote
1answer
50 views

How to add Flow-Specific CSS Classes?

I've just created a Visualforce page with an embedded flow. This is the code so far: <apex:page controller="FlowController" standardStylesheets="True" showHeader="False" sidebar="False"> ...
0
votes
1answer
74 views

Issues moving a page into VisualForce

have a page that was coded outside of force.com and I have to move it into a Visualforce page. Then, just for kicks, I took the source of the page out of force.com (where it doesn't work) and created ...
1
vote
2answers
37 views

How can I prevent users from styling text in a custom Exact Target template?

My company has several departments that would like to have their own email newsletters. In order to maintain brand consistency, we would like to hard code certain text styles into custom email ...
0
votes
0answers
29 views

how can i re-size the pagablock table row ? Is It Possible?

how can i re-size the pagablock table row ? i want to resize the pageblocktable here is the demo table what i need http://www.ita.es/jquery/jquery.kiketable.colsizable.htm i cant able to stretch ...
2
votes
0answers
44 views

100% screen width not working properly in Salesforce1 on iPhone

I'm working on an app for Salesforce1. S1 has a menu on the left and a news feed on the right, both hidden until revealed by swiping the screen to the left or right. My body width is set to 100%, ...
1
vote
1answer
31 views

How to edit link properties as underline color in ExactTarget content editor?

Can't find how to change link underline color in content editor. It seems that ET content editor putting underline to all text links by default and you can't remove them at all + link color is ...
3
votes
2answers
214 views

Visualforce: Adding CSS class from Controller

Is it possible to add a CSS class to one of the Visualforce page objects from controller? What I want to achieve is to handle one exception in controller. From catch block I want to be able to hide a ...
0
votes
1answer
43 views

Is there any way (CSS, static resource?) to change the font size of all dynamic choices in Visual Flow?

I have been successful overriding the font size for different field labels but not the elements of my dynamic choice fields.
7
votes
1answer
43 views

Why doesn't CSS overflow work in Visualforce tab?

Does anyone know how to get the CSS overflow property to work on a Visualforce tab? The concept I'm going for is possible, as demonstrated on JSFiddle. However, I cannot seem to apply the same concept ...
1
vote
2answers
545 views

Change style of pageblock header standard style

I want to change some style attributes of pageblock header, like padding-bottom or hight.
6
votes
4answers
258 views

How to ignore Salesforce CSS on VF Page (with header)

I've been working on a Visualforce page using remoting, and am trying out building a custom UI to go along with it (not using any VF tags for the UI). While I'm aware that you can leverage ...
4
votes
1answer
43 views

In Site.com, how do you use browser-prefixes in your CSS?

I'm creating a button element with a linear-gradient. But some mobile browsers don't yet support the CSS linear-gradient property without browser prefix. Specifically I want to use ...
2
votes
0answers
69 views

Multiple column layouts in renderAsPDF vf page

I need to generate a pdf vf page with multiple column layouts. I read there is something in the css 3 specification: http://www.w3.org/TR/css3-multicol/ But when I tried: div.wrapper{ columns: 2; ...
3
votes
1answer
245 views

Change color theme of visualforce page

Good evening everyone. I would like to know if it is possible to change a visualforce page color the same way we choose a color for each object. At the moment, I have this VF page that can be either ...
4
votes
2answers
340 views

How can I give tags of tag custom style?

I've PageBlockSection tags inside PageBlock tag, and I want to give all PageBlockSection tags inside PageBlock tag with specific id a custom style. Any Idea ? <apex:pageBlock ...
17
votes
1answer
491 views

sfdc-styleguide usage questions in Salesforce1

I am trying to follow http://sfdc-styleguide.herokuapp.com/ 's usage of components and style classes. I have been unable to find references to any of the style classes described in the component ...
4
votes
3answers
76 views

Issue with VF Pdf

I was able to display tabular report in vf pdf format.this report contains large no of pages. using for displaying table body, but table header is coming in first page. i need to display header in ...
2
votes
0answers
81 views

change margins / orientation in an attachment

I'm adding an attachment to an email, and i want to either change the margins to the attachment OR set the orientation as landscape. How do I do that? My css isn't working. <messaging:attachment ...
1
vote
2answers
616 views

Not able to get the css working for table

I have created a Pdf in which have a table which have border css. But the table border get display only when it is a VF page the CSS is not working when VF page is renderAs="pdf". I want it to be ...
4
votes
3answers
619 views

How to change the header style for salesforce standard pages

Is there any way where I can change the header style of standard salesforce pages. I have a hint where I can upload CSS into documents and that will change the header style. Any body know about this ...
1
vote
1answer
49 views

CSS is not applied in dev org

I have two orgs, dev and sandbox. I've written a VF page using VF components like pageblock and applied my own CSS to them. The problem is that in my dev org the new style is not applied while in the ...
2
votes
3answers
575 views

Include both Html page and its CSS content in static resources and reference in Visualforce Page

I have included the html page and its css content in static resource and I am trying to reference the html content in visualforce page.HTML file will be used as header and footer for all of my ...
2
votes
1answer
402 views

How to Add Custom CSS Stylesheets to Chatter Communities?

Is it possible to add custom CSS stylesheets to Chatter Communities, without building a completely custom site using Force.com Sites or Site.com? Chatter Communities allows customization by inserting ...
3
votes
1answer
515 views

Not able to see table border drawn by css when renderAs=“pdf”

I am trying to create a invoice. In this invoice i have used css to draw a single line for table. But the the single line table is visible on Vf page but when we renderAs="pdf" the page. The Line ...
2
votes
2answers
2k views

how do we access the image files from static resource in css?

I am trying to display images from a static resource in a css property. .PDF { width:50px; height:50px; background-image: url("{!URLFOR($Resource.FileTypes, 'png/pdf.png')}"; } What i ...
1
vote
1answer
231 views

How to add CSS file into an iframe in HomePageComponent?

I have to link a css file on home page in customer portal. I want to give this link of css file into home page component, but i am not getting how to add it.
2
votes
1answer
577 views

Multiple line itemLabel in apex:selectOption

I have a situation that should be pretty easy, but I can't seem to make it work. <apex:selectRadio id="restrictRadioBtns" layout="pageDirection" ...
2
votes
1answer
650 views

Freeze vertical columns in horizonal scrolling visual force page (like excel freeze pane)

let's say have 20 columns total. I want to fix till 5 columns. (means only important ID, etc will be fixed while doing horizonal scrolling) How can I achieve it in Visual Force Datatable ?
4
votes
3answers
581 views

Using Twitter Bootstrap in Visualforce

I wanted to create a image slider, and i got a few pointes that lead to "Twitter Bootstrap". Now i have decide to dig in, i tried the basic example on Twitter Bootstrap in Visualforce ( Which does ...
2
votes
1answer
898 views

Fixed Headers in a DataTable

I have a apex:datatable that I am using and I have implemented apex:facets as the headers for each column. I am attempting to allow scrolling for this particular table however I do not want the header ...
3
votes
2answers
234 views

Customizing CSS for Chatter and Repoerts & Dashboards

I need to override the css styling of the user profile page. The overriding of css is mostly stuff like changing page background color from blue to red, changing page font to Verdana 9pt etc. I ...
1
vote
1answer
501 views

How to fix summary field appearing on visualforce form table?

Great day! I need help with formatting a table in a visualforce form that's showing a table of related child records. It is comparable to the opportunity product table wherein products with prices ...
0
votes
1answer
1k views

HTML/CSS: In-line Divs

I feel like this is such a simple issues and yet I can't seem to figure out the problem. All I want are two divs to be displayed side by side but yet I keep getting them to display on top of one ...
1
vote
0answers
363 views

Display hover using LookupHoverDetail along with scrollable outputpanel

I'm trying to create a pageblocktable that uses lookuphoverdetails to display the mini page details for Accounts on a custom object. The problem that I'm experiencing is that the pageblocktable is ...
2
votes
1answer
235 views

How to change the styling on every page?

I am trying to override the css of the home page and other standard pages. And below is the approach I am following, but seems like I am missing something. Could someone help on this? Approach: 1. ...
1
vote
1answer
620 views

Trying to change the color of Create New button on left side bar of a standard Salesforce page

I am trying to change the css style of the standard Salesforce page. So far I have successfully changed most of the element style. I created a custom component in the left side bar and have overridden ...
4
votes
3answers
2k views

Overriding Salesforce CSS with custom CSS

I wish to change the CSS styling of standard salesforce pages with my own styling. I have created a custom sidebar component named CustomCSS and attached it to the left sidebar. I have then enabled ...
0
votes
1answer
156 views

Dynamically assign rowClasses attribute on <apex:dataTable> component

I have a VisualForce page that render into a PDF file with the following component declaration: <apex:dataTable value="{!someSObjectList}" var="SObj" rowClasses="{!IF( MOD( pos, 2 ) == 0, ...
0
votes
2answers
730 views

Setting color for multiselect picklist

EDIT:Sorry for not specifying this critical part. I want this to be done on a Multi select picklist on standard salesforce *(even if it means hacking the side row by adding a dummy component) and not ...
12
votes
2answers
2k views

Changing the color of a custom button

Is there a way of changing a custom button color? Not a button on the visualforce page but rather the ones created under custom and links on an object. Thanks. -K
3
votes
3answers
867 views

Can I apply a custom stylesheet to modify the look and feel of a standard object detail page?

Has anyone found a technique for injecting a custom stylesheets such that I can modify how the standard page layouts look? For example, increasing the size of key fields. Update I don't believe ...