开发者

Table inside another table

开发者 https://www.devze.com 2022-12-31 02:46 出处:网络
I had table inside the another table, my inner table display the image, if I enter the text after the inner table, the text should display right side of the table and the bottom of theinner table. How

I had table inside the another table, my inner table display the image, if I enter the text after the inner table, the text should display right side of the table and the bottom of the inner table. How do I do this?

"the below code display the outer table text always displayed below the inner table"

Heading

<table class="">
    <tr style=" width:500px; float:left;">
        <td style="border: thin ridge #008000; text-align:left;" align="left"; >
            <table class="" 
                style=" border: 1px solid #800000; width:200px; float:left; height: 200px;">
                <tr>
                    <td>&nbsp;stackoverflowstackoverflow stackoverflowstackoverflow 
                        stackoverflowstackoverflow stackoverflowstackoverflow&nbsp; </td>
                </tr>
                </table>
            stackoverflow stackoverflowstackoverflow stackoverflowstackoverflow 
            stackoverflowstackoverflow stackoverflowstackoverflow stackoverflowstackoverflow 
            stackoverflowstackoverflow stackoverflowstackov开发者_运维知识库erflow stackoverflowstackoverflow 
            stackoverflowstackoverflow stackoverflowstackoverflow stackoverflowstackoverflow 
            stackoverflowstackoverflow stackoverflowstackoverflow stackoverflowstackoverflow 
            stackoverflowstackoverflow stackoverflowstackoverflow statackoverflow sta</td>
    </tr>
</table>


You should be able to add float: left; to the table via CSS. This will accomplish what you are looking for as it will pull the table out of the normal flow of elements and the text should wrap around to the right and bottom like you described.

0

精彩评论

暂无评论...
验证码 换一张
取 消