Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Menu na <ul> + CSS, źle się wyświetla pod IE
angel2953
post
Post #1





Grupa: Zarejestrowani
Postów: 199
Pomógł: 5
Dołączył: 8.07.2004
Skąd: gdynia

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


Chciałem sobie zrobić górne menu na zasadzie zakładek, i mam taki kod:
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <?xml-stylesheet href="#internalStyle" type="text/css"?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
  4. <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  5. <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
  6. <title>Tabs Top Menu</title>
  7. <style type="text/css" media="all">
  8. /* <![CDATA[ */
  9. * { margin: 0px; padding: 0px; }
  10. body { font-family: Verdana, sans-serif; font-size: 12px; text-align: center; overflow: auto; background-color: #F1F3F5; }
  11. div#container { text-align: left; margin: 5px 20px; }
  12. .clear { clear: both; }
  13. div#Tabs { margin: 5px 5px 0px 35px; position: relative; top: +1px; }
  14. div#Tabs ul { list-style: none; }
  15. div#Tabs li { display: inline; }
  16. div#Tabs li#tabSelected { text-transform: uppercase; float: left; font-family: Arial, sans-serif; font-weight: bold; border: 1px solid #BBBBBB; text-decoration: none; text-align: center; padding: 5px; color: #000000; border-bottom: 1px solid #FFFFFF; text-decoration: none; background-color: #FFFFFF; }
  17. div#Tabs li a { text-transform: uppercase; float: left; font-family: Arial, sans-serif; font-weight: bold; color: #FFFFFF; border: 1px solid #BBBBBB; background-color: #336699; text-decoration: none; text-align: center; padding: 5px; }
  18. div#Tabs li a:hover { color: #DF7000; border: 1px solid #BBBBBB; text-decoration: none; background-color: #FFFFFF; }
  19. div#main { padding: 10px; text-align: justify; border: 1px solid #BBBBBB; background-color: #FFFFFF; margin: 0px; }
  20. /* ]]> */
  21. </style>
  22. </head>
  23. <body lang="en">
  24. <div id="container">
  25. <div id="Tabs">
  26. <ul>
  27. <li><a href=#">First tab</a></li>
  28. <li id="tabSelected">Second tab</li>
  29. <li><a href="#">Third tab</a></li>
  30. <li><a href="#">Fourth tab</a></li>
  31. <li><a href="#">Fifth tab</a></li>
  32. </ul>
  33. </div>
  34. <div class="clear"></div>
  35. <div id="main">
  36. <p>Epsum factorial non deposit quid pro quo hic escorol. Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum. Defacto lingo est igpay atinlay. Marquee selectus non provisio incongruous feline nolo contendre. Gratuitous octopus niacin, sodium glutimate. Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito. Epsum factorial non deposit quid pro quo hic escorol. Marquee selectus non provisio incongruous feline nolo contendre Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum.</p>
  37. </div>
  38. </div>
  39. </body>
  40. </html>


pod firefoxem to menu wyświetla się prawidłowo
(IMG:http://img247.imageshack.us/img247/7155/ffokib6.th.jpg)
ale niestety pod IE jest nieco odsunięte od zawartości (około 2-3px)
(IMG:http://img138.imageshack.us/img138/1856/iewrongol0.th.jpg)
Jak to poprawić aby się tak samo wyświetlało ?

Ten post edytował angel2953 24.08.2006, 10:38:54
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 16:02