[UPHPU] Adjusting Table
Justin Giboney
giboney at giboneydesigns.com
Thu Jul 26 15:27:01 MDT 2007
I meant that the number of columns is adjusted to what the width is.
Also wrapping around floating objects.
Justin Giboney
On Jul 26, 2007, at 3:14 PM, cole at colejoplin.com wrote:
> 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 <giboney at giboneydesigns.com>:
>
>> 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
>> UPHPU at uphpu.org
>> http://uphpu.org/mailman/listinfo/uphpu
>> IRC: #uphpu on irc.freenode.net
>
>
>
>
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
More information about the UPHPU
mailing list