HTML - Table Submit Issues
I am not actually sure what has not been scripted correctly, I did not make these pages, my friend did & we are no longer in contact. You will have to view the source code on the page to get a better idea of things & the code is pretty short, if anyone can offer ANY advice here I would be so greatful thanks a bunch...
If you goto http://stoneramerica.fatcow.com/action-add.php there is a "add url" option ( this is the page that has something wrong, but im not sure where or what ) The page is suppose to take the data from the website submitted & post that data to the tables we have created on the page below... You can view these tables here http://stoneramerica.fatcow.com/swoop.php Similar TutorialsI have never had this error before until now, where I am trying to submit a jQuery validated form, yet my submit button won't work, I currently am not using the input type submit button, even when I do use it though I get the same error as using a <a> link that calls a javascript function to submit the form, I have a duplicate of this code and it works fine on another page, but just not here. Here is my mess: http://motb.isgreat.org/ It probably is easier to just check the whole source, since my code is scattered. This website is targeted for WEBKIT BROWSERS ONLY! To navigate to the issue on the page itself, press the gold login button on the RIGHT, and try submitting the form, I know the join form doesn't work, since I am not done with the page yet. But the login form should target to http://motb.isgreat.org/login.php which has a duplicate of my form but it works, im really confused, it may be with my JavaScript. Any Help is appreciated. I know my code is messy, my excuse is only being 15, but yeah… at least most of it functions I am coding in PHP, but I don't think that should have anything to do with it. My problem appears to have to do with the HTML. I am using a 15x15 jpg as a submit button, but I have many of them in a table one per cell with no borders or spacing, so there are many of these submit buttons right next to each other in a grid. The problem is that though the cells are set to be 15x15, the page is displaying them in cells that are 15x27 with the jpg aligned to the top, though the source code does not reflect the 27 figure. I have set the width and height attribute on every cell and image. Is there something I should be looking for to ensure all of my code places the images in the right size and placement? There is no CSS in play with this part of the site. Thanks! Hi all! I have a table created using php getting information from a MySQL database. No problems there. The problem is that I want to put a form submit button near each of the table rows. Now. the logical thing to do would be to add a column to the table and put a submit button in each row. The only problem is that I want there to be a border only around the original table and not over the submit buttons. How do I go about doing that? Thanks in advance, dirk_gently Hello, I am having some issues with a table doing weird things to my web page. It was working before, but I had to change it to put a Google AdSense spot in it. Here's the page I am viewing for testing purposes: http://www.combatfilms.com/ads/index.asp It uses ASP header and footer files, but the only actual ASP used is to include the file, the rest is HTML. The problem is that as you can see it is squishing the text to the left. The actual problem is taking place in the HTML of http://www.combatfilms.com/ads/include/header.asp The tricky part is that I need to not end the table until the footer.asp file does. This is because the title of every page is in a cell which is started on the header, but the actual text differs on pages. I don't know if this is clear, and I apologize if it isn't. The main thing I need to do here is to include the Google AdSense without changing anything on the index.asp file, only the header.asp file. Help is appreciated. When you check out the following sites in IE 7 the table cells break the text of combined cells. http://www.destinydealers.de/members.html http://www.destinydealers.de/achievements.html http://www.destinydealers.de/imprint.html In Firefox/Google Chrome/Seamonkey and so on everything is just fine. In IE 8 everything is fine too, but only for a few seconds and then it puts me back to IE 7 compatibility (...and bugs). Ok my boss and I are kind of stumped and not sure why this is happening. My table is set up to be 1000px wide and im only using about 995. Anyway the table is getting repeated and the cells arnt lining up from one to the other. Here is a link to my server so you all can see what I am talking about. http://www.millermachinecompany.com/...te_listing.htm This has been testes on 1024x768 and also a 17" wide screen. On the wide screen the top most table is only about half the length for some reason. Anyway if any of you have any ideas why this is happening, the help would be greatly appreciated. Thank you I've been working on this simple single column layout for a while, and it was working just fine until the end, and for some reason, the top of the table is giving a problem, and the header isn't showing properly. http://akito.clavis-sama.com/ Any clue how to get rid of that portion right at the top? Ok so I have a template from Dreamweaver that I am using with several div's. I can add content to the template fine, however when I attempt to add a table to the main content of the page, the Div's go all out of sequence. Here is my code (I know it may not be the best, but I need to quickly get the table to format correctly...): Quote: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0; padding: 0; text-align: center; color: #000000; background-color: #333; } .thrColElsHdr #container { width: 60em; background: #FFFFFF; margin: 0 auto; border: 1px solid #000000; text-align: left; } .thrColElsHdr #header { padding: 0 10px; background-color: #FFC; color: #039; font-family: Tahoma, Geneva, sans-serif; } .thrColElsHdr #header h1 { margin: 0; padding: 10px 0; } .thrColElsHdr #sidebar1 { float: left; width: 11em; padding: 15px 0; background-color: #FFC; color: #333; } .thrColElsHdr #sidebar2 { float: right; width: 11em; background: #EBEBEB; padding: 15px 0; } .thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 { margin-left: 10px; margin-right: 10px; } .thrColElsHdr #mainContent { margin: 0 12em 0 12em; font-family: Verdana, Geneva, sans-serif; color: #666; } .thrColElsHdr #footer { padding: 0 10px; background:#DDDDDD; } .thrColElsHdr #footer p { margin: 0; padding: 10px 0; font-size: 10px; } .fltrt { float: right; margin-left: 8px; } .fltlft { float: left; margin-right: 8px; } .clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px; } --> </style><!--[if IE]> <style type="text/css"> </style> <![endif]--></head> <body class="thrColElsHdr"> <div id="container"> <div id="header"> <h1 align="center">RelationShare CRM</h1> <!-- end #header --></div> <div id="sidebar1"> <h3>Navigation</h3> <br/> <a href="Name.asp"> <img src="Images/button/button1up.png" border="0"/></a> <br/> <div align="center"><a href="Add_Name_170410.asp"><img src="Images/button2over.png" border="0"/></a> <a href="Edit_Name.asp"><img src="Images/buttons/button24up.png" border="0"/></a> <a href="Search_Name.asp"><img src="Images/button/searchnames1.png" border="0"/></a> </div> <a href="Address.asp"> <img src="Images/button/button2up.png" border="0"/></a> <br/> <a href="Program.asp"> <img src="Images/button/button6up.png" border="0"/></a> <br/> <a href="Campaign.asp"> <img src="Images/button/button3up.png" border="0"/></a> <br/> <a href="Support.asp"> <img src="Images/button/button4up.png" border="0"/></a> <br/> <br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/> <!-- end #sidebar1 --></div> <div id="sidebar2"> <h3>Tips</h3> <p>Creating Names</p> <p style="font-size:smaller;">Please ensure that all fields are entered correctly, and that only numbers are entered in the Telephone fields.</p> </div> <!-- end #sidebar2 --> <div id="mainContent"> <h1 align="center"> <em>Name</em></h1> <br/> <% Dim connect, Records, SQL Set connect = server.CreateObject("ADODB.Connection") connect.open = "Provider=MSDASQL;Driver={SQL Server};Server=REECE-PC\RHSQLEXPRESS;Database=RelationShare;Uid=sa;Pwd=;" Dim SCRIPT_NAME SCRIPT_NAME = Request.ServerVariables("SCRIPT_NAME") Dim strSQL Dim iRecordID SQL = "SELECT * FROM Name" Set Records = connect.execute(SQL) %> <table border="1" cellspacing="2" cellpadding="2"> <thead> <tr> <th>NameID</th> <th>Last Name</th> <th>First Name</th> </tr> </thead> <tbody> <% Do While Not Records.EOF %> <tr> <td><%= Records.Fields("Name_ID").Value %></td> <td><%= Records.Fields("LastName").Value %></td> <td><%= Records.Fields("FirstName").Value %></td> <td><a href="<%= SCRIPT_NAME %>?action=edit&id=<%= Records.Fields("Name_ID").Value %>">Edit</a></td> </tr> <% Records.MoveNext Loop %> <!-- end #mainContent --></div> <br class="clearfloat" /> <div id="footer"> <p>RelationShare CRM Pty Ltd</p> <!-- end #footer --></div> <!-- end #container --></div> </body> </html> And below are some screenshots showing the table causing all sorts of havoc with may page. In particular the Grey section with "RelationShare CRM Pty Ltd" is supposed to be a footer at the bottom of the page. Any ideas? I know it will be something simple, I just cant work it out!! Hello, I am having a bit of a problem with my tables and am not sure how to resolve it. @ www.scubatoo.net/test.php you will find that the top 3 rows are only 33.3% the width of the table. I understand that this is because the corresponding <tr> below are also 33.3% wide. How can I over come this? Thanks, Ryan I'm just learning html and css so this might be something basic. But on my site i'm making i have a form inside a table and when you click submit the table resizes and dosen't submit. When you click submit on the resized table it submits. When you submit nothing changes that would make the table resize. I don't know what to do the link to the page is http://web.ics.purdue.edu/~mlchandl/brittany/index.php If anyone can help I would appreciate it. Thanks Matt Hey All, I sliced a PNG and ended up with a table that overflows and screws up the whole page. Here's what it's supposed to look like: http://www.uark.edu/ua/oep/web2/index.php And here it is stretched out by the content area: http://www.uark.edu/ua/oep/web2/headlines.php?so=da Help? Thanks! J Darnielle Hey guys. I am having to rework some HTML/CSS and I am just getting frustrated with this part. I have a background image that needs to be the image behind both of the tables, but it can only be shown once. Mockup of what I need this part to look like: Here is my code at the moment -- HTML Part: HTML Code: <table id="myScheduleTable" width="100%"> <span class="sessionHeader">Session Wish List</span><br /> <tr> <form id="session_search"> <td valign="middle"> <a href="javascript:void(0);"><img src="{$APP_URL}/img/btn_save.gif" alt="Save" title="Save" onClick="saveMySchedule(true); return false;"></a> </td> <td valign="middle"> <input type="image" src="{$APP_URL}/img/clearButton.gif" Title="Clear" onClick="clearSessions();return false;"/> </td> <td valign="middle"><a href="javascript:void(0);" title="Email My Schedule" onClick="showEmailMySchedule();return false;"><img src="{$APP_URL}/img/btn_email.gif" alt="Email my Schedule"></a> {include file="$THEME/common/mail_a_friend.tpl"} </td> <td valign="middle"> <input type="image" src="{$APP_URL}/img/btn_printNow.gif" title="Print Now" onClick="new_window=window.open('','_blank');printSchedule(new_window);return false;" /> </td> <td valign="middle"> <a href="javascript:void(0);" title="Add to my Profile" onClick="exportHTML();return false;"><img src="{$APP_URL}/img/btn_addToProfile.gif" alt="Add to my Profile"></a> </td> <td valign="middle"> <div id='blankContainer'></div> </td> </tr> </table> <div id="myScheduleContainer"> <div name="userScheduleContainer" id="userScheduleContainer"> <form name="user_sessions" id="user_sessions"></form> <div id="userScheduleListContainer"> <div id='user_schedule_div'>{if !$user_sessions}No sessions selected.{/if}</div> </div> <div id="userSchedulePassContainer"></div> </div> </div> </td> <td> <span class="sessionHeader">myGDC Schedule</span><br /> <table id="myScheduleTable" width="100%"> <tr> <form id="session_search"> <td valign="middle"> <a href="javascript:void(0);"><img src="{$APP_URL}/img/btn_save.gif" alt="Save" title="Save" onClick="saveMySchedule(true); return false;"></a> </td> <td valign="middle"> <input type="image" src="{$APP_URL}/img/clearButton.gif" Title="Clear" onClick="clearSessions();return false;"/> </td> <td valign="middle"><a href="javascript:void(0);" title="Email My Schedule" onClick="showEmailMySchedule();return false;"><img src="{$APP_URL}/img/btn_email.gif" alt="Email my Schedule"></a> {include file="$THEME/common/mail_a_friend.tpl"} </td> <td valign="middle"> <input type="image" src="{$APP_URL}/img/btn_printNow.gif" title="Print Now" onClick="new_window=window.open('','_blank');printSchedule(new_window);return false;" /> </td> <td valign="middle"> <a href="javascript:void(0);" title="Add to my Profile" onClick="exportHTML();return false;"><img src="{$APP_URL}/img/btn_addToProfile.gif" alt="Add to my Profile"></a> </td> <td valign="middle"> <div id='blankContainer'></div> </td> </tr> </table> <div id="myScheduleContainer"> <div name="userScheduleContainer" id="userScheduleContainer"> <form name="user_sessions" id="user_sessions"></form> <div id="userScheduleListContainer"> <div id='user_schedule_div'>{if !$user_sessions}No sessions selected.{/if}</div> </div> <div id="userSchedulePassContainer"></div> </div> </div> </td> </tr> </table> CSS Part: Code: #myScheduleBG { background-image:url(http://test.gdconf.com/scheduler/img/mySchedule_bg.jpg); background-repeat: no-repeat; width: 872px; height: 283px; position: relative; float: left; border: none; top: 15px; left:-2px; } #mySessionWishList { float: left; display: block; border: none; } #myGDCSchedule { float: right; display: inline; border: none; } #myScheduleTable { position: relative; left:9px; top: 5px; width: 425px; } #myScheduleContainer { position: absolute; left: 9px; top:48px; width: 425px; height: 220px; border: none; background-color: #000000; } The background image is mySchedule_bg.jpg and it needs to hold both of the containers. Anyone have some insight as I am getting tired playing a guessing game with this code. All of this relative positioning is throwing me for a loop, especially in IE and Safari. Thanks. Hello, I made a very simple table layout (with photoshop and imageready) and its my very first time making this type of layout so I'm having a little trouble with the coding. I haven't added a style.css file to it, except for maybe the css that wraps my navigation to a certain width. Here is the url: http://rezina.awardspace.com/layout01 I can't seem to align the images correctly. My friend told me that one of the images was not sliced correctly, so I sliced it but .. it kind of fixed the right side, and not the left. Also, the extra.jpg (which is the outside background-the stripes) seems to repeat itself both vertically and horizontally, is there a way to fix that? Thanks. =)) oh. oops. I just read the rules, sorry for the vague title. I would try changing it to be more specific but I don't know how.. Hi Everyone- I'm hoping someone out there might be able to solve a problem I've been having with my site for a number of years. The site was designed for IE but with the growing popularity of Firefox and Safari (to name a few), I want to insure that it works properly with those browsers. For the most part, it does -- except when displaying a background image in a table. For example - look at this page: http://www.cygnus-x1.net/links/rush/...anentwaves.php When viewed in I.E., the grey background image with the woman displays properly, as does the full image of the album cover within. However when viewed in Firefox or Safari, the background image repeats near the bottom for about 20 pixels. The problem also exists on a page like this one: http://www.cygnus-x1.net/links/rush/lyrics.php Where the brown background image which includes the words "Rush Lyrics" displays properly in I.E. but seems to repeat for 20 pixels in FF. This one's been driving me crazy for years and, due to some recent changes I've been making, it's come back to haunt me. If anyone has any suggestions as to why this is happening and what I can do to remedy it, I would greatly appreciate it... Thanks so much. Hello, I just made my new site for my company and I tried to keep it extremely simple. I used wordpress to do the basic layout automatically and made some simple edits with some basic html i picked up along the way this week. There seems to be two problems though: 1) the form is inside a table which doesnt seem to align properly within any of the popular browsers (firefox/IE/chrome) .... it should look like 1 image instead of 3 separate pieces 2) i eventually got the form to align slightly better but the spot where I "Enter my zip code" doesnt align with the background image behind it.....sometimes it doesnt even say "enter zip code" which is very bad for a user experience. in firefox it doesnt say it, but in chrome it does say it....either way, both are aligned very poorly..... I put my code into this site: http://w3schools.com/html/tryit.asp?...=tryhtml_intro ...and after editing it, i've come to find that it works perfectly within that html editor and looks exactly how i want it to look. but then when i put the code back into my wordpress site, the alignment messes up again...... so i did some research and found out that wordpress has "deprecated" some of the html tags and that they dont work anymore...if i understand correctly. so now i have to find a way to pick new tags or use CSS...this is just so confusing and i thought maybe somebody here might be able to offer me some assistance to help me fix up this form/table problem. my site's url is: http://www.allautoinsurance.org my code that I'm editing is on the right sidebar, where the alignment messes up: <div style="text-align: center;"><span style="font-size: 14pt; font-family: Georgia; color: rgb(0, 0, 0);"><span style="font-size: 14pt;"><span style="font-size: 14pt;">Our free online service instantly browses the best rates in your zip code area at the click of a button. We've helped thousands of people quickly and easily save money on their auto insurance:</span></span></span><br /> <br /> <form action="http://network.mossaffiliatemarketing.com/z/61/CD62/&subid3= "method="post"> <table border="0" cellpadding="0" cellspacing="0" width="225"> <tr> <td colspan="2"><img src="http://www.allautoinsurance.org/wp-content/uploads/2009/08/top.jpg"></td> </tr> <tr> <td class="background1" valign="middle" height="54" width="153"> <style> .background1 { background-image: url(http://www.allautoinsurance.org/wp-c...tom_left.jpg); background-repeat: no-repeat; } </style> <input type="text" name="subid1" value="ENTER ZIP CODE" style="margin-left:30px; margin-bottom:5px; width:110px; border-width:0px; font-size:14px; font-family: Arial, Helvetica, sans-serif;" onClick="javascript:this.value='';"> </td> <td> <input type="image" src="http://www.allautoinsurance.org/wp-content/uploads/2009/08/bottom_right.jpg"></td> </tr> </table> </form> </div> <div style="text-align: left;"><span style="font-size: 12pt;"><span style="font-size: 12pt;"><span style="font-size: 12pt; font-family: Georgia;"><span style="font-size: 12pt;"><span style="font-weight: bold; color: rgb(0, 0, 0); font-size: 12pt;">Step 1)</span> Input your zip code and click the button above to begin browsing the auto insurance providers in your area</span></span></span><br /> <br /> <span style="font-size: 12pt;"><span style="font-size: 12pt; font-family: Georgia;"><span style="font-size: 12pt;"><span style="font-weight: bold; color: rgb(0, 0, 0); font-size: 12pt;">Step 2)</span> Select the auto insurance provider you're most comfortable with by clicking their picture<span style="font-weight: bold; color: rgb(255, 0, 0); font-size: 12pt;"> </span></span></span></span><br /> <span style="font-size: 12pt;"><span style="font-size: 12pt; font-family: Georgia;"><span style="font-size: 12pt;"><span style="font-weight: bold; color: rgb(255, 0, 0); font-size: 12pt;">Warning</span>: Dont <span style="font-style: italic; font-size: 12pt;">always </span>go with the cheapest in the area</span></span></span><br /> <br /> <span style="font-size: 12pt;"><span style="font-size: 12pt; font-family: Georgia;"><span style="font-size: 12pt;"><span style="font-weight: bold; color: rgb(0, 0, 0); font-size: 12pt;">Step 3)</span> Continue with the providers process if they meet your requirements</span></span></span></span><br /> </div> <div style="margin-left: 40px;"><span style="font-size: 10pt; font-family: Georgia;"><span style="font-size: 10pt;"></span></span></div><span style="font-size: 10pt; font-family: Georgia;"><span style="font-size: 10pt;"><br /> <span style="font-size: 12pt;">***We've been showing people how to get insurance quickly and easily for years. We respect your privacy, it is just as important to us as it is to you.</span></span></span> .....thanks for any help, i really appreciate your time and effort. if this code doesnt look smart at all its cuz i used some free WYSIWYG editor to generate it. i actually am very confused lol. thanks again. Best, Kyle P The table itself is working fine, but the size of each cell is not correct in Firefox. Here is a screenshot of what is happening: http://img35.imageshack.us/img35/1938/tabletroubles.gif Here is the head of my page, the css for the table is he HTML Code: <style type="text/css"> #cat table {border:0px solid #333333; cell-padding:0; cell-spacing:0; align=center} #cat tr {align=center} #cat td {font-size: 13px; font-family=tahoma; font-weight: bold; padding: 0px; border:0px solid #333333; align=center;} #cat td a {text-decoration: none; color:#757575; background-color: white; display:block; height=23; background-image: url(linkbg1.gif); align=center;} #cat td a:hover {background-color: #333333; font-weight: bold; text-decoration: none;color: #ffffff; background-image: url(linkbg2.gif); align=center;} </style> and here is the table code, located in the body of the page: HTML Code: <div style="Height:53px; overflow:auto; width:900px; position:absolute; top:0; left:0"> <TABLE bgcolor=#333333 cellspacing=0; cellpadding=0;><tr><td> <div id="cat"> <table width=900; cellpadding:0px; cellspacing:0px> <tr align=center> <td width=20%> <font face=tahoma><a href="home.html">Home</a></font> </td> <td width=20%><center><font face=tahoma><a href="openings.html" target="_top">Openings</a></font></center></td> <td width=20%><center><font face=tahoma><a href="dance.html" target="_top">Dance</a></font></center></td> <td width=20%><center><font face=tahoma><a href="projects.html" target="_top">Projects</a></font></center></td> <td width=20%><center><font face=tahoma><a href="vocaloid.html" target="_top">Vocaloid</a></font></center></td> </tr> <tr> <td width=20%><center><font face=tahoma><a href="fanflashes.html" target="_top">Fanflashes</a></font></center></td> <td width=20%><center><font face=tahoma><a href="caramelldansen.html" target="_top">Caramelldansen</a></font></center></td> <td width=20%><center><font face=tahoma><a href="cosplay.html" target="_top">Cosplay</a></font></center></td> <td width=20%><center><font face=tahoma><a href="endings.html" target="_top">Endings</a></center></td> <td width=20%><center><font face=tahoma><a href="anime.html" target="_top">Anime Episodes</a></font></font></center></td> </tr> </table> </div> </td></tr></table> </div> A table is nested within another table. The table on the outside has no content, it is there to make a gray border around everything else. If you look at the table in firefox & internet explorer, you'll see that in IE- the table is much thicker than in firefox. How can i make it so that the table in Firefox will have the same thickness as the one in IE? I could really use some help. Thanks! I will be brief in hoping that the issue does not require a thesis to properly fix. I'm dealing with tables within tables..within tables. In one instance, I have a 2x1 (row by column) table inside another table. So, we'll call the inside table "B" and the outside table "A". Table B is centered inside a column in Table A. I'm trying to maximize the space, but nearly nothing works. Setting Table B height=100% does nothing. The only thing that works is setting the height=N px, where N is a number. This is no good, as I want to the site to work on all resolutions. I want it to be proportional. How can I fix this? Here's what I'm dealing with, visually: Any help would be welcome. Thanks. I would like to know if there is such a thing as a tag within a table, that can collapse if the next table within that prior one gets too big to center? Here is an example of a part of my code: Code: <table style="width:757; border-style:solid; border-width:thin; margin:0 0 15px 0"> <tr><td class="spb-category" width="750" style="text-align:left;" colspan="3">Title of this category</td></tr> <tr> <td valign="top" width="33%"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=103">large size book title with author</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=187">small sized book</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=197">small sized book</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> </table> </td> <td valign="top" width="33%"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=101">small sized book</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=188">small sized book</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=120">Medium sized boot title</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> </table> </td> <td valign="top" width="33%"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td width="100%" onmouseover="this.style.background='#ddddff';" onmouseout="this.style.background='#ffffff';"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="spb-book"><a href="product_info.php?products_id=102">a very long title of a book which includes the author</a></td></tr><tr><td class="spb-author">Author</td></tr></table></td></tr> </table> </td> </tr> </table> 1. I want to center each column so that the first letter of each book title is lined-up, but that the longest title on each column has equal space on both left and right. 2. If you look at each column, the width is about 245px. With regard to the first book title in the first column, I have 50px that is extra, therefore I'd like to automatically add 25px to the front of each one of the books for that column. 3. On the second column, there is about 80px extra, therefore I'd like to auto-add 40px to the front of each book in that column. My problem is that I don't want the column centered individually because then I will lose the straight line that I'd like each book to be on top of each other as it starts the line. I tried: style="margin-left:20px" and style="padding-left:20px" but when the title got too long it would not auto-collapse the left side, I want it to collapse! I want one tag that I can insert evenly on every section to get the push to the right an even amount of spaces for every book on each column. If it comes down to it, I wouldn't mind sacrificing that each column gets auto aligned to what is necessary for its own column. So if I have to use one number, say 30px, for the whole webpage, then ok, I'd do it. My problem is that sometimes the 30px empty filler space for the left, in order to push the title to the right, is not enough space for a very long title and it winds up sending half the title to the next line, which I don't want. This code is a list of books that spans about 20 categories and about 400 book titles. Thanks in advance for any help you might offer. Here is an image depicting the trouble I'm having: I want to make a table, consisting of many cells. These cells would be fixed, and *very different* in sizes. It's easy to make a no-space table when all the images are exactly the same size, but when you have images with a variety of sizes, the table doesn't fit perfectly. Basically I want to create a collage of images with overlay text on each image. My idea was that I could create a table, and each cell (td) would have a background which is the image. Then I could just type in that cell, so the text would be over the image. Then I'd do this for every one of my images, and a collage would be formed. The problem is, the table makes large white spaces wherever the image sizes don't match! How do I get rid of these spaces, or is there an entirely different code/approach I should be using? Thanks! Here is my current code: HTML Code: <html> <head> <style type="text/css"> table.nospace { padding: 0; margin: 0; border-collapse: collapse; } table.nospace tr { padding: 0; margin: 0; } table.nospace td { padding: 0; margin: 0; } </style> </head> <body> <TABLE class="nospace" width="2040px" height="2000px" cellspacing="0px" cellpadding="0px"> <TR> <td valign="top"> <table><tr> <TD WIDTH="800px" HEIGHT="800px" BACKGROUND="image.jpg" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>text</FONT></h1> </TD></tr></table> </td> <td valign="top"> <table><tr> <TD WIDTH="700" HEIGHT="497" BACKGROUND="image" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>Text</FONT></h1> </TD></tr></table> </td> <td valign="top"> <table><tr> <TD WIDTH="700" HEIGHT="467" BACKGROUND="image.jpg" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>Text</FONT></h1> </TD></tr></table> </td> </TR> </TABLE> </body> </html> I am to this forum and to html. In fact, i am learning html as i go. I am currently encountering a problem a submit.php When visitors to the page sign up they get an email with the requested info, however, I do not get an email with their info. I providing the code on here for my submit.php. Please help me identify and fix the problem. Thanks Don S. http://www.stocktraderspress.com/trial.php http://www.stocktraderspress.com/submit.php PHP Code: /******************************** * Send the user email message... ********************************/ $mail = new PHPMailer(); $mail->Host = "mail.stocktraderspress.com"; // Set the mail hostname here $mail->Mailer = "smtp"; $mail->SMTPAuth = true; $mail->Username = "stocktraderspress@stocktraderspress.com"; // Set the email account username here $mail->Password = ""; // Set the email account password here $mail->From = 'info@stocktraderspress.com'; $mail->FromName = 'STP Website'; $mail->AddAddress($_POST['em']); $mail->AddBCC; $mail->WordWrap = 100; $mail->Subject = 'Thank you for your interest in Stock Traders Press'; $mail->Body = $body; $mail->IsHTML(true); $mail->AltBody = @strip_tags($body); // This is a 'text-only' version of the message... if(!$mail->Send()) { echo "Mailer error: ". $mail->ErrorInfo; //exit; } /********************************* * Create database message body... *********************************/ $text = "<p>Email: ".$_POST['em']."<br>"; $text .= "First Name: ".$_POST['fn']."<br>"; $text .= "Last Name: ".$_POST['ln']."<br>"; $text .= "Phone: ".$_POST['ph']."<br>"; $text .= "Address Line 1: ".$_POST['ad']."<br>"; $text .= "Address Line 2: ".$_POST['ap']."<br>"; $text .= "City: ".$_POST['ct']."<br>"; $text .= "State / Province: ".$_POST['st']."<br>"; $text .= "Country: ".$_POST['cn']."<br>"; $text .= "Selected Offers: ".@implode(',',$_POST['selected_offers'])."<br>"; $text .= "Years In Market ".$_POST['years']."<br>"; $text .= "Portfolio Size: ".$_POST['portfolio']."<br>"; $text .= "Broker Type: ".$_POST['broker']."v"; $text .= "Mailing List: ".$_POST['yes']."<br>"; /******************************* * Create database email... *******************************/ $mail = new PHPMailer(); $mail->Host = 'mail.stocktraderspress.com'; // Set the mail hostname here $mail->Mailer = 'smtp'; $mail->WordWrap = 100; $mail->SMTPAuth = true; $mail->IsHTML(true); $mail->Username = 'stocktraderspress@stocktraderspress.com'; // Set the email account username here $mail->Password = 'stock###'; // Set the email account password here $mail->From = 'info@stocktraderspress.com'; $mail->FromName = 'STP Website'; $mail->AddAddress('clientservices@stocktraderspress.com'); $mail->AddAddress('chriscastaldo@aol.com'); $mail->AddBCC(''); $mail->AddReplyTo('clientservices@stocktraderspress.com'); $mail->Subject = 'Thank you for your interest in Stock Traders Press'; $mail->Body = 'The following request has been submitted'.$text; $mail->AltBody = @strip_tags($body); // This is a 'text-only' version of the message... if(!$mail->Send()) { //echo "Mailer error: ". $mail->ErrorInfo; //exit; } |