Jump to content

Quick Question


Cetanu

Recommended Posts

I have been using CSS for like 7 months now, mainly teaching myself. My biggest problem isn't cross-browser issues, it's cross-monitor issues! On my laptop the site looks one way, but on the desktop it looks all smushed or expanded.

 

Any idea how I can fix this?

I try to use % width so it is relative to the screen, instead of px.

Link to comment
https://forums.phpfreaks.com/topic/163451-quick-question/
Share on other sites

Think about your target audience and supported resolutions.  It is very rare a site will look perfect in every scenario.  % widths can be tricky, especially using CSS alone.  I suggest you consider what target resolution(s) you want to aim for and cater to those first.

 

If you want to try to handle all things, you could later use javascript to detect the screensize and change the stylesheet appropriately.  It would be extra work however.

Link to comment
https://forums.phpfreaks.com/topic/163451-quick-question/#findComment-862440
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.