• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Html/css

Joined
May 27, 2005
Messages
3,654 (0.50/day)
Location
Little Rock Arkansas, United States
Is there a way using HTML or CSS to make a webpage layout to look the same when viewed at differnet resolutions. Everything seems to get out of allignment when viewed at different resolutions.
 
One way is to use your code to set everything set with pixel sizes rather than with percentages. This can cause headaches though as you have to count every pixel you use to ensure you get no extra bits or chunks missing.

You could use a table at a set width and or height and then add your content inside it so it is contained at your desired size no matter what screen res people have.
 
Back
Top