i upload a image what iam trying to do. iam making a table with 3 cols and 6 rows. but i need help with the height and widths. only thing div width will stay same. do i use % or px? which is better.

<div width='1075px'>
    <table width='100%' border='1px' cellspacing='0' cellpadding='0'>
                  <tr>
                    <td>image 1</td>
                    <td>image 2</td>
                    <td>image 3</td>
                  </tr>
                  <tr >
                    <td>image name 1</td>
                    <td>image name 2</td>
                    <td>image name 3</td>
                  </tr>
                  <tr>
                    <td>image price 1</td>
                    <td>rimage price 2</td>
                    <td>random text 6</td>
                  </tr>
                  <tr>
                    <td>image 4</td>
                    <td>image 5</td>
                    <td>image 6</td>
                  </tr>
                  <tr>
                    <td>random text 10</td>
                    <td>random text 11</td>
                    <td>random text 12</td>
                  </tr>
                  <tr>
                    <td>random text 13</td>
                    <td>random text 14</td>
                    <td>random text 15</td>
                  </tr>
                </table>
</div>

Need some clarification here...

First, in line #1, your syntax is not correct. "width" is not a valid attribute of the div element. If you are trying to set the width with an inline style, you need to use the style attribute. For example...

<div style="width:1075px;">

Please explain what you mean by

"but i need help with the height and widths. only thing div width will stay same. "

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.