You need to sign in to do that
Don't have an account?

How to get rid of Pageblock border in VF page?
I have developed a VF page and I am using standard styles for the apex form. I customized the page using my css styles
but no matter what I do, I am unable to get rid of the pageblock border (thin black border) that is appearing on the right side
and at the bottom of the page..any help is greately appreciated!!
One good thing I found out that in the new enhanced UI, these lines are disappeared. But since this is not used yet, I found out another solution. It took me quite some time, but now it's working ok. I am searching with Javascript to the classnames in my VF page, and adding additional CSS styles to these classes. These are overwriting the normal ones, and making marges smaller, given that fact the background colors(the lines) are not displayed anymore...
And these are gone :) :) So give it a try, make sure your classnames are correctly, e.g. use firebug to detect the correct classnames. Now hoping that Salesforce is not going to rename these classnames, because in that fact the lines are back.
All Answers
can you just remove the pageBlock tags?
A bit old post, but I now have the same problem, and I wonder if and how you have solved this problem?
I use tags like apex:pageblockSection, apex:outputField and apex:inputtext to render different values and also the correct labels. For this reason I would like to have the code in an apex:pageblock, but since it's an inline VF page, I don't want to see those ugly lines.. Here a part of my code, any help would be welcome.
I could not fix that ever...but still would appreciate a solution!
Try setting your pageBlock mode="maindetail".
If you read the manual, you should think that that should do the trick... But unfortunately not :( At least not for my INLINE vf page
One good thing I found out that in the new enhanced UI, these lines are disappeared. But since this is not used yet, I found out another solution. It took me quite some time, but now it's working ok. I am searching with Javascript to the classnames in my VF page, and adding additional CSS styles to these classes. These are overwriting the normal ones, and making marges smaller, given that fact the background colors(the lines) are not displayed anymore...
And these are gone :) :) So give it a try, make sure your classnames are correctly, e.g. use firebug to detect the correct classnames. Now hoping that Salesforce is not going to rename these classnames, because in that fact the lines are back.
Set the body pageblock borders to 0 in CSS