Results 1 to 4 of 4

Thread: CSS based browser disabled with IE

  1. #1
    Join Date
    Feb 2009
    Posts
    69

    CSS based browser disabled with IE

    Hello,

    I have a concern due to display browsers.

    Let me explain that I desire

    Code:
    . cleared (clear: both; padding-top: 15px)
    applies with Firefox but not IE in CSS.

    I hope to be clear

  2. #2
    Join Date
    Jan 2006
    Posts
    211

    Re: CSS based browser disabled with IE

    <!--[ if gt IE 5]>
    <style type="text/css" media="screen">

    your css

    </ style>
    <[endif] ->

  3. #3
    Join Date
    Dec 2008
    Posts
    202

    Re: CSS based browser disabled with IE

    I proceed in this way

    Code:
     <!--[ if IE]> 
      <link rel="stylesheet" type="text/css" href="{{tpl:BlogThemeURL}}/styleie.css" /> 
      <[endif] -> 
    
      <!--[ if! IE]> 
      <link rel="stylesheet" type="text/css" href="{{tpl:BlogThemeURL}}/style.css" /> 
      <[endif] ->
    On IE, nickel! As against Firefox, nothing at all, as it will not charge any CSS ......

  4. #4
    Join Date
    Dec 2008
    Posts
    161

    Re: CSS based browser disabled with IE

    This script allows you to detect which browser your visitor is using, then loads up the correct cascading style sheet to suit. Change the name and paths, ie.css of the files (Internet Explorer) and nn.css (Netscape Navigator) to your own file names.

    This script needs to go inside the <HEAD> tags.

    Code:
    <SCRIPT LANGUAGE = "JavaScript"> 
      <--  
      var browser =''; 
      var version =''; 
      var entrance =''; 
      var cond =''; 
      / / BROWSER? 
      if (browser =='') ( 
      if (navigator.appName.indexOf ( 'Microsoft')! = -1) 
      browser = 'IE' 
      else if (navigator.appName.indexOf ( 'Netscape')! = -1) 
      browser = 'Netscape' 
      else browser = 'IE'; 
      ) 
      if (version =='') ( 
      version = navigator.appVersion; 
      paren = version.indexOf ('('); 
      whole_version = navigator.appVersion.substring (0, paren-1); 
      version = parseInt (whole_version); 
      ) 
      if (browser == 'IE' & & version> = 4) document.write ('<'+' link rel = "stylesheet" href = "ie.css" />'); 
      if (browser == 'Netscape' & & version> = 2.02) document.write ('<'+' link rel = "stylesheet" href = "nn.css" />'); 
      / / -> 
      </ SCRIPT>

Similar Threads

  1. Opera 11.10 extensions disabled after restarting browser
    By Snowie in forum Technology & Internet
    Replies: 6
    Last Post: 20-06-2011, 10:11 AM
  2. Flash based issue causing browser flickering
    By Tapasranjan in forum Windows Software
    Replies: 5
    Last Post: 17-09-2010, 07:20 PM
  3. Which is the Best IE based browser ?
    By ProcalX in forum Polls & Voting
    Replies: 6
    Last Post: 23-06-2010, 04:13 PM
  4. Browser Based mmorpg
    By QABIL in forum Video Games
    Replies: 4
    Last Post: 14-08-2009, 01:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,694,324.57946 seconds with 16 queries