Problem with Internet Explorer (css)
-
Welcome. One problem solved, but I have another … Namely, my site is displayed in almost every browser correctly. Practically … The problem is with IE … The following CSS style sheet. advice something?
style.css
/* Theme Name: xxx Description: xxx Author: xxx Author URI: xxx Version: xxx */ @charset "utf-8"; * { margin: 0px; padding: 0px; } body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; background: #2897a8; } .clear { clear: both; } #page { width: 960px; margin: auto; background: url(img/bg.jpg) repeat-y; } #gora { width: 960px; height: 81px; margin: auto; margin-top: -20px; background: url(img/tqm_02.gif) no-repeat; } #header { position: relative; } #logo { display: block; width: 384px; height: 132px; background: url(img/logo.gif) no-repeat; margin: auto; } #menu_01 { display: block; width: 134px; height: 45px; background: url(img/menu_01.gif) no-repeat; float: left; } #menu_02 { display: block; width: 106px; height: 45px; background: url(img/menu_02.gif) no-repeat; float: left; } #menu_03 { display: block; width: 78px; height: 45px; background: url(img/menu_03.gif) no-repeat; float: left; } #menu_04 { display: block; width: 108px; height: 45px; background: url(img/menu_04.gif) no-repeat; float: left; } #navbar { display: block; width: 426px; height: 45px; padding-top: 25px; padding-bottom: 15px; margin: auto; } #tv { width: 638px; height: 374px; background: url(img/tv_tlo.gif) no-repeat; margin: auto; } #dol_info { width: 960px; height: 165px; background: url(img/dol_tlo.jpg) no-repeat; padding-left: -110px; margin: auto; } #mag_01 { display: block; width: 129px; height: 181px; background: url(img/test.jpg) no-repeat; margin: auto; padding-top: 60px; } #container { width: 638px; margin: auto; background: url(img/bg1.jpg) repeat-y; margin-top: -30px; } #content { padding: 0px; } #slider { width: 638px; height: 231px; background: url(img/magazyn_tlo.gif) no-repeat; margin: auto; } #slider_dol { width: 960px; height: 165px; background: url(img/dol_tlo.gif) no-repeat; margin: auto; } #sidebar { width: 493px; height: 273px; margin: auto; } #linia { width: 642px; height: 7px; background: url(img/tqm_25.gif) no-repeat; margin: auto; margin-top: -14px; } .img_sr { padding-top: 60px; margin: auto; padding-left: 40%; } .entry { padding-bottom: 20px; color: #fff; } .entry h1 { font-size: 14px; font-weight: bold; margin-bottom: 4px; color: #161f56; } .entry h1 a { color: #161f56; text-decoration: none; } .entry p.entry-date { font-size: 11px; margin-bottom: 8px; color: #161f56; } .entry img.entry-thumb { float: left; margin-right: 15px; } .entry p { line-height: 19px; } .entry a.more-link { color: #c4f7ff; text-decoration: none; } .entry a { color: #c4f7ff; text-decoration: none; } .widget { width: 493px; height: 273px; padding-top: 25px; padding-left: 1px; margin: auto; } .widget h2 { font-size: 14px; font-weight: bold; margin-bottom: 10px; } .widget p { line-height: 19px; margin-top: 5px; } #footer { margin-top: 10px; width: 642px; margin: auto; background: url(img/bg1.jpg) repeat-y; } #footer p { font-size: 11px; color: #fff; padding-top: 10px; padding-bottom: 10px; }I created a specially generated file from a page that had a “charm” and the IE page display correctly … That did not happen .. The following code to it:
ie.css
/* IE6 css fixer v0.95: Thu, 21 Jun 2012 20:19:53 +0200 */ /* ============================================= */ /* safe settings */ /* add display:inline to floated elements */ #menu_01, #menu_02, #menu_03, #menu_04, .entry img.entry-thumb {display:inline;} /* fix negative margins */ #gora {position:relative; zoom:1;} /* add zoom:1 to pos:relative elements */ #header {zoom:1;} /* add overflow:visible to (submit) buttons */ input, button {overflow:visible;}I may be wrong … If the file style.css and ie.css are in the same directory, and reading styles have entered like this:
<link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/reset.css" type="text/css" /> <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" />whether these two styles (ie.css and style.css) work?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Problem with Internet Explorer (css)’ is closed to new replies.