Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów
Problem z wyświetlaniem w IE - Wersja do druku

+- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl)
+-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www)
+--- Dział: Początkujący webmaster (https://www.webmastertalk.pl/forum-poczatkujacy-webmaster)
+--- Wątek: Problem z wyświetlaniem w IE (/thread-problem-z-wy%C5%9Bwietlaniem-w-ie)



Problem z wyświetlaniem w IE - heavy1123 - 05-09-2009

Jestem początkującym webmasterem i mam pewien problem z poprawnym wyświetlaniem strony w IE. W FF wyświetla mi się normalnie:

http://heavy1123.files.wordpress.com/2009/07/screenhunter_01-sep-04-18-58.jpg

a gdy otworzę ją w IE ucina nagłówek, powiększa litery i "wybiera" inną czcionkę:

http://heavy1123.files.wordpress.com/2009/07/screenhunter_02-sep-04-18-58.jpg

Czy ktoś może mi powiedzieć, jak zrobić, by strona wyświetlała się w IE poprawnie ?


RE: Problem z wyświetlaniem w IE - KowR - 05-09-2009

Dla tego, że nie stosujesz standardowej np. Arial, Tahoma, Verdana. Smile

A dlaczego ucina Ci nagłówek? Bo w Mozilli i Operze używając padding skracasz wysokość. A w IE musi ona być zostawiona... Ehhh, dlatego unika się paddingu lub robi osobny styl dla IE. To wszystko. ;]


RE: Problem z wyświetlaniem w IE - heavy1123 - 05-09-2009

Jestem bardzo początkującym webmasterem i czy ktoś może mi powiedzieć jak zrobić styl dla IE (czym on się różni od podstawowego) ?


RE: Problem z wyświetlaniem w IE - Kamil - 05-09-2009

Najlepiej w Headerze daj:

Kod:
<!--[if IE ]>
    <link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

zrób osobny styl ie.css i tam nadaj inne atrybuty tego samego diva, pamietaj aby nazwa diva była dokładnie taka sama


RE: Problem z wyświetlaniem w IE - Raiylo - 05-09-2009

http://www.webmastertalk.pl/php-skrypt-styli-t-2119.html


RE: Problem z wyświetlaniem w IE - heavy1123 - 06-09-2009

Nie za bardzo znam się na przerabianiu stylów. Czy ktoś może mi powiedzieć/pokazać jak powinien wyglądać poprawiony styl.

Tutaj oryginalny styl.css:
Kod:
/*
    project:  small corporation
    author:   luka cvrk (www.solucija.com)
*/

*{ margin: 0; padding: 0; }*
body {
    font: .75em "Trebuchet MS", Tahoma, Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.6em;
    background: #fff;
    color: #444;
}

a {    color: #E60000;    background: inherit; text-decoration: none; }
a:hover { color: #AA0001; background: inherit; text-decoration: underline; }
p { margin: 0 0 15px 0; }
h1 {  margin: 20px 0 0; }
h1 a { background: inherit; }
img { border: 0; }
h2 { font: normal 1.6em "Trebuchet MS", Arial, Sans-Serif; margin: 0 0 12px; }
h3 a { font-size: 1em; }
#main h3 a { font-size: .84em; color: #808080; font-weight: normal; text-transform: uppercase; }

#content { width: 940px; margin: 0 auto; padding: 20px 0 0 0; border-top: 5px solid #eee; }

#top{ float: right; text-align: right;  }
#top a { color: #808080; margin: 0 0 0 13px; background: #fff url(images/toparrow.png) no-repeat center left; padding: 0 0 0 12px; }
input.searchfield { width: 175px; padding: 6px; border: 2px solid #ccc; font-size: .9em; }
input.searchbutton { background: #E60000; border: 0; padding: 6px; color: #fff; font-weight: bold; font-size: .9em; }

#logo { float: left; color: #808080; line-height: 25px; }
#menu { height: 35px; padding: 7px 0 0 0; clear: both;  margin: 0 0 18px; background: #fff url(images/menubg.gif) repeat-x; }
    #menu li { font-size: 1.1em; display: inline; text-transform: uppercase; }
    #menu li a { margin: 0 25px 0 10px; color: #808080;  }
    #menu li a:hover { color: #444; }

#left { background: #eee;  clear: left; float: left; width: 260px; padding: 10px 15px; margin: 0 0 20px; }
    #left img { margin: 0 0 8px; }
    #left li { list-style: none; }
    #left li a {  color: #787A8F; font-weight: bold; background: url(images/arrow.gif) no-repeat center left; padding: 0 0 0 12px; }

#main { float: left; width: 655px; margin: 0 0 20px; }
    #main img { float: left; border: 3px solid #eee; padding: 1px; margin: 0 15px 5px 0; }
    #line { clear: both; padding: 3px; margin: 0 0 15px; background: #fff url(images/smalldot.gif) repeat-x; }
    #ad { float: right; text-align: center; padding: 33px 0 0; width: 250px; border: 3px solid #eee; color: #ccc; height: 50px; margin: 0 0 15px; }
    #shortnews { float: right; width: 250px; }
    .news { border-bottom: 1px solid #eee; padding: 0 0 2px; margin: 0 0 10px;}
    
#right { margin: 0 15px 20px 0; padding: 0 0 0 15px; float: right; width: 620px; text-align: justify; }
.border { clear: both; border-left: 4px solid #ccc; padding: 0 0 0 15px; }

#rl { float: left; width: 290px; margin: 0 20px 30px 0; }
#rr { float: right; width: 290px; }
    #rl li, #rr li { list-style: none; border-bottom: 1px solid #eee; padding: 4px; margin: 0; }
    #rl li a, #rr li a { background: #fff url(images/arrow.gif) no-repeat center left; padding: 0 0 0 12px; color: #808080;  }

#footer { clear: both; padding: 10px; margin: 0 0 15px; font-size: .9em; color: #808080; background: #eee; }
    .links a { font-weight: bold; color: #787A8F; background: #fff; margin: 0 10px 0 0; background: url(images/dot.png) no-repeat center left; padding: 0 0 0 10px; }
    .sponsor { color: red; background: #eee; }
    #footer li { list-style: none; }
    #fl { width: 600px; }
    #fr { float: right; }



RE: Problem z wyświetlaniem w IE - KowR - 06-09-2009

#menu { height: 42px; padding: 7px 0 0 0; clear: both; margin: 0 0 18px; background: #fff url(images/menubg.gif) repeat-x; }

Np. napisałem Ci co masz poprawić, że jak masz paddin-top np. równy 7 i height masz 35 (a obrazek ma 42 px wysokości) to zmieniasz na 42. :| Cała filozofia.