Wklejam kod indexu templatki, css i pliku site.tmp, proszę o pomoc jak zrobić, żeby w IE było ok.
index.php:
<body> <!-- start header --> <div id="header"> <? schowekMENU(); ?><br/> <? site_top(); ?> </div> <!-- start page --> <div id="page"> <!-- start content --> <div id="content"> <div class="post"> <? print_main(); ?> </div> </div> <!-- end content --> <!-- start sidebar --> <div id="sidebar"> <? print_menu(); ?> </div> <!-- end sidebar --> </div> <div style="clear: both; height: 30px"> </div> <!-- end page --> <div id="footer"> <? site_footer(); ?> </div> </body>
CSS:
body { margin: 0; padding: 0; background: #372412 url(images/img01.gif) repeat-x; font-size: 13px; color: #FFFFFF; } body, th, td, input, textarea, select, option { font-family: Arial, Helvetica, sans-serif; } h1, h2, h3 { text-transform: lowercase; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight: normal; color: #FFFFFF; } h1 { letter-spacing: -2px; font-size: 3em; display:inline; } h2 { letter-spacing: -1px; font-size: 2em; } h3 { font-size: 1em; } p, ul, ol { line-height: 200%; } blockquote { padding-left: 1em; } blockquote p, blockquote ul, blockquote ol { line-height: normal; font-style: italic; } a { color: #FFFFFF; } a:hover { text-decoration: non-decoration; } img { border: none; } /* Header */ #header { width: 830px; height: 200px; margin: 0 auto; background: url(images/img02.jpg) no-repeat; } /* Logo */ #logo { height: 170px; background: url(images/img07.gif) no-repeat left 65%; } #logo h1 { float: left; padding: 40px 40px 0 50px; letter-spacing: -2px; font-size: 48px; } #logo h2 { float: right; padding: 68px 0 0 0; font-size: 13px; } #logo a { text-decoration: none; color: #372412; } /* Gallery */ #gallery { clear: both; width: 830px; height: 300px; margin: 0 auto; } #top-photo h2 { height: 1.4em; font-size: 1em; } #top-photo p { margin: 0; padding: 0 0 10px 0; } /* Menu */ #menu { width: 830px; height: 70px; background: url(images/img03.jpg) no-repeat; } #menu ul { margin: 0; padding: 0; list-style: none; } #menu li { display: inline; } #menu a { display: block; float: left; width: 166px; height: 73px; padding-top: 35px; text-transform: lowercase; text-decoration: none; text-align: center; letter-spacing: -1px; font-size: 24px; color: #FFFFFF; } #menu a:hover { background: url(images/img09.jpg) no-repeat; color: #FFFFFF; } #menu .active a { background: url(images/img09.jpg) no-repeat; color: #372412; } /* Page */ #page { width: 830px; margin: 0 auto; padding: 20px 0; } /* Content */ #content { float: left; width: 532px; } .post { padding: 0 0 20px 0; } .title { margin: 0; border-bottom: 2px solid #4A3903; } .byline { margin: 0; } .meta { border-top: 1px solid #4A3903; text-align: right; color: #646464; } .meta a { padding-left: 15px; background: url(images/img06.gif) no-repeat left center; font-weight: bold; } /* Sidebar */ #sidebar { float: right; width: 250px; } #sidebar ul { margin: 0; padding: 0; list-style: none; } #sidebar li { } #sidebar li ul { padding: 15px 0; } #sidebar li li { padding-left: 30px; border-bottom: 1px dotted #4A3903; background: url(images/img06.gif) no-repeat 15px 50%; } #sidebar h2 { margin: 0; padding: 20px 0 2px 30px; background: url(images/img05.gif) no-repeat left bottom; border-bottom: 2px solid #4A3903; } #sidebar a { text-decoration: none; } #sidebar a:hover { text-decoration: underline; } /* Footer */ #footer { clear: both; padding: 20px 0; background: #FFEA6F; border-top: 3px solid #E8AD35; text-align: center; font-size: smaller; color: #E8AD35; } #footer a { color: #C28C21; } img.fotka { border: 1px solid #dddddd !important; padding: 2px; background-color: #ffffff; margin-right:5px; } .uni_01 { font-family: Verdana; font-size: 12px; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; color: #FFFFFF; } .title_g { font-family: Verdana; margin:0px; padding:7px 8px; overflow:hidden; font-weight:bold; font-size:13px; color:#FFFFFF; } .link_g { font-family: Verdana; margin:0px; padding:7px 8px; overflow:hidden; font-weight:bold; font-size:12px; color:#FFFFFF; background: #372413; }
site.tmp:
<? function site_top(){ echo' <div id="logo"> <h1><a href="http://www.karpacz24.eu" title="karpacz">Karpacz24.eu</a></h1> '; user_panel(); echo' </div> <div id="menu"> <ul> <li class="active"><a href="index.html" accesskey="1" title="strona główna">Strona Główna</a></li> <li><a href="oferta.html" accesskey="3" title="baza noclegowa">Katalog</a></li> <li><a href="wyszukiwarka.html" accesskey="4" title="wyszukiwarka noclegów">Wyszukiwarka</a></li> <li><a href="profil.html" accesskey="5" title="Profil obiektu">Dodaj ofertę</a></li> <li><a href="ogloszenie.html" accesskey="6" title="ogloszenia noclegowe">Dodaj ogłoszenie</a></li> </ul> </div> </div> <!-- end header --> <div id="gallery"> <div id="top-photo"> <p><a href="http://www.karpacz24.eu" title="noclegi w Karpaczu"><img src="tmp/images/img08.jpg" alt="karpacz" width="830" height="300" /></a></p> </div> '; } function site_title_open(){ echo'<table width="100%"> <tr> <td class="title"> '; } function site_title_close(){ echo' </td> </tr> </table> '; } function site_body_open(){ echo' '; } function site_body_close(){ echo' '; } function menu_title_open(){ echo' '; } function menu_title_close(){ echo' '; } function menu_body_open(){ echo' '; } function menu_body_close(){ echo' '; } function site_footer(){ echo' <p><A HREF="index.html" TITLE="karpacz">Strona Główna</A> | <A HREF="kontakt.html" TITLE="kontakt">Kontakt</A> | <A HREF="regulamin.html" TITLE="regulamin">Regulamin</A> | <A HREF="onas.html" TITLE="o karpaczu">O Karpaczu</A></td></tr> <p>©2010 <a href="http://www.karpacz24.eu" title="karpacz"><strong>karpacz24.eu</strong></a> by <a href="http://www.nodnet.pl" title="tanie strony www, wizytówki"><strong>NodNET</strong></a></p> '; } ?>