I did a VF page, to show a message. how can I resize it to fit full component? thank you! enter image description here

this is the code I have.

enter image description here


1 Answer 1


Use this code, if you mean if you want to apply the style to the whole page:

<apex:page >
    <body style="background:red;height:100%;width:100%">
            <div >
                <b> Test</b>
  • thank you Clairvoyant, but I still get the scrollbar(( and borders((( I am looking for a way to fill whole "component" with the message
    – Lidiia
    Jun 21, 2020 at 16:03

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