![]() |
![]() |
|||
|
||||
|
|||||||
| Register | Forum Rules | FAQ | Search | Today's Posts | Mark Forums Read |
| Welcome Guest Visitor! Please Register, It's Free and Fun To Participate! | |
|
The EXTREME Overclocking Forums are a place for people to learn how to overclock and tweak their PC's components like the CPU, memory (RAM), or video card in order to gain the maximum performance out of their system. There are lots of discussions about new processors, graphics cards, cooling products, power supplies, cases, and so much more!
You are currently viewing our boards as a "guest" which gives you limited access to view most discussions. You need to register before you can post: click the register link to proceed. Before you register, please read the forum rules. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own pictures, and access many other special features. Registration is fast, simple, and absolutely free! To start viewing messages, select the forum that you want to visit from the selection below. After you have registered and read the forum rules, you can check out the FAQ for more information on using the forum. We hope you enjoy your stay here! Note To Spammers: We do not allow unsolicited advertising! Spam is usually reported & deleted within minutes of it being posted, so don't waste your time (or ours)! |
|
| Please Register to Post a Reply |
|
|
Thread Tools |
|
|
#1 | ||||
|
Learning To Overclock
Senior Member
|
table problem
Code:
<table border=0 cellspacing=0 cellpadding=4>
<tr>
<td rowspan=2 valign=top>
<img height=240 src=myimg.jpg class=ProductImage></a>
</td>
<td width=300 valign=top height=50>
<span class=ProductName>myname</span>
</td>
<td align=right valign=top width=80 height=50>
<font color=green><b>myprice</b></font>
</td>
</tr>
<tr>
<td colspan=2 rowspan=2 width=380 valign=top height=5>
description
</td>
</tr>
<tr>
<td align=right valign=top height=50>
<form method=get action="/cart.php"> Order: <input type=text name=quantity value=0 size=1><br>
<input type=submit value="Order Now!">
</form>
</td>
</tr>
<tr>
<td valign=bottom align=left colspan=3>
specs
</td>
</tr>
</table>
|
||||
|
|
|
|
#2 | ||||
|
moo!
Senior Member
|
Which version of IE?
|
||||
|
|
|
|
#3 | ||||
|
Learning To Overclock
Senior Member
|
|||||
|
|
|
|
#4 | ||||
|
thepeoplesgreek
Senior Member
|
You should use embedded tables for more complex organization. (Well, you should really position everything with CSS--not to be confused with css-positioning--, but for your purpose tables are acceptable).
here is my version, which works both in IE and Firefox. I set border to 1 so you can see if everything is properly set, you can set it to zero though. Code:
<table border=1 cellspacing=0 cellpadding=4> <tr> <td valign=top> <img height=240 src=myimg.jpg class=ProductImage></a> </td> <td valign=top> <table border="1" width="100%" height="100%"> <tr> <td width=300 valign=top height=50> <span class=ProductName>myname</span> </td> <td align=right valign=top width=80 height=50> <font color=green><b>myprice</b></font> </td> </tr> <tr> <td colspan=2 width=380 valign=top height=5> description </td> </tr> </table> </td> </tr> <tr> <td align=right valign=top height=50 colspan=2> <form method=get action="/cart.php"> Order: <input type=text name=quantity value=0 size=1><br> <input type=submit value="Order Now!"> </form> </td> </tr> <tr> <td valign=bottom align=left colspan=2> specs </td> </tr> </table> |
||||
|
|
|
|
#5 | ||||
|
Learning To Overclock
Senior Member
|
Quote:
|
||||
|
|
|
|
#6 | ||||
|
thepeoplesgreek
Senior Member
|
Actually yeah, now that I look at it again, the problem is that you put a rowspan=2 in the description <td>. Take that out. It should only have a colspan=2.
You can also put a colspan of 3 where the form is, to push that out to the right. Here is the code. Wow, I guess for an html old-timer like me it takes a while sometimes. I think its because I take a different approach to these things... hmm.... Heres the code, with only the rowspan taken out of the <td> tag of the description cell, and a rowspan=3 added to the form cell. Code:
<table border=0 cellspacing=0 cellpadding=4>
<tr>
<td rowspan=2 valign=top>
<img height=240 src=myimg.jpg class=ProductImage></a>
</td>
<td width=300 valign=top height=50>
<span class=ProductName>myname</span>
</td>
<td align=right valign=top width=80 height=50>
<font color=green><b>myprice</b></font>
</td>
</tr>
<tr>
<td colspan=2 width=380 valign=top height=5>
description
</td>
</tr>
<tr>
<td align=right valign=top height=50 colspan=3>
<form method=get action="/cart.php"> Order: <input type=text name=quantity value=0 size=1><br>
<input type=submit value="Order Now!">
</form>
</td>
</tr>
<tr>
<td valign=bottom align=left colspan=3>
specs
</td>
</tr>
</table>
|
||||
|
|
|
|
| Please Register to Post a Reply |
| Thread Tools | |
|
|