You need to sign in to do that
Don't have an account?
dai tran 6
How can remove top border of pageBlock?
In visualforce page i using pageBlock and it display a top border is black:
How can remove top border of pageBlock?
or
How can change color of this top border?
How can remove top border of pageBlock?
or
How can change color of this top border?
Please use below CSS to remove the border or change the color of the border.
<style>
//To remove the border
.homeTab .bPageBlock {
border: none;
}
//To change the color of the border
.homeTab .bPageBlock {
border-top: 2px solid black !important;
}
</style>
Please select as best answer if it helps you.
Thank You,
Ajay Dubedi
All Answers
Refer below links which has sample code for the same.
http://www.infallibletechie.com/2017/09/how-to-hide-lines-and-borders-in.html
https://developer.salesforce.com/forums/?id=906F00000009633IAA
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.
Best Regards,
Sandhya
Please use below CSS to remove the border or change the color of the border.
<style>
//To remove the border
.homeTab .bPageBlock {
border: none;
}
//To change the color of the border
.homeTab .bPageBlock {
border-top: 2px solid black !important;
}
</style>
Please select as best answer if it helps you.
Thank You,
Ajay Dubedi
<apex:pageBlock mode="maindetail" > remove border ok
To: Ajay Dubedi
Must add class to pageBlock?
Current it not ok.
Try this one
<style>
//To remove the border
.bPageBlock {
border: none;
}
//To change the color of border
.bPageBlock {
border-top: 2px solid red !important;
}
</style>
Thank You,
Ajay Dubedi