HTML - Table Issues
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. Similar TutorialsOk 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 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 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 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!! 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? 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. 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 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 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 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.. 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 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. 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. 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 have a list within a table and much of the content has links to two different javascript codes. One is a popup javascript to so that I can control the window size and the other is a toggle.display javascript to show/hide specific details about my list. The scripts run fine, but for some odd reason the content in my table gets cut off randomly towards the end of the list. I went through to make sure that I didn't have any div tags nested.. etc.. and i'm now at a complete loss as to why my content within the table gets randomly cut off. Any help would me much appreciated. The link for the site is he http://netimpact.org/displaycommon.c...rticlenbr=2440. You'll notice at the very bottom of the table it randomly stops.. Hello, I am newbie, just has started my adventure with html. I tried to make an easy static site, without any additional thingd, but it occured a problem. 1. I mean, as I put table in table because I did know how to to id in different way, to make buttons on the left stay up while text on the right is moving- if I do normal table with 2columns and on the left lets say 5rows for buttons, on the right I unite all rows to make one big sort of box for contents, as I go down and try to write something morre, the rows from the letf were enlarging too If the size of explorer or firefox is nor full screen, the text in contents is going away (like now in lycos server, where screen is not full, but "cut" by advertise) 2. I have highlighted buttons, but not always works, why? (i mean it works, but darker buttons are charging so slow- maybe it is so because i saved them in pgn instead in gif, and each one is about 50kb?) -probably it is not this- because I have just changed into gif, and it is still the same 3. Another problem, as I post the site, I have notice, that in firefox I can not navigate with buttons, while in explorer yes, is it a fault of my coding, or of server where I put website? Here I post my website: http://members.lycos.co.uk/aniaacolgate/ Could someone take a look on the code, and will be so kind to correct me? It is a basic easy site of very begginger I just wanted to make a shape like this: - top: a banner - buttons in horizontal and vertical way - under buttons: contents (sincerly would like to put frames, but do not know how to put them there, is on the left there r buttons Thank you so much in advance for reply Sorry for mistakes in language Hello! I'm having quite a problem implementing multiple backgrounds into my website. Simply put I want to have a top bar, that will function as header, and a bottom bar, that will function as a footer. I've tried the following solution but it just doesn't seem to work. The div id "bgBottomDiv" just won't show. I was hoping someone could help me out. HTML: HTML Code: <body> <div id="wrapper"> <div id="bgBottomDiv"> "Content goes here " </div> </div> CSS: Code: #wrapper{ position:relative; margin:0 auto; width:1100px; } body { background-image:url(/images/Styler_top.png); background-attachment: scroll; background-repeat: repeat-x; background-position: top; font-family: arial; color: #111111; font-size: 0.75em; /* 12px/16=0.75 em */ word-spacing: 2px; line-height: 175%; } #bgBottomDiv{ background-image: url(images/Styler_top.png); background-repeat: repeat-x; background-position: bottom; } Thanks in advance! I'm experiencing an issue when using DIVs in DIVs.. I have a container-DIV and a content-DIV, and I would like the container-DIV to stretch vertically as necessary based on how much content is in the content-DIV. Code: <html> <header> <style type="text/css"> #divContainer{ position:absolute; top:10px; left:10px; height:100%; width:200px; background-color:#CCC; } #divContent{ position:absolute; top:10px; left:10px width:180px; background:color:#BBB; } </style> </header> <body> <div id="divContainer"> <div id="divContent"> <!-- Fill me with content --> </div> </div> </body> </html> This is basically the code I'm using... whenever the content amount pushes the divContent lower than the bottom of the divContainer, it just overflows out and down the page. What am I doing wrong? Edit: OOPS I set height to 100px on the divContainer, it was supposed to be 100% Alright, so I have this site on which I need a certain part of the site (the content part where the main text bit is) to extend down to the bottom (and preferably no longer), so that if the window is smaller or bigger the text will still just go all the way down to the bottom of the page, and when the text is further down that div will have a scrollbar so you can scroll through the text. The main issue is making it so the end of the div is always on the bottom of the page. (I've tried height=100% on that div but then it just goes below the bottom for some reason.) This is the site. And here's the code: Code: CSS: div.main { position: absolute; top: 181px; left: 110px; width: 510px; height: 1500px; background: url("images/Content Box Bit.png"); } div.news { position: absolute; top: 25px; left: 15px; width: 494px; height: 372px; overflow-x: hidden; overflow-y: auto; } Code: HTML: <div class="main"> <img src="images/News and Updates.png"><div class="news"> <span class="f4"><?php include('sitemapbase.php'); ?></span></div> </div> The reason the height of main=1500px is that that's not gonna be scrollable anyway, and I just added a random value to assure that went to the bottom no matter what. Thanks for any help. Wasn't really sure where to put this, sorry if it's the wrong place.. EDIT: Just encountered an additional issue, being that the navigation menus (to the left) look off in IE. The background seems not to start where the div starts. Suggestions? |