I was having a friend test my site, he has a HD monitor with 1024 x 760 I think. He says my site looks weird for him, so is there a way to detect resolution and change certain things according to that?
Thanks,
Scott W.
Different Screen Res
Moderator: General Moderators
Re: Different Screen Res
Yes.
Javascript can detect screen resolution. Your best bet though is to design your site for 1024 x 768 - as that's what the majority of web users have.
Javascript can detect screen resolution. Your best bet though is to design your site for 1024 x 768 - as that's what the majority of web users have.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Different Screen Res
Well, a lot of my other friends use around 1440 x 900 which is what I use. I want it to look good for everybody is what I am trying to say.
Re: Different Screen Res
In my designs, I always design so the page has a tad bit of space on the left and right of the page content. To make your content user friendly for different resolutions, use percents in your designs. like:
css:
HTML:
These days, HTML 5 is beginning to show itself in browsers, <canvas> is put in place of <div> to better edit the actual page and give you more manipulation ability in your design and make it extra user friendly/
css:
Code: Select all
#idName {
position:absolute;
width:90%;
left:5%;
right:5%;
}
Code: Select all
<body>
<div id="idName">
My Content here
</div>
</body>
- Kaleb Klein
------------------------------------
Web Developer | Software Developer
https://kalebklein.com
PGP Key: https://keybase.io/pazuzu156
------------------------------------
Web Developer | Software Developer
https://kalebklein.com
PGP Key: https://keybase.io/pazuzu156