The easy answer is:
width:100%;
A div's width is automatically 100% of it's parent. When using
table-cell, be careful about cells with no content. Also IE6 is bad
about ignoring TD widths in css.
-- Cole
Quoting Justin Giboney <[EMAIL PROTECTED]>:
How can I get some div elements (or a table) to adjust to the width of
the screen?
CSS
.singleimgsub {
display: table-cell;
margin: 10px;
}
PHP (in while loop of sql statement)
echo ('<div class="singleimgsub"><img src="manage/images/smactors/' .
$row2['Actor_SM_Image_File'] . '"><br />' . $row2['Actor_First_Name'] .
' ' . $row2['Actor_Last_Name'] . '</div>');
I have tried making the div inline but that doesn't put all the actors
next to each other. If they are block they are in a vertical line (not
what I want). I want the photos to basically adjust to the width of the
content div.
Thanks
Justin Giboney
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net