OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
Detecting Browser Size and Including a New CSS Sheet
This page's ID:
29094
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
1) you'll need javascript to detect the browser size. -- however, browser size and screen resolution are two vastly different things. 2) PLEASE do not go down this route. A site should be designed to work regardless the screen resolution of the viewer. Setting different stylesheets based on window size is an obsolete and erroneous approach to web design, IMHO 3) you cannot have a background image itself be a link - it is purely a decoration attached to an element. What you *can* do is wrap the div that holds that background image in an <a> tag, or more appropriately use an <h1> tag for the header (a header tag for a header...) and an <a> tag inside.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »