Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Browser Side
/
JavaScript and AJAX
8:05 pm May 13, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
How to read resolution and automatic set DIV element?
toplisek
Msg#:4476448
2:30 pm on Jul 17, 2012
(gmt 0)
I have issue that there are icons 16x16px and floated right. When there is very high resolution I like to have changed icons to 32x32px.
How to set this modified DIV with javascript and/or PHP or there are some nice solutions.Need help.
sundaridevi
Msg#:4476676
10:06 am on Jul 18, 2012
(gmt 0)
After you detect browser resolution in javascript you can rewrite the DIVs using the innerHTML command
Fotiman
Msg#:4476717
1:00 pm on Jul 18, 2012
(gmt 0)
Don't use JavaScript for this, use CSS media queries. Here's an article that describes how:
[
miekd.com
...]
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
Country Removal notice from Google Search
SEO question
Page indexed but live url test gets 500 error
Sitemaps for large websites and SEO - add everything or just some?
reverse() -- ColdFusion(or your language)/SQL + JavaScript
Home
Forums Index
Browser Side
/
JavaScript and AJAX
8:05 pm May 13, 2026