Hi its me again =),
See the code below:

<style>
    td{
     width:150px;
     }
</style>
.
.
.

echo'<table>
    <tr>
        <td>TITLE</td>
     </tr>
</table>
.
.
.

Im trying to style the <td> width in css but php doesnt recognize it. I've also tried this <td style="width:150px">TITLE</td>.
Do you have any idea about this?

Thanks

OtepTheThird

PHP is server side, styling is happening client side on the rendered HTML. In any event if you want to apply a fixed width to the table cell, try applying this style to the table element.

 table { table-layout:fixed; }

Both of those should work. Is your actual table different from this one? Because if you only have one row and one cell and no other styling how are you observing the width of the cell?

Sir JorgeM it works..thanks a lot!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.