Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [css] zawijający IE
Forum PHP.pl > Forum > Po stronie przeglądarki > CSS
frogzz
Witam

Zrobilem pionowe menu na ul/li ze stala pozycja na stronie i o ile w FF o Operze jest ladnie tyle w IE nie zachowuje linii tylko wyswietla jedno pod drugim sad.gif zalezy mi na mozliwosci ustalenia szerokosci pojedynczych li dlatego uzylem display: table-cell.
Jestem poczatkujacy w css wiec prosze wybaczyc jezeli mam jakies glupie bledy ;]

Jakby ktos chcial to ju jest roboczy adres strony: pasqdka.myphotos.cc

CSS:
Kod
html {
    height: 100%;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color:#000000;
}
div.srodek {
   clear: both;
   height: 100%;
}
#naglowek {
   min-width: 951px;
   text-align: center;
   margin: 0;
   border: none;
   padding: 0px;
}
#naglowek img.lewy{
   float: left;
}
#naglowek img.prawy{
   float: right;
}
table.naglowekT {
   width: 100%;
   margin: 0;
   border: none;
   border-collapse: collapse;
   border-spacing : 0em;
}
table.naglowekT tr td{
   border: none;
   padding: 0;
}
h1 {
   width: 200px;
   height: 222px;
}
ul#menu {
   clear: both;
   position: absolute;
   right: 10px;
   top: 120px;
   width: 700px;
   height: 20px;
   font-weight: normal;
   font-family: arial;
}
ul#menu li{
   display: table-cell;
   text-align: center;
   width: 140px;
}
ul#menu li a:link, a:active, a:visited{
   color: #566785;
   text-decoration: none;
}
ul#menu li a:hover{
   font-weight: bold;
}
ul#menu2 {
   clear: both;
   position: absolute;
   right: 10px;
   top: 90px;
   width: 870px;
   height: 20px;
   font-weight: normal;
   font-family: arial;
}
ul#menu2 li{
   display: table-cell;
   text-align: center;
   width: 145px;
}
ul#menu2 li a:link, a:active, a:visited{
   color: #566785;
   text-decoration: none;
}
ul#menu2 li a:hover{
   font-weight: bold;
}
#flashcontent {
   clear:both;
    height: 100%;
    width: 100%;
    color: #000000;
}
#galeriaFlash {
   clear:both;
   height: 90%;
    width: 89%;
   margin: 0 auto;
}
.wybrany {
   font-weight: bold;
}


HTML:
  1. <div id="naglowek">
  2. <table class="naglowekT">
  3. <tr>
  4. <td>
  5. <img src="/g/Naglowek1.jpg" class="lewy"/>
  6. </td>
  7. <td>
  8. <img src="/g/Naglowek2.jpg" class="prawy"/>
  9. </td>
  10. </tr>
  11. </div>
  12. <ul id="menu2">
  13. <li>
  14. <a href="/fotografia/1.html">AUTOPORTRET</a>
  15. </li>
  16. <li>
  17. <a href="/fotografia/2.html">PORTRET</a>
  18. </li>
  19. <li>
  20. <a href="/fotografia/3.html">PRZYRODA</a>
  21. </li>
  22. <li>
  23. <a href="/fotografia/4.html">MARTWA NATURA</a>
  24. </li>
  25. <li>
  26. <a href="/fotografia/5.html">REPORTAZ</a>
  27. </li>
  28. <li>
  29. <a href="/fotografia/6.html">INNE</a>
  30. </li>
  31. </ul>
  32. <ul id="menu">
  33. <li>
  34. <a href="/">HOME</a>
  35. </li>
  36. <li>
  37. <a href="/kontakt/">KONTAKT</a>
  38. </li>
  39. <li>
  40. <a href="/fotografia/" class="wybrany">FOTOGRAFIA</a>
  41. </li>
  42. </ul>
  43. <div class="srodek"></div>
  44. </body>
tiraeth
Regulamin, §2b
Temat nieprecyzyjny. Proszę poprawić (przenieść opis tematu do nazwy).
frogzz
no i dziala :-)

Kod

ul#menu {
   position: absolute;
   right: 15px;
   top: 120px;
   width: 750px;
   height: 20px;
   font-weight: normal;
   font-family: arial;
}
ul#menu li{
   float: left;
   text-align: center;
   list-style: none;
   width: 140px;
}
ul#menu li a:link, a:active, a:visited{
   color: #566785;
   text-decoration: none;
}
ul#menu li a:hover{
   font-weight: bold;
}
ul#menu2 {
   clear: both;
   position: absolute;
   right: 15px;
   top: 90px;
   width: 870px;
   height: 20px;
   font-weight: normal;
   font-family: arial;
}
ul#menu2 li{
   float: left;
   text-align: center;
   width: 145px;
   height: 20px;
   list-style: none;
}
ul#menu2 li a:link, a:active, a:visited{
   color: #566785;
   text-decoration: none;
}
ul#menu2 li a:hover{
   font-weight: bold;
}


tu dzialajaca rzecz: wcale-nie.art.pl
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.