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
1:16 am Jun 28, 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
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
AdSense Earnings and Observations - June 2026
Quite quiet in here, anyone know why?
Good Bye AdWords - or whatever you call it these days
Best Learning Path for a Web Development Beginner?
Buying traffic to appear on Google Discover
Home
Forums Index
Browser Side
/
JavaScript and AJAX
1:16 am Jun 28, 2026