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
1answer
28 views

Changing color of field label when Checkbox == True

I asked this question on another forum, but I guess it would make a bit of sense to ask on a SalesForce forum. My goal is to have a checkbox field named "Inactive" and whenever the checkbox == false, ...
1
vote
1answer
19 views

Can't add a font to a custom email template

I've been trying for a while to add a custom font to a custom email template. The issue is the following: on the preview screen, the text font is correct and I see the email as it should be; whenever ...
0
votes
2answers
47 views

Add CSS classes and repeating header to Visualforce PDF

I have a Visualforce page that renders as a PDF. It displays a table of data and an image on the header on each page: <apex:page renderAs="pdf"> <head> <style type="text/css" ...
1
vote
1answer
59 views

Embedded visualforce page get truncated at the end while shown from IE9, but works fine in chrome with default page resolution

grid shown from Chrome: grid shown from IE9 : is there any solution to show the datatable automatically adjust to the salesforce default page size, and what is the mechanism of doing this? ...
1
vote
0answers
29 views

apex:outputfield on hover display value using tooltip

I have a datatable with css overflow : hidden. Now for big digit numbers, I want for a particular column, 15th here, enable on hover show value using tooltip. The hover part is working fine and ...
1
vote
1answer
47 views

Visualforce renderAs PDF sandbox - production difference (Failed to load resource: net::ERR_CACHE_MISS)

We have a visualforce page rendered as PDF that uses some tables and css for simple styling, the problem is that in the production org it's not displaying any of the css (we are even using some old ...
0
votes
2answers
31 views

Populate CSS value from the controller

I have a data table on my vf page and I want to set the width of td and th. Now this width depends on the number of columns present in the table which are dynamic. So if there are 8 columns the width ...
0
votes
1answer
35 views

how to add img url to apex css style

I am trying to add a background image to a tab in my salesforce Account tab. Below is the code that i am using. Active should give me an url to image that looks like this. Which should be the ...
2
votes
1answer
24 views

commandbutton changes its postion when shown using inline-edit shownonedit from when shown using javascript function

I have 2 commondbutons inside a div, initially display hidden . <div style="width:1000px;height:50px;text-align:left;"> <apex:commandButton value="Save" ...
1
vote
1answer
30 views

Display a pdf pages rerendred with visualforce horizontally

I have a visualforce rerenderAs pdf, my question is if there is a way to display my pdf pages horizontally, not vertically. Thank you
1
vote
1answer
27 views

How to highlight the CommandLink in Visualforce page

Can anyone tell me how to highlight the command link(similar to tabs) in visualforce page? For example There are four command links in my vfp. like commandlink1,commandlink2,commandlink3 and ...
2
votes
1answer
83 views

Is it possible to add the custom style for Dependent Picklist

Is there anyway to add the custom style for dependent picklist in viusalforce page? I have created the visualforce page with custom style dependent picklist . But it works for only contolling field ...
2
votes
1answer
103 views

Font files in Static Resources resolve to 404

I have a CSS file in the Static Resources and in that I have styles for specific fonts. These fonts are also in the Static Resources. If I paste the URL for the font files (ie. font.ttf) into the ...
1
vote
2answers
52 views

Column background color in pdf

Please someone let me know how to get a colored background of a column in pageblocktable in an apex visualforce page with renderAs pdf. I have tried with this. It works in pages but fails for pdf. ...
0
votes
0answers
55 views

Windows Surface Pro Tablet media queries in S1

Are there media queries that will target the Windows Surface Pro Tablet in portrait and in landscape modes? I've tried the following but the styles are not changing on orientation change. @media ...
0
votes
0answers
21 views

How to restrict the data according to the dimension of a table in VF page rendered as PDF

Please consider the following scenario and help me with a probable solution: I am rendering a VF page into a pdf. At a pre-defined location on the page, there is a (using apex:repeat) with specific ...
2
votes
1answer
62 views

Theme for all of salesforce pages

I have been tasked with modifying our salesforce page to look like our company's theme, but it seems like Visualforce is the only way and that I have to create one for each page that exists within ...
7
votes
1answer
79 views

Should I add Sandbox support to VFFiddle? [closed]

I'm working on some updates to to VF Fiddle. I want to gauge the interest in running fiddles in sandbox and get some feedback on the security concerns. Because fiddles are not reviewed they could ...
1
vote
2answers
57 views

Add transparent color code in apex tag

Hi in my meter gauge I have to add a transparent white color <apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953, #FFFFFF" tips="true" /> i.e. I need: colorSet= "#78c953, ...
2
votes
0answers
71 views

Get print of visualforce page containing different charts

I am creating a dynamic dashboard using Vf Charts. I am having about 18 different charts on a single visual force page. I have added a print button on the visualforce page to print all the charts on ...
0
votes
0answers
57 views

Print AMPscript Variable inside HTML <tag> as attributes

So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content areas ...
0
votes
0answers
32 views

Dependant dropdown list not using defined styleClass

I have inserted two two dropdown lists in my visualforce page, the first which is simply a filter and the second with the filtered products. These work as expected in my visualforce page, with the ...
0
votes
1answer
470 views

column width for pageBlockSection

So I am using a pageBlockSection with two columns to display some details for particular SObjects. The first column would hold a label and the second column would hold the value for that particular ...
1
vote
1answer
62 views

Reference Static Resources or Documents with direct link and no login to system

Is there a way to access static resources or documents without being logged into the system. So if the file in not marked as "Internal Use Only", can I provide a direct link to it for others to access ...
1
vote
1answer
119 views

static resource cache old image

I have css file in static resources which refer to Images folder(.zip) to apply images to css classes. The gotcha is when i replace some images from images folder, on page it still showing older ...
0
votes
0answers
103 views

