Jump to content

fitting Ul tags in Table tags ?


co.ador

Recommended Posts

help on this guys

 

 

instead of this

<table>

<td rowspan="4"></td>

<td height="49"><strong>Rating and Review:</strong></td><td align="center"><a href="#">Add Review</a></td>

<tr>

  <td rowspan="1" height="4" ><table style="font-size:10; position:relative;

left:26px;">

<td width="58">five star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

The ul above will have a php while loop that will repeat it automatically?

*/

 

<td width="58">One star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

  </table></td>

</tr><td rowspan="2"></td>

<tr><td height="4"><table style="font-size:10; position:relative; left:26px; ">

  <td width="58">two star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

  </table></td>

</tr>

<td width="321" rowspan="7"></td>

 

<td width="340" rowspan="7"> </td>

  <td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">

  <td width="58">three star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

  </table></td>

  <tr><td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">

  <td width="58">four star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

  </table></td></tr>

  <td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">

  <td width="58">five star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

  </table></td>

  <tr>

    <td height="4" colspan="2"><img src="../images/line..gif" alt="df" width="330" height="7" /></td>

  </tr>

<tr>

  <td width="400" height="52"><strong>Items Specifications:</strong></td>

</tr>

    <td width="400" height="4" style="font-size:11;"><ul>

      <li>Lemon</li>

    </ul></td>

<tr>

  <td width="400" height="4" style="font-size:11;"><ul>

    <li>Marincra</li>

  </ul></td>

</tr>

  <td width="321" height="29" rowspan="5">  </td>

<td width="340" height="29" rowspan="5"> </td>

    <td height="1" colspan="1" style="font-size:11;"><ul>

      <li>Sal</li>

    </ul></td>

    <tr>

      <td height="1" style="font-size:11;"><ul>

        <li>Tomatos</li>

      </ul></td>

    </tr> <tr>

      <td height="1" style="font-size:11;"><ul>

        <li>Plums</li>

      </ul></td>

    </tr> <tr>

      <td height="1" style="font-size:11;"><ul>

        <li>Saludos</li>

      </ul></td>

    </tr> <tr>

      <td height="1" style="font-size:11;"><ul>

        <li>Asucar</li>

      </ul></td>

    </tr>

 

</table>

 

I want to achieve what's below to fit and <ul> tags inside of td? because the css style of the ul below is styled in the CSS style sheet as ul and it means I will have to change everything is there a way to fit the ul inside the table and td format as it is below?

 

If you notice the html code above has 5 repetitions instead the code below with the ul will repeat 5 times but with a php script that will automatically repeated..

 

 

    <td rowspan="4"></td>

<td height="49"><strong>Rating and Review:</strong></td><td align="center"><a href="#">Add Review</a></td>

<tr>

  <td rowspan="1" height="4" ><table style="font-size:10; position:relative;

left:26px;">

/* the ul below will repeat five times or five row of 5 star*/

'<h3>'.($K+1).' Star Active</h3>

      <ul class="rating '.$num.'star">

  <li class="one">1</li>

      <li class="two">2</li>

      <li class="three">3</li>

      <li class="four">4</li>

      <li class="five">5</li>

      <li class="total">['.$total[$K+1].']</li>

      </ul>'

/* instead of using the td below I will be using the same format of the css style that display the rating effect but I have read that displaying ul inside of td is not good. */

/* instead of manually repeated this five times

<td width="58">five star</td>

  <td width="40">*****</td>

  <td width="25">[23]</td>

The ul above will have a php while loop that will repeat it automatically?

*/

 

Link to comment
Share on other sites

Instead of this:

<table>
<td rowspan="4"></td> 
<td height="49"><strong>Rating and Review:</strong></td><td align="center"><a href="#">Add Review</a></td>
<tr>
  <td rowspan="1" height="4" ><table style="font-size:10; position:relative; 
left:26px;">
<td width="58">five star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td> 
The ul above will have a php while loop that will repeat it automatically? 
*/

<td width="58">One star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td>
  </table></td>
</tr><td rowspan="2"></td>
<tr><td height="4"><table style="font-size:10; position:relative; left:26px; ">
  <td width="58">two star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td>
  </table></td>
</tr>
<td width="321" rowspan="7"></td>

<td width="340" rowspan="7"> </td>
  <td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">
  <td width="58">three star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td>
  </table></td>
  <tr><td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">
  <td width="58">four star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td>
  </table></td></tr>
  <td width="400" height="4"><table style="font-size:10; position:relative; left:26px;">
  <td width="58">five star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td>
  </table></td>
  <tr>
    <td height="4" colspan="2"><img src="../images/line..gif" alt="df" width="330" height="7" /></td>
  </tr>
<tr>
  <td width="400" height="52"><strong>Items Specifications:</strong></td>
</tr>
    <td width="400" height="4" style="font-size:11;"><ul>
      <li>Lemon</li>
    </ul></td>
<tr>
  <td width="400" height="4" style="font-size:11;"><ul>
    <li>Marincra</li>
  </ul></td>
</tr>
  <td width="321" height="29" rowspan="5">  </td>
<td width="340" height="29" rowspan="5"> </td>
    <td height="1" colspan="1" style="font-size:11;"><ul>
      <li>Sal</li>
    </ul></td>
    <tr>
      <td height="1" style="font-size:11;"><ul>
        <li>Tomatos</li>
      </ul></td>
    </tr> <tr>
      <td height="1" style="font-size:11;"><ul>
        <li>Plums</li>
      </ul></td>
    </tr> <tr>
      <td height="1" style="font-size:11;"><ul>
        <li>Saludos</li>
      </ul></td>
    </tr> <tr>
      <td height="1" style="font-size:11;"><ul>
        <li>Asucar</li>
      </ul></td>
    </tr>
  
</table>

 

I want to achieve what's below to fit and <ul> tags inside of td? because the css style of the ul below is styled in the CSS style sheet as ul and it means I will have to change everything is there a way to fit the ul inside the table and td format as it is below?

 

If you notice the html code above has 5 repetitions instead the code below with the ul will repeat 5 times but with a php script that will automatically repeated..

 

 

   

<td rowspan="4"></td> 
<td height="49"><strong>Rating and Review:</strong></td><td align="center"><a href="#">Add Review</a></td>
<tr>
  <td rowspan="1" height="4" ><table style="font-size:10; position:relative; 
left:26px;">
/* the ul below will repeat five times or five row of 5 star*/
'<h3>'.($K+1).' Star Active</h3>
      <ul class="rating '.$num.'star">
  <li class="one">1</li>
      <li class="two">2</li>
      <li class="three">3</li>
      <li class="four">4</li>
      <li class="five">5</li>
      <li class="total">['.$total[$K+1].']</li>
      </ul>'
/* instead of using the td below I will be using the same format of the css style that display the rating effect but I have read that displaying ul inside of td is not good. */
/* instead of manually repeated this five times
<td width="58">five star</td>
  <td width="40">*****</td>
  <td width="25">[23]</td> 
The ul above will have a php while loop that will repeat it automatically? 
*/

 

Sorry I missed that.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.