homepage Welcome to WebmasterWorld Guest from 54.242.85.89
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
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...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved