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

0
votes
0answers
19 views

Using bootstrap without using VisualStrap

I know this has been asked multiple times but as usual there was no definitive conclusion. Same old story - I amk using bootstrap but my Salesforce UI gets distorted. I know the solution of using ...
1
vote
1answer
18 views

Reference Image in Salesforce Documents as CSS Background-Image

Is this possible to use a image stored in documents as a background image in css? So something similar to this -- background-image: ...
0
votes
0answers
10 views

CSS version will not update in Site.com. How to force it?

For some reason, this update to Site.com is not updating the version call for the css file. Site.com forces the call to the css file in the head to have a version number. (eg, ...
1
vote
1answer
79 views

How to change color on One particular pageBlockSection?

I have Change the color using CSS. But i want change the color on one particular pageblocksection. How can i do that. I tried several methods, but does not work. Thanks <apex:pageBlockSection ...
0
votes
1answer
44 views

Salesforce Apex pages not rendering CSS properly on mobile devices

I've added styling to two pages in one of our SalesForce sandboxes that are using a shared external stylesheet as well as Bootstrap. They're sign up forms for a program that we're going to be ...
1
vote
1answer
23 views

apex:repeat styling does not work with renderAs PDF

I am creating custom quote PDF and trying to apply alternating colours for the Product Line table and here is the code that I am using: This below code, does not show alternating colours. ...
0
votes
0answers
34 views

how to hide menubar from a browser without refreshing a page using jquery

I need to hide the menubar from a browser onloading of a visualforce page(onclicking of a custom tab). By using window.open() in jquery we can hide menubar but the page will open in a new window. I ...
0
votes
0answers
29 views

CSS not included in PDF attachment

I am having trouble attaching and emailing a PDF that uses Bootstrap CSS. When opening the visualforce page of the PDF myself there are no issues because the styling is loaded. But in Apex when using ...
1
vote
1answer
20 views

Edit css of standard email page in salesforce

Cases > Activity History > Send an email This "send an email" page has fields like To, Additional To, CC, BCC, Subject, Body My requirement is I have to hide/ not show BCC on this page. I thought ...
1
vote
1answer
74 views

How to render bullet in pdf using css?

I have visualforce page render as pdf.I want to put bullet.The bullet works well in web but not display in pdf. <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> ...
1
vote
1answer
28 views

Visual Force as Excel: Multiple CSS classes not supported?

I'm trying to rendering a VF page as an excel file and css classes are not being applied when you have something referencing multiple css classes. Example: <apex:page showHeader="false" ...
1
vote
0answers
18 views

CSS in community article

We're trying to add styling to an article that will be displayed in the community using css. Is there a way to do that? We tried the following options but none worked: 1. Adding css between style and ...
0
votes
2answers
46 views

How to change the column width in Visualforce

tried this <apex:pageblock id="Selected_PBS"> <apex:pageBlockTable id="selected_contacts" value="{!SelectedContacts}" var="contact" rendered="{!IF(SelectedContacts != NULL ...
2
votes
1answer
25 views

Include style/script component in <head>

I have the following page: <apex:page docType="html-5.0" standardController="Transaction__c" extensions="OptionComparisonDownload" name="Option Comparison" readOnly="true" ...
2
votes
0answers
136 views

How Can I Style a Lightning Component with Bootstrap Styling?

I have a question regarding styling Lightning components. On several occasions lately, I have found myself having to opt for the use of a standard HTML tag styled with bootstrap on which I call core ...
0
votes
1answer
83 views

Styling a Command Link as Command Button

I'm trying to style a command link as a command button and I have the code for this, <apex:commandlink value="Add new Contact" action="{!editNewCont}" styleclass="btn MyBtn"> and my CSS goes ...
1
vote
3answers
73 views

Hide dropdown box generated by salesforce lookup (user) field

I created a custom lookup (user) field and then added it to my Visualforce page <tr><td style="text-align:center;"><b>Engineer Assigned</b> </td></tr> ...
2
votes
2answers
28 views

Font inside label not working

I am trying to add a font tag inside label in apex page. on the page i am getting this code in inspect element but in UI instead of getting getting text in red color i am getting the font tag as it ...
1
vote
3answers
72 views

How to place a footer correctly on visualforce renderas=“pdf”?

I 'd like to ask you how to place the footer in the bottom of page (pdf) . i try to create Email template (invoice ) and according the items the number of page can change . My problem is the footer ...
4
votes
2answers
139 views

Visualforce PDF with dynamic header footer. but Cover Page should not have header footer

I need help in making cover page of PDF different without any header/footer. Rest I was able to complete but how can I remove header/footer from first page that can be used as cover page. <style ...
2
votes
2answers
73 views

HTML table does not let me change table position to center when rendering as PDF

I'm trying to display my HTML table in the center of the page when rendering it as pdf. When I render as HTML it works as expected so I assume that CSS properties for alignment doesn't work properly ...
2
votes
1answer
133 views

Visualforce - Preserve Whitespace in apex:outputText

I've records with fields values containing more than one white space. The White spaces are preserved in the back-end but while displaying it on the Visualforce page, the white spaces are reduced to ...
0
votes
1answer
53 views

How to make salesforce tabs look normal even on adding external style sheets to visual force pages [duplicate]

Hi i was adding style sheet to my visual force page, it is working fibe but it is affecting default salesforce tabs look un-user-friendly. without adding style sheet it is looking like ...
0
votes
1answer
226 views

how to use html link tag in visual force page

i was trying to place css styled tabs in visual force page the code for that is <apex:page > <head> <link rel="stylesheet" ...
1
vote
2answers
56 views

How do I keep my apex:outputPanels separated?

I'm trying to create a page for entering scores based on questions. Each question has a score, some text, and another score. Here is the relevant visualforce: <!-- Scoring Page --> ...
1
vote
0answers
40 views

Using media queries in Lightning component

I am using style attribute to use media queries in lightning components something like this: <style> .legendBox{ background: none!important; ...
0
votes
0answers
14 views

Conditional style in template

I'm building a template on ET, but I am having some issues. In the email, we are going to use stacked images (without border or padding) and, as you know, to avoid white spaces between images, we ...
0
votes
0answers
16 views

apex:inputfiled is in disabled mode for dependent pick list [duplicate]

I've form with dependent pick list.All input fields are displaying properly with the given CSS but only dependent picklist is not showing properly as it contains no values it is in disabled mode.Once ...
1
vote
1answer
88 views

How to remove the grey border?

I have VF page and a button, on click of the button vf page is rendered as pdf. The data is completely clean but I am facing problem with css of the pdf. I have created a table that displays some ...
1
vote
1answer
42 views

Customize Developer Console themes

There is a feature to change text coloring scheme (in Help > Preferences). Unfortunately, on my work monitor, it would render variable names too dark, therefore nearly invisible. Also, ...
1
vote
1answer
60 views

font-weight: bold; does NOT work but background-color: yellow; works in visualforce PDF

I have a class within a .css file in static resource like so: .bold-font-thin-top-border-bg-yellow { width:100%; font-weight: bold; border-top-style: solid; border-width: thin; background-color: ...
0
votes
0answers
18 views

Span tag not always responding to width - changes between orgs

I have the following : SPAN.className{ width: 30px; margin-top: 5px; display: block; float: left; } <span class="className">THIS IS SOME TEXT INSIDE A SPAN ...
1
vote
1answer
176 views

Visualforce Styling

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 ...
1
vote
1answer
129 views

Styling of Component.Apex.TabPanel (Dynamic visualforce tabpanel)

I have created a dynamic tab panel. I wish to style this tab panel's tabs. These might happen using custom css but custom css is working for static apex:tabPanel and not for dynamic tabs created ...
0
votes
1answer
62 views

Get page block table to next page

I am creating and pdf page which is having a Page block table. I am having about 40 + items to display on it. My table is getting break in between. I want to display it on another page with with same ...
-4
votes
1answer
68 views

Can anybody help me showing bullets and numbering when we render as pdf from visualforce [closed]

Want to format description of all records and render as pdf. Formatting includes, Adding bullets and numbering, Font color for description (other than red, yellow, blue, green colors). Thanks in ...
2
votes
3answers
423 views

How can i apply css style for pageBlock title? can i use image as pageblock title?

I want to apply some styles to PageBlock title like changing font color, style and background color. and Can I assign image or logo as pageblock title.. Give me some working example. this is my code: ...
-2
votes
1answer
104 views

CSS is not working with PDF not bale to get alignment and border properly.

I have VF page which I am rendering as pdf. I wrote some css for alignment div. The alignment of div is correct in VF page. But when I convert the page to pdf all the alignment get changed. I have ...
3
votes
1answer
143 views

CSS not working properly

I have VF page where I have css in style. The css works when it is a normal page. Issue comes when we change the page to pdf. When I render the page as pdf the css written on VF page is getting ...
4
votes
2answers
336 views

Visualforce and CSS - nothing

I can't get any CSS to work at all. Am I missing something extremely obvious? EDITED to include URLfor <apex:page standardStylesheets="false" showHeader="false" > <apex:stylesheet ...
3
votes
1answer
109 views

float table to bottom of PDF?

For our quote PDF i am trying to get a table containing the customer invoice/delivery address to float to the bottom of the PDF page, however when I try usual CSS I get a PDF generation error. Is ...
2
votes
1answer
76 views

OutputLink in a list only works for last link

I have a very simple Visualforce page. It is not using a controller, it is mostly a splash page. I wanted to use outputlink tags in a list. I'm using CSS styling to determine how my headers look, and ...
2
votes
1answer
129 views

Floating divs side-by-side that contain Apex:repeat without table?

I'm an Apex developer that's trying to style a few Visualforce components within divs, but I have absolutely no web development experience so I was hoping someone could point out what I'm doing wrong ...
2
votes
1answer
179 views

renderAs pdf is not working with the footer at the bottom

I'm new in Salesforce but I have a quote that I need to show as a PDF with a header and a footer but just in the last page. Actually is working with renderAs="pdf" But is not showing the footer at the ...
0
votes
0answers
75 views

Visualforce inserting blank space in place of <li> on apex:dataList

I have a page with some css. There is a tag inside which I am displaying few items from a list using . My code works in such a way that when the page loads, one row and four columns of data are ...
0
votes
1answer
95 views

CSS style issue for PDF in Visual force email template

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF. Please help me out.
1
vote
1answer
98 views

what is the use DOM in sales force where we can use that?

I have understanded the abbrevation of DOM,but iam not understanding what is use of that in sales force.Is there any link between xml and DOM.
0
votes
1answer
83 views

wordwrap css property for rich text fields?

I have a description field of RTA and the text in the field is as below: <p ...
1
vote
0answers
40 views

Is it possible to inject css into standard Salesforce pages

Our designer wants to change the look and feel of the header and sidebar of the salesforce pages including standard ones. I can't think of the way of injecting css code into standard pages. Is that ...
1
vote
1answer
32 views

Mismatch of alignments of fields in CSS

This may be pretty simple, but for me its like a hell. The code I tried was in both apex and html5. I want to get the fields in a proper way.I want to get state field under city and country field ...