Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [html, css] Grid system IE, Problem w IE8 z Grid Systemem
daggerski
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 29.12.2010

Ostrzeżenie: (0%)
-----


Witam mam problem z IE. Mianowicie strona mi się całkowicie rozjeżdża w IE natomiast w firefoxie i chromie wszystko poprawnie działa.

Najdziwniejsze jest dla mnie to, że nie działa mi width:100%;

Kod poniżej:


  1.  
  2. <header>
  3. <div id="borderek"></div>
  4.  
  5. <div class="container container_16">
  6. <div class="grid_5" style="">
  7. <img src="/media/layout/images/logo2.png" alt="Logo" class="LogoHeader" width="245" />
  8. </div>
  9.  
  10. <div class="grid_11" style="">
  11. <div style="width:620px;height:150px;" class="BigAd">
  12.  
  13. </div>
  14. </div>
  15.  
  16. </div>
  17. </header>
  18.  
  19.  
  20.  
  21. <section id="menu">
  22. <div class="container container_16">
  23.  
  24. <div class="grid_11">
  25.  
  26.  
  27. <nav id="main">
  28. <ul id="mainMenu">
  29. <li style="padding-left:24px;"><a class="highlight" href="/">Home</a></li>
  30. <li><a class="highlight" href="/news">Newsy</a></li>
  31. <li><a class="highlight" href="/artykuly">Artykuły</a></li>
  32. <li><a class="highlight" href="/relacje">Relacje</a></li>
  33. <li><a class="highlight" href="/edukacja">Edukacja</a></li>
  34. <li><a class="highlight" href="/dojazd">Dojazd</a></li>
  35. <li><a class="highlight" href="/forum">Forum</a></li>
  36. </ul>
  37. </nav>
  38. </div>
  39.  
  40. <div class="grid_5">
  41. <nav id="LogBar">
  42. <div id="button1" style="background:url('/media/layout/images/user/register2.png');width:100px;height:35px;float:left;"><p class="button1"><a class="highlight2" href="/auth/"></a></p></div>
  43. <div id="button2" style="background:url('/media/layout/images/user/login2.png');width:100px;height:35px;float:right;"><p class="button2"><a class="highlight2" href="/auth/login"></a></p></div>
  44. </nav>
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. </div>
  54.  
  55. </div>
  56. </section>
  57.  
  58.  


style

http://pastebin.com/UFT51tj7 (bez kodu z 960.gs)


Generalnie dla div#borderek ten width:100% działa, jednak już dla headera i dla menu nie bardzo.....

Pozdro i proszę o pomoc

Ten post edytował daggerski 7.12.2012, 13:31:53
Go to the top of the page
+Quote Post
gecior
post
Post #2





Grupa: Zarejestrowani
Postów: 63
Pomógł: 1
Dołączył: 16.08.2007

Ostrzeżenie: (0%)
-----


Możesz pokazać wystawioną stronę/przykład/linka do tego?
Go to the top of the page
+Quote Post
piotrex41
post
Post #3





Grupa: Zarejestrowani
Postów: 168
Pomógł: 26
Dołączył: 15.09.2011
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Stary IE ma problem nawet z odpowiednim wyświetlaniem DIVów. Spróbuj dodać to przed stylami: U mnie w większości pomaga smile.gif
Kod
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


--------------------
www.piotrex41.pl - piotrex41 portfolio
d(-.-)b - Music is my life || PHP is my passion
Go to the top of the page
+Quote Post
Pawel_W
post
Post #4





Grupa: Zarejestrowani
Postów: 1 675
Pomógł: 286
Dołączył: 15.06.2009
Skąd: Wieliczka

Ostrzeżenie: (0%)
-----


do tego w css
  1. article,aside,details,figcaption,figure,
  2. footer,header,hgroup,menu,nav,section {
  3. display:block;
  4. }
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 12:08