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
9:50 pm Jul 21, 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
,
Jun
,
May
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
July 2026 Google Search Observations
Annoying Crawler, Bot, or what?
Suspicious visitors
Do you still build external links in 2026?
How to find out why a page is suddenly popular?
Home
Forums Index
Browser Side
/
JavaScript and AJAX
9:50 pm Jul 21, 2026