How do I use percentages to create an adjustable web page?

133 views Asked by At

I am creating a game of jeopardy, I need to make my web page adjustable with the window size using percentages. How do I do that? I have all the padding and margins in ems,but I don't know how to change them to percentages.

2

There are 2 answers

0
Ravi Ubana On

You can try

  • Can use bootstrap.
  • make it auto.

or if you can put your sample code in fiddle then i can see.

0
Ibrahim Maher On

One method would be to set the width of the parent div to a percentage value. This way even though the your padding and margins are in em's (as you mentioned above) the width of the div will still be set to a percentage value and hence fluid.