i am trying to add style class but its not working...here is my code

    <apex:page standardController="Opportunity" extensions="MarkRenewalLostController" showHeader="false" sidebar="false" standardStylesheets="false" pageStyle= "pageclass"  docType="html-5.0">
<style type="text/css">
border-width: 8px;
 width: 200px;
  height: 200px;

please suggest some answer.

  • vf page ..that is open when click on the button.
    Sep 12, 2017 at 6:22

1 Answer 1


No need any css class for that, You can use configuration option its self.

  • Create new custom button as i show in image.
  • On button click execute the java-script window.open
  • window.open allow you to set your visual page Url, height, width and target page.

window.open('/apex/vf191023', '_blank', 'width=800, height=800');

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .