Jump to content

How do I make my page fill any size monitor?


Guest micmouse33

Recommended Posts

Guest micmouse33

Hi, I read a post somewhere on this forum but can't find it now. I am trying to figure out how to make my website change size according to other people's monitor sizes. I saw my site yesterday on a really large monitor and it looked terrible. I am fairly new to web design and still learning.

 

The post I was reading was talking about making the page "fluid" or something like that, and said I had to change something in the code to 100% rather than a defined number of pixles. Can someone help me out in a bit more detail...like beginners terms lol.

 

Thanks to anyone who can assist. :D

Link to comment
Share on other sites

Essentially you make all element widths a percentage so that all of them in a row plus padding and margins all have % widths and add up to 100%; except that borders cannot be % widths so you may have to make the total 99% or 98% to allow for borders in px.

 

Images can be resized with % widths too; if you don't state a height then the image heights will be resized in proportion.

 

It's not easy and you may find that your page looks very squashed up at 500px resolution or too spaced out at 1920px resolution, but modern browsers can be set with max-width and min-width which helps.

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...