0

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>
2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by JorgeM
0

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. "

This topic has been dead for over six months. 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.