Activity Forums Salesforce® Discussions How to auto resize a Salesforce Visualforce Page?

  • Manpreet

    Member
    April 17, 2017 at 1:38 pm

    hi suraj,

    You can do something like this:

    HTML
    <div id="boxContainerContainer">
    <div id="boxContainer">
    <div id="box1"></div>
    <div id="box2"></div>
    <div id="box3"></div>
    </div>
    </div>
    CSS
    #boxContainerContainer {
    background: #fdd;
    text-align: center;
    }

    #boxContainer {
    display:inline-block;
    border:thick dotted #060;
    margin: 0px auto 10px auto;
    text-align: left;
    }

    #box1,
    #box2,
    #box3 {
    width: 50px;
    height: 50px;
    background: #999;
    display: inline-block;
    }
    You can refer to this link: http://jsfiddle.net/pauldwaite/pYaKB/

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos