Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/css] Problem z include;
wht
post 15.01.2007, 21:52:34
Post #1





Grupa: Zarejestrowani
Postów: 43
Pomógł: 0
Dołączył: 14.08.2006

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


Witam ponownie mam problem ze wstawniem pliku php (strona), ale żeby znalazł się w obrębie znacznika div. IE7 robi to poprawnie, ale FireFox i Opera już, wwalają poza znacznik div. Dla sprawdzenia wkleiłem kod w miejsce include i działa. Co jest nie tak.

Przykładowo

Kod
<div class="cos">
...
jakiś kod
...
<?php
include $_file;
?>

</div>


Ten post edytował wht 15.01.2007, 22:30:18
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
wht
post 15.01.2007, 23:03:11
Post #2





Grupa: Zarejestrowani
Postów: 43
Pomógł: 0
Dołączył: 14.08.2006

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


Pokręciłem trochę w tym i okazuje się, że jedynie poprawnie działa FF, znacznik obszedłem, poprostu wrzuciem go drugi raz w pliku dołączanym. Problem polega na tym, że IE i Opera robi margines około 20px. Już powoli głupieje wie może ktoś co się może dziać i dlaczego wywala mi ten margines?
PS. złapanie go jeszcze raz w divy załatwia sprawę w FF i Operze a IE przesuwa.
Oto CSS

Kod
body { margin: 0px; padding:0px; background: url(../_image/grey.gif)
top center repeat-y; }
.container-1 {clear:both; width:800px; margin:0px auto; padding:0px;  border: #000000 1px solid;
height: 227px;}
.logoae {width: 141px;  height: 50px; background: url(../_image/aegon.gif) no-repeat; padding:0px; position: absolute;margin-top:3px;}

.img-header { margin: 0px; float:left; height:199px; width:800px;
clear: both; float: left; position: static;}




.buffer {clear: both; width: 800px; height: 30px; margin: 0px; padding:0px;
}

.menu { clear:both; margin: 0px auto; padding:0px;  font-family: verdana; height:20px;
font-size: 12px; border-bottom: 4px  #007ac2 solid;
border-top: 4px  #ff0000 solid; background-color:#000000;}
.menu ul {float: left; width: 800px; margin: 0px auto; padding: 0px; }
.menu li {display: inline; list-style: none; margin: 0px; padding: 0px;line-height: 20px;}
.menu  li a { float: left; margin-right:2px; display: block;
background: #000000; border-left: 1px dashed  #ffffff;
color: #ffffff; text-decoration:none; padding: 0px 3px 0px 3px;}
.menu  a:hover { background-color: #ffffff; display: block;
border-left: 1px dashed  #000000; color: #000000;
text-decoration: underline; padding: 0px 3px 0px 3px; }





.lmenu { overflow:hidden; clear:both; float:left; width: 180px; min-height:450px;
margin:0px; padding:0px;font-family: verdana;font-size: 12px;}
.lmenu ul{ float:left; width: 180px; margin: 0px; padding: 0px; background-color:
#ffffff;}
.lmenu li {background-color:#8e8e8e text-transform: uppercase; color: #ffffff;
   text-decoration: none; list-style: none; margin: 0px; padding: 0px; }
.lmenu li a{ display: block; height:auto; text-decoration: none;
color:#ffffff; border-left:  #ff0000 3px solid;
font-size: 12px;padding-left: 3px; margin-bottom: 3px; background-color: #007ac2;}
.lmenu a:hover{ text-decoration: none; color:#ff0000; border-left: #007ac2 3px solid;
padding-left: 3px; margin-bottom: 3px;background-color: #ffffff;}
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 17:50