- This topic is empty.
-
AuthorPosts
-
October 3, 2012 at 1:13 am #40128
Rugg
ParticipantI’m aware that IE conditional comments allow CSS files and JS files to be linked/targeted, however, I’m wondering if the same can be done for a simple HTML file. If anybody has info or the proper method to achieve this I would be thrilled! Many Thanks.
October 3, 2012 at 1:29 am #111198kevinvance
Participant@NSR What is it that you’re trying to achieve?
October 3, 2012 at 4:04 am #111204chrisburton
Participant@NSR What I JUST finished doing was redirecting IE users to a specific html page (except IE9 and IE10). All other browsers that try to go to that page will be redirected to the main site. Is this what you’re trying to do?
Take a look at this in IE8: http://christopherburton.net/ie
The following code redirects all IE versions below IE9 to a certain page. This would obviously go in your head section of your normal site.
October 3, 2012 at 4:25 am #111208chrisburton
Participant@NSR What versions of IE do you want to show that html page to? The snippet above will redirect all IE versions below IE9 to the specified URL of your choice. Just make sure to change my URL to yours.
October 3, 2012 at 9:43 am #111223pmac627
Participant@NSR – It shouldn’t matter where you put the IE redirect page. But for easy use, put it in the same directory. Make sure you add a redirect back to your main site if the user HAS IE9 or above (or another browser) so that people don’t directly access the page when they aren’t supposed to.
October 3, 2012 at 9:56 am #111228Paulie_D
Member@NSR Sorry…but with a single page site, why on earth would you need another ‘just IE’ page?
Secondly, some people are weird and like IE….nagging at them will make them NOT want to visit your site.
In short, just let people with ‘older’ browsers be and they’ll get the experience they are happy with/used to.
Nobody likes being nagged at.
October 3, 2012 at 1:44 pm #111239chrisburton
Participant@NSR You would put the snippet I posted above in your main page. That redirects IE users (IE8 and below) to the IE page. It doesn’t matter where your IE page is as long as you link to it correctly.
Now on your IE page you would post the following to redirect all other browsers and IE9+ to back to your main page because they don’t need to see this.
@Paulie_D If our analytics show that we do not have a substantial IE user base for those versions, it really doesn’t matter (especially for a portfolio site). It’s you, the developers, that are being nagged by having to develop for browsers that are not adhering to standards. -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.