You need to sign in to do that
Don't have an account?
valygrl
New user - HTML / CSS question
I am creating an inline s-control to display some additional values for a custom object from a related object, and I want it to look like part of the regular page. I'm using the example from here:
But the bPageBlock class puts a border on the section, that I don't want. I just want the background to be the same color as the rest of the page.
the beginning of the html I'm using looks like this:
var output = "<div class='bPageBlock secondaryPalette'>";
output += "<div class='pbBody'>";
output += "<DIV class=pbSubsection>";
output += "<table class='detailList' cellpadding='0' cellspacing='0' border='0'>";
output += "<DIV class=pbSubsection>";
output += "<table class='detailList' cellpadding='0' cellspacing='0' border='0'>";
Thanks in advance, I know this is a total beginner-question.
That style guide on the wiki is useful for getting a handle on how the styles are applied when the scontrol you are building is stand-alone. Since your sControl is inline, there are a number of styles that will get applied to your code if you include the CSS files indicated by that guide and use their suggested style elements.
The best way to accomplish what you want is to simply declare the necessary styles at the top of your sControl and remove the references to any external style sheets. I've included some code here that you can copy and paste to get started:
Code:
.bPageBlock .detailList tr td, .bPageBlock .detailList tr th {border-bottom:1px solid #E3DEB8;
so I simply changed it to ....border-bottom: none; and it was fine.