Ustawiam dwa div'y w jednej lini i niestety div z prawej strony ucieka pod pierwszego diva, ale jest "zgodnie" z planem po prawej stronie.
Oto kod html i css:
Kod
#block_content {
height:auto;
overflow:hidden;
width:635x;
max-width:635px;
display:inline;
float:left;
}
#slideshow {
height:auto;
display:inline;
float:right;
overflow:hidden;
width:217px;
min-width:202px;
max-width:217px;
}
#marqueecontainer{
position:relative;
width:187px;
margin:0;
height:375px;
overflow:auto;
}
#content {
width:852px;
background:url('images/bg_cont.gif') repeat-y;
min-height:370px;
height:auto;
margin:0 auto;
}
.padding1 {
padding:35px;
}
height:auto;
overflow:hidden;
width:635x;
max-width:635px;
display:inline;
float:left;
}
#slideshow {
height:auto;
display:inline;
float:right;
overflow:hidden;
width:217px;
min-width:202px;
max-width:217px;
}
#marqueecontainer{
position:relative;
width:187px;
margin:0;
height:375px;
overflow:auto;
}
#content {
width:852px;
background:url('images/bg_cont.gif') repeat-y;
min-height:370px;
height:auto;
margin:0 auto;
}
.padding1 {
padding:35px;
}
<div style="width:852px;height:auto;position:relative;top:53px;overflow:auto;"> <div id="block_content"> <div class="padding1"> <?php ... ?> </div> </div> <div id="slideshow"> <div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed"> <div id="vmarquee" style="position:absolute;width:83%;margin:0;margin-left:10px;"> <?php include('slide_show.php'); ?> </div> </div> </div> </div>
i na koniec plik slideshow php
<?php $Db = new Engine(HOST, USER, DBPASSWORD, NAME); if ( $Db->IsConnected ) { $Db->Query("SELECT * FROM Galleries LEFT JOIN Photos ON PhotoGallery=GalleryID WHERE GalleryCategory='Fotorelacje' GROUP BY PhotoGallery ORDER BY GalleryID ASC;"); while ( $Row = $Db->FetchArray() ) { echo '<a href="./index.php?p=display_photos&gi='.$Row['GalleryID'].'#photo'.$Row['PhotoID'].'"><img src="./photos/mini/'.$Row['PhotoID'].'.jpg" alt="" style="border:0;margin-bottom:10px;" /></a>'; } } $Db->Close(); ?>