开发者

Why would the width of my site be different for www.domain.com and domain.com?

开发者 https://www.devze.com 2023-03-27 13:28 出处:网络
If you open two versions of my site in two different tabs, go to www.compversions.com and compversions.com, and also assuming that your resolution is at least 1680 x 1050, you will see the site render

If you open two versions of my site in two different tabs, go to www.compversions.com and compversions.com, and also assuming that your resolution is at least 1680 x 1050, you will see the site rendered in two different sizes.开发者_运维技巧

It was designed to be progressively enhanced, but what's the difference between 'www' and not having that on the domain that would make the site be different sizes on the exact same resolution monitor?

Any help would be greatly appreciated.

Thanks.

Edit1: The original problem is seen on Windows 7, Chrome latest build. I tested on a Mac in the latest Safari and it doesn't have that problem. But the Twitter counter and Google+ counter does show two different numbers.

This is the compversions.com screenshot - as you can see, everything is slightly bigger - especially the white middle part.

Why would the width of my site be different for www.domain.com and domain.com?

This is the www.compversions.com screenshot - this one is slightly smaller, especially the white middle part.

Why would the width of my site be different for www.domain.com and domain.com?


You've apparently accidently zoomed the non-www one in using for example Ctrl+Scrollwheel. Press Ctrl+0 to reset the zoom level. The browser remembers the zoom level for each host. This has nothing to do with HTML/CSS served by your site.


I don't see a difference between them, but having the same page accessible through www or non-www can create duplicate content issues with search engines. You should probably redirect either your non-WWW to the WWW version or vice versa using a 301 redirect.

The immediate issue this is likely causing is your Google + and Tweet buttons show different counts for the two URLs, since they are counting them as two different pages.

If you're seeing them as different, you may just need to clear your browser cache. If you're still having the issue, looking at the pages on a different computer should show them as visually the same.


Unless the subdomain "www" is pointing to a different folder on your server, they should be identical.


Just checked in Chrome version 13.0.782.112 beta and there is no difference between the sub domains. Also checked that the correct css files were downloaded, and there were no 404s.

Which browser are you seeing these results in?


Interesting...I see no difference in the dimensions of the two URL's, but what I do see is that the Tweet count and Publicity Meter counts vary between the two. Will continue to look into it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号