Jump to content

Working with tabels

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
pinstripe05

pinstripe05

    Newbie

  • Members
  • Pip
  • 2 posts
I've been having a problem. I want to create a table that has 4 boxes in width, with an unlimited potential in height. My "main content" is 598px. When I reach 4 boxes I want it to automatically start a new row when I insert more picture. When I continue the process and add the same table code over 4 time, the 5th table goes into my “right side bar” and doesn’t go down when it has reach the size limit of the main content. How would i fix this? here is the code

Main content:
#content #picture {
padding-top: 20px;
width: 598px;
position: relative;
float: left;
margin-right: 5px;
margin-left: 5px;
}

Table attributes:
<table width="100%" cellpadding="0" cellspacing="0">
<tr><center>
<td valign="bottom" width="195">
<table cellpadding=2 cellspacing=0 width="140">
<tr><td colspan=2>Flowers<br /></td></tr>
<tr>
<td colspan=2><a class="thumb" target="_blank"><img src="file:///C|/Documents and Settings/J/Desktop/Flowers/images/f3.jpg" width="135" height="120"></a><br /></td></tr>
<tr><td><font class="s"></font><br /></td><td align=right><font class="s"><br /><br /></td></tr>
</table>
<br />
</td>
</center></tr>
</table>

#2
Guest_master99_*

Guest_master99_*
  • Guests
Creating table in HTML is very easy task..
see below link to find Higher Page Rank Tutorials
http://www.tutorials99.com

#3
atheium

atheium

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
i hope your not using a table for your sites layout. that can cause some issues..

#4
k4m1k4z1

k4m1k4z1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
try repeat -y. I don't know if this is going to work, but at least try it. Sorry if it doesnt.

#5
Howdy_McGee

Howdy_McGee

    Programmer

  • Members
  • PipPipPipPip
  • 135 posts
Percentages might work for height; then you could use min-height/max-height if you dont want it to exceed

#6
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts

atheium said:

i hope your not using a table for your sites layout. that can cause some issues..
why are tables bad?
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#7
Howdy_McGee

Howdy_McGee

    Programmer

  • Members
  • PipPipPipPip
  • 135 posts
There not bad if you actually making some kind of chart. But layout wise it's not the best choice. You can achieve the same thing with Div tags and you have more/better control on what they do. Using tables your control is kinda limited.