Results 1 to 2 of 2

Thread: css ie6 fix

  1. #1
    Join Date
    Feb 2008
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default css ie6 fix

    hi ! this code worked with firefox ! opera ! but bad work in ie6 -
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Test</title>
    </head>
    <body >
    <div align="center">
    <div style="width:100%; height:10px; background-color:#000099;"></div>
    </div>
    </body>
    </html>
    NOTE Error in IE6 : height Div over 10px ! and space div with top is long - how to fix ?
    SORRY For Bad English Grammer

  2. #2
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default ie6 is ghetto

    One solution is to create a separate css file for ie6 only. Adjust the css so that the site works right in ie6 and then link to it like this:

    Code:
    <!--[if lte IE 6]>
    		<link rel="stylesheet" href="styles/ie.css" type="text/css" media="screen" />
    	<![endif]-->

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
  •