czaczawik
Bywalec
Dołączył: 10 Lut 2007 Posty: 12
|
Wysłany: Sob 15 Sie, 2009 11:20 menu w div + rozwalajacy sie div sasiedni
|
|
|
Na poczatek pokaze moje wypociny:
Kod: | http://aqq-studio.pl/syf/cms/ |
a teraz moj probem. Chodzi o to ze div z newsami sie rozjezdza, ale tylko wtedy gdy w divie z menu jest swf. Gdy go wywale (zostawi pusty div) to wszystko jest ok:
Kod: | http://aqq-studio.pl/syf/cms/index2.php |
Troche zamotalem ale mam nadzieje ze wiadomo o co chodzi. Zalaczam jeszcze kod html i css. Poradzcie co zrobic aby nie rozwalalo tak ):-<
html
Kod: | <html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="pl">
<link href="style.css" type="text/css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="top">
<div id="NAGLOWEK">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
id="header"
width="1004" height="100"
>
<param name="movie" value="header.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="header"
width="1004" height="100"
src="header.swf"
bgcolor="#FFFFFF"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
</div>
<div id="MENU">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
id="menu"
width="250" height="500"
>
<param name="movie" value="menu.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="menu"
width="250" height="500"
src="menu.swf"
bgcolor="#FFFFFF"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
</div>
<div id="TRESC">
<?PHP
include('news/news.php');
?>
</div>
<div id="STOPKA">
Projekt i wykonanie: Aqq Studio
</div>
</div>
</body>
</html> |
css
Kod: | html, body {
background-color: #fff;
color: #000;
margin: 0;
padding: 0;
}
#top {
width: 1004px;
margin: 0 auto;
padding: 0 0 0 0;
align: center;
}
#NAGLOWEK {
background-color: #888;
}
#MENU {
width: 250px;
float: left;
position: relative;
background-color: #ccc;
}
#TRESC {
margin-left: 250px;
padding: 10px 10px 10px 10px;
background-color: #ffffff;
position: relative;
}
#STOPKA {
clear: both;
text-align: right;
color: #ffffff;
padding: 0px 10px 0px 0px;
background-color: #888;
}
|
[ Dodano: Nie 16 Sie, 2009 09:46 ]
Problem rozwiazany, trzeba bylo w css zmienic na:
Kod: | #TRESC {
background-color:#FFFFFF;
clear:none;
float:left;
padding:10px;
position:relative;
width:734px;
} |
|
|