Reply to topic
Table Problems
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 770
Location: Newark, De
Reply with quote
Got a problem getting a table to look the way I want it. Heres a snapshot of it:

http://www.mtgotradingpost.com/uploads/tableproblem.jpg

I'm trying to get the "Submit a Trade Request" text moved to the right, while leaving the trader name on the left. I can't do this in two cells b/c it's dynamic output. Here's the relevant code - suggestions are welcome!

Code:
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0" class="MainOutline">           
           <td align="center" valign="top"><table width="637" border="0" cellspacing="5" cellpadding="5">
        <tr align="center" valign="middle">
          <td colspan="5" class="TopCellBig">Matching Traders</td>
        </tr>
      <tr align="center" valign="middle">
          <td colspan="5"><p class="style2">The following traders own cards that you want.  To see a full list of their cards,
         click on their username.</p>
          <p class="style2">NOTE: THE &quot;SUBMIT a Trade Request&quot; function is still being made! </p></td>
        </tr>
<cfif qGetWantedCards.RecordCount NEQ 0>         
<cfquery name="qGetMatches" datasource="#dsn#" username="#un#" password="#pw#">
          SELECT UserID, CardID
          FROM mycards
          WHERE CardID IN (#ValueList(qGetWantedCards.cardID)#)
        AND UserID <> "#cUserID#"
        AND own = 1
        ORDER BY userID ASC
</cfquery>       
<cfoutput query="qGetMatches" group="UserID">
    <tr>
      <td colspan="5" class="formButton" width="720" height="30" align="left" valign="middle">
     <strong>
      <a href="#HOMEPAGE#traders/tradercards.cfm?userID=#userID#">
       #GetUsernameFromUserID(qGetMatches.UserID)#</a> - <b><a href="#HOMEPAGE#traders/traderequest.cfm?to=#userID#">Submit Trade Request</a></b>
      <div align="right"></div></td>
    </tr>
    <tr bgcolor="f5f5f5">
      <td height="30" align="left" valign="middle"><cfoutput><span class="main">
     <a href = "javascript:kada_AutoResWindow('#HOMEPAGE#/images/large/#CardID#.jpg','ImageWindow','250','380','')">
     #GetCardTitlefromCardID(qGetMatches.cardID)#<br></a></span></cfoutput></td>
      </tr>
</cfoutput>
<cfelse>
<tr>
  <td width="720" height="30" align="center" valign="middle"><span class="leftformcell">Sorry, but you have to have cards that you want in order to find a matching trader!</span></td>
</tr>
</cfif>

 
</table>   
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
im me tomorrow and ask when i dont have a headache k
Alan
HostMySite Marketing

Joined: 08 Mar 2004
Posts: 126
Reply with quote
I dont see why you wouldn't be able to just split the cell in two. I will talk to you when you get in today.
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
Confused why are you still using tables?

*thunderous laughter* Twisted Evil MUAH HA HA HA HA HA!!! Twisted Evil
Alan
HostMySite Marketing

Joined: 08 Mar 2004
Posts: 126
Reply with quote
I think he saw my earlier post about making the tables in Frontpage and went with it Laughing
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
OMFG and I just realized he isn't using CSS w/ those tables!!! Teh 3xtre[V]e s1n!!!
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 770
Location: Newark, De
Reply with quote
Yeah, my code typcially looks like a nightmare. Smile Do as I say, not as I do. If you want to take a look at the site this is being used on, it's 'www.mtgotradingpost.com'
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Can you explain why - especially if it is dynamic output - that you cannot do it in two cells?

I don't quite get that...I mean if there's no data you can account for that in your scripting...
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 770
Location: Newark, De
Reply with quote
Bobum,

I was being an id10t. It is VERY possible in two cells I was just thinking of it wrong. Smile

Alan showed me the error of my ways, so I've got it looking better now. I'll show you when I'm done!
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Jamie, FrontPage has got a nice system for making tables... I can whip one up in 5 seconds. Then I can go back having my martini, letting the girls rub my back some more. Why must you guys spend all that time coding when FrontPage makes it so easy? Why reinvent the wheel?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
because allen dreamweaver can make them in 2 seconds flat and properly coded with no junk, see thats why fp takes 5 seconds, 3 seconds worth of writing extra junk code Wink

or better yet i can hit a snippet and have a table already formatted how i generally use it in 2 seconds as well
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Touche... I didn't realize dreamweaver was that much faster. I must get one I guess... 3 more seconds with the girls would be dandy!! (hum... 'dandy', I haven't used that word since the spring of '47)
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
awhole 3 more secs is like getting it twice!
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 770
Location: Newark, De
Reply with quote
Ha. Whippersnappers. I hard code all my tables.

Laughing
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
thats why they dont work Wink
Table Problems
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

  
  
 Reply to topic