Customising the PKB article output

I'm new to Visualforce and have been tasked with branding the customer-facing Public Knowledge Base. Part 1: I have removed the base CSS from the main template, and added my own styling, which ...
3
votes
2answers
316 views

Remove Last Page from the PDF

I have created PDF of Multipage, where in VF page I am using <apex:repeat .......> ///////// some code <div style="page-break-before:always;"/> </apex:repeat> But it adds a ...
5
votes
3answers
371 views

Where to store css when developing in salesforce?

When having a custom style, would it be better to store them as static resource or just dump those styles inside Visualforce page as inline CSS? If putting them as static resource, what are ...
1
vote
1answer
75 views

Adding bold style to outputText seems not to work

I'm using a custom table that replicates the design of a pageblockTable. Using th will output the text in a bold style. Code Snippet: <table id="pageblockTable"> <thead> <tr> ...
0
votes
1answer
39 views

Visual force page as pdf

I a m trying to get a visualforce page as a pdf page, i am using some css code also, but on pdf page no css class is added to fields, but inline css i can add to fields, someone tell me how to add ...
0
votes
0answers
14 views

Text box size issue for IE [duplicate]

IE Issue With Input Box Size. I created HTML and same HTML working fine. When I put same HTML in VF component it's working fine for Firefox & Chrome but for IE, text feedback box size shrinking ...
0
votes
3answers
307 views

To Change Font color for standard Case fields depending on picklist value

I want to change the color of the Standard field of a Case object say CaseNumber. It is a mandatory field for the object. The criteria for this is that whenever a Case Status value is changed, that is ...
0
votes
0answers
70 views

2 vs 1 columns in visual flow causing unneeded white spaces

If you are creating a visualflow, styling is messy... Salesforce already offers some sort of workaround by exposing some styles but it's still limited. The biggest problem I'm having with flows (like ...
0
votes
3answers
87 views

Disable an outputPanel

Is there a way to disable an <apex:outputPanel> ? I have an <apex:selectList> and on the onchange event I want to disable the panel. I tried : style= "disabled: true;" But it doesn't ...
4
votes
3answers
567 views

How to mimic the look of a standard detail page in a VisualForce page

I have a standard Account detailpage, where I want to add a small VisualForce part in a column on that page. So I created a VF page that looks like this <apex:page standardController="Account" ...
2
votes
1answer
61 views

How can you display an email image for mobile devices only?

We are trying to display an image only if the user is on a mobile device. Here's what we have so far: div style="display: none; max-height: 0px; overflow: hidden; line-height: 0px;" ...
21
votes
4answers
1k views

Why do we still need to hack the Sidebar? Usecases - Workarounds - Alternatives

Since it seems to me, that a lot of people still need sidebar workarounds, I would be interested to learn about the use-cases, experienced challenges and (most important) possible strategies to avoid ...
7
votes
2answers
429 views

Visualforce PDF and CSS overflow: hidden

I am trying to create a Visualforce page that renders as PDF. My problem is that I want to display as much of a rich text field as can fit. If I use overflow: hidden in my CSS, the text is displayed, ...
0
votes
0answers
104 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
499 views

Position elements side by side within a single pageBlockSection column

On my VF page I need to put a textbox with another textbox right to the side of it. This seems to be impossible to do. Here is how it is set up at the moment. <apex:pageBlockSection ...
0
votes
2answers
58 views

How to prevent common.css and other styles from being loaded?

I set the apex:page parameter standardStylesheets="false". But some stylesheets are still being loaded and affecting display, such as common.css: ...
0
votes
0answers
755 views

How to change Font style, font size and background of Pageblock table in VF page?

I have created a Visual force page and using Jquery plugin in it...but when i am applying my style to the table for changing the font size, type and background color of the table its not working. ...
1
vote
2answers
131 views

Help with positioning pie chart

How can i position pie chart on the left of bar chart . Right now it pie chart gets overlapped on bar chart . Below is my code which displays bar chart and plotted line chart. Referred to link?: ...
1
vote
1answer
43 views

Change default font size of Customer Portal

Is there a way I can change the default font size used in the Customer Portal? From looking at my Firefox inspector the default sizes are in portal.css, do we have access to this?
2
votes
1answer
34 views

Problem in using $Component notation

On my visualforce page there is an input text field and two buttons.I am trying to hit the second button on my page with the 'enter' key by calling a javascript on text field, where in my target is on ...
0
votes
0answers
70 views

Visual Force header css breaks when compatibility mode forced to be turned off

Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=edge'); I have added the above code to my APEX class so IE will force compatibility mode to turn off. This is achieved well. However ...
1
vote
2answers
3k views

CSS styling for jquery DataTables - can't seem to make padding go away

I am new to styling and CSS, java, all that.. I've made a jquery datatable and am attempting it to style it to my requirements. There is cell spacing or padding that is not going away no matter what I ...
2
votes
1answer
90 views

Id attribute on apex elements, not the same as html elements?

Does the 'Id' attribute work the same for apex elements as it does for html elements? The anchor tag below, gets the background image, but the outputlink does not. Am I doing somthing wrong? Can ...
4
votes
1answer
313 views

javascript Change div color based on controller value

I have a div which is a circle within a circle. I want the outer ( class="circle") circle to change color based on value of a number. for instance, red if greater than 20, yellow if less than 10 and ...
5
votes
1answer
235 views

Setting Font Face for Visualforce Email PDF attachments “messaging:attachment”

I'm having lots of trouble setting font faces for VF Email PDF attachments (see my code below). I've tried the conventional "font" tag with no luck, even CSS doesn't work! What am I doing wrong? ...