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
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
Share on other sites

:o You can use JS to change stylesheets?!! That's amazing...

 

It would be a lot of work, however, I'll take your advice, but how am I supposed to know what it will look like in those resolutions if I don't have them?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.