You need to sign in to do that
Don't have an account?
ClintProd
More information on stylesheets and usage needed...
Better documentation on stylesheets and their usage is needed. I am running into issues with using the pbHeader class on S-Controls that I create. It doesn't display like the default Salesforce pages. Reference the following code.
Code:
If you go to the Account tab or any other default Salesforce page, you get a nicely formatted button bar with in the bPageBlock div. If you use the code above on a custom page you get something totally different. The button appears with a white background and kind of outside the bPageBlock div.
<div class="pbHeader"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="pbTitle"><img src="/s.gif" alt="" width="1" height="1" class="minWidth" title="" /><h2 class="mainTitle">Salesforce Development Documentation</h2></td> <td class="pbButton"><input value=" Edit " class="btn" name="edit" title="Edit" type="button" /></td> </tr> </table> </div>
If you go to the Account tab or any other default Salesforce page, you get a nicely formatted button bar with in the bPageBlock div. If you use the code above on a custom page you get something totally different. The button appears with a white background and kind of outside the bPageBlock div.
but there could be several other reasons that it fails to "match" the style rules.
there are also several appexchange scontrols that match the style , use pbHeader, that you could copy from.
Code:
I have the DOCTYPE line in my page exactly as you have posted. I also have used the div tags exactly as on the account detail page, but the top button bar looks different on the s-control compared to the account detail page. It's hard to explain in words. Take the code below and put it into a new s-control and make it so you can view it some how. I made it a tab. You will notice the titles for each of the sections where the buttons are do not look like the account detail page even though this code was taken directly from it.
Code:
i am in firefox.
the buttons are as i exepct, only thing missing is the slight colored background to the button area
is that the style you are missing?
>It's hard to explain in words.
> Take the code below and put it into a new s-control and make it so you can
>view it some how. I made it a tab.
>You will notice the titles for each of the
>sections where the buttons are do not look like the account detail page
> even though this code was taken directly from it.
but i can't see why this background color is not applied in the code you have, it does look correct tag wise.
Code:
I found the difference, see below.
The documentation for S-Controls says to use the common stylesheet at https://na1.salesforce.com/dCSS/Theme2/default/common.css. This stylesheet has the background color for the pbHeader class set to all white.
.bPageBlock .pbHeader {
color:#222;
border-bottom:1px solid #F3F3EC;
margin:0px 2px 2px 0px;
background-color:#FFF;
}
The theme2 common stylesheet (https://na1.salesforce.com/sCSS/9.0/1173909788000/Theme2/default/ie/common.css) has a different color set for the background on the pbHeader class.
.bPageBlock .pbHeader {
margin:0px 2px 0px 0px;
padding-bottom:2px;
background-color: #EEECD1;
border-bottom: 1px solid #fff;
}
The issue is with the hard returns in your code. Although the returns make the code easier to read it breaks the style. I can't really explain why but I know that this is what is causing the issue.
The code below will cause the missing color you are referring too:Code:
Now take that same code and place it all on one line in your HTML and it will actually display the color:Code: