0

I am having trouble in styling the table in php code. I was wondering if u can help me with it?

echo "<table border='1' padding = '20'>";

    echo '<tr>';
    echo '<th>DVD Name</th>';
    echo '<th>Price</th>';
    echo '<th>Quantity</th>';
    echo '<th> Total </th>';
    echo '</tr>';

I just want to like change the colour and increase the cell padding

Thank u

1
Contributor
1
Reply
5
Views
3 Years
Discussion Span
Last Post by Mohamed_26
0

Sorry, I have done it. I will just tell u guys how I did it.

echo '<table border="1" cellpadding="10">';

    echo '<tr bgcolor="#FFC600">';
    echo '<th>DVD Name</th>';
    echo '<th>Price</th>';
    echo '<th>Quantity</th>';
    echo '<th> Total </th>';
    echo '</tr>';

Thanks for taking the time to view this

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.