HighDots Forums  

Re: html table prolem

alt.discuss.html alt.discuss.html


Discuss Re: html table prolem in the alt.discuss.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Clark
 
Posts: n/a

Default Re: html table prolem - 02-07-2006 , 12:04 PM






roN wrote...
Quote:
if u go to: http://www.paykiosks.net/new/products.htm u can see 4 pictures
below each other but they should be 2 and 2. The table has a with of 749px
and the pictures have a width of 362px and as far as i calculate, should
there be to beside eaxch other, two rows with two pictures cause
2x362=724px hm, can anyone help me please? Thank you!
The table code seems a bit of a mess. For a start you have all four of
those images inside the same table cell. If you are going to use tables
for layout, and there are some who would say you shouldn't, you could be
sure to make the images line up as you want by putting each one into a
separate <td> cell, with two <td> cells to a <tr> row.

Secondly, the cell in which you have the four images specifies a width
of only 651 pixels <td width="651" rowspan="3"> which means for sure
that two 362 pixels wide images won't fit side by side. Also, that is
the only <td> cell in that <tr> row, so you should add colspan="2" so
that it matches the rows above. Errors like that could prevent the page
appearing at all in some browsers.

Why specify widths for the table or cells? Why not use a percentage of
the page width and of the table width?

E.g. <table width="90%" border="0" cellspacing="0" cellpadding="0">
--
Martin Clark


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.