HTML - Common Table Problem
I get a problem almost all the time while designing tables for my site, and it stresses me very much.
Lets say I got a 6x6 table on my site and nothing else. How do I move the 2nd columm left border on the 3rd row, WITHOUT moving the 2nd columm left border for the ENTIRE table? Thanks alot, Poul Similar TutorialsSorry, noob question!! I want a common nav header with rollover buttons throughout website. Understand and got php include to work so only have code written once. What I would like though is although it's a common header, some sort of border/underline on the button to the specific page I'm on. Ie same header and same 6 buttons on each of the 6 pages but each one has the relevant nav button altered slightly. I hope that makes sense!! Hello Guys and Girls, I guess it would be fair to say that I am a recycle programmer. I first roamed the this world of programmers when languages like COBOL and PL/1 were state of the art. Well I'm now trying to get to grips with web programming and have a question about what I would call comon code. I find that I am repeating at great deal of HTML code (for example page headers and footers) which in the good old days I would have written just once in a common routine and just called it to be executed as and when required. This meant that only the common code had to be maintained and not potentially many copies of the same. Does such a feature exist for web programming. Best wishes Vivroc Greetings everyone! I need to load a Microsoft Common Control like the following: <object id="aslider" width="200" height="40" title=" Slide me. " classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628"> <param name="BorderStyle" value="1" /> <param name="Min" value="-10" /> <param name="Max" value="10" /> <param name="Value" value="7" /> </object> When i load the code in Internet Explorer, the control (a slider) doesn't show up! All there is is a picture with a red cross on it. I've registered MSCOMCTL.OCX, COMCTL32.OCX using regsvr32 but still the same. The same code loads in the developer machine though.. I've heard it might be license problem. Could anyone please help me? Thank You!! Regards, Venus 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 I am having a problem getting a table to render properly in IE (including version 7): Test Page Why does extra padding show up to the right of the "+ Select" button? I want the table to collapse to the size of the content, but I can't find ANY combination of CSS that forces IE to do this. Firefox renders the page OK. I have a table problem where in table (A) and any tables under gets longer, links and content in table (B ) doesn't stay aligned to top, the whole content in table (B) and any others appears away from the top, even in the middle so the top part becomes blank I'd like the content in A as well as B stay on the top and no blank spaces appear on the top of them I'll appreciate any quick fix for this issue kind regards Here's the problematic table I have Quote: <table width="79%" height="100%" border="0"> <tr> <td width="63%" scope="col">A</td> <td width="37%" rowspan="3" >B<br /> </td> </tr> <tr> <td> </td> </tr> <tr> <td scope="row"><table width="100%" border="0" > <tr> <td width="230"> </td> <td width="230"></td> <td width="230" border="0"></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table></td> </tr> </table> Attached are 2 images of the footer of my website, one (displayed properly) in every browser except IE7 and the other (screwed up) in IE7. As you can see, I have 4 columns, inside which are links to a forums section. In IE7, column 2 is shifted over to the right and sits on top of column 3. The section is styled in CSS...I have attachments for the HTML and CSS code for the section. I'm hoping that one of the guru's here can suggest a fix (please let it be easy ). Thanks for the help. Rick Hi.. i've got a table that doesnt do what i want it to do.. Page : http://www.yeltzin.net/test/index2.html One cell dont display the background (cell changes from time to time), and the page dont finish "loading".. The size of the cells/pictures have been triple-checked.. I tried narrowing it down and here is the part of the code i still have : PHP Code: index2.html --------------- <html> <head><link rel="stylesheet" type="text/css" href="styles.css"></head> <body> <table class="indextable"> <col style="width: 287px;"> <col style="width: 286px;"> <col style="width: 285px;"> <tbody> <tr> <td colspan=1 class="r1c1">row 1 cell 1</td> <td colspan=2 class="r1c2">row 1 cell 2</td> </tr> <tr> <td colspan=1 class="r2c1">row 2 cell 1</td> <td colspan=2 class="r2c2">row 2 cell 2</td> </tr> <tr> <td colspan=2 class="r3c1">row 3 cell 1</td> <td colspan=1 class="r3c2">row 3 cell 2</td> </tr> </tbody> </table> </body> </html> styles.css --------------- table.indextable{ table-layout:fixed; border-collapse:collapse;} td.r1c1{ background-image:url('R1C1_.jpg'); height: 184px;} td.r1c2{ background-image:url('R1C2_.jpg'); height: 184px;} td.r2c1{ background-image:url('R2C1_.jpg'); height: 182px;} td.r2c2{ background-image:url('R2C2_.jpg'); height: 182px;} td.r3c1{ background-image:url('R3C1_.jpg'); height: 180px;} td.r3c2{ background-image:url('R3C2_.jpg'); height: 180px;} When I enlarge my window my 2 tables that are next to each other move up and down on my page and end up different heights. Is there a way to keep them even with each other when a different window size is used? I tried changing the 100% widths to fixed numbers but then my background image doesn't fill the whole screen. Is there some code I can add to freeze the size of these tables without loosing 100% background image? HI and hello I am having a problem with a table i am using . before the table starts there is a > right above the table --like so LOOK at the PROBLEM attachment file. I think the problem is the > below...... but i cannot find a way to hide it or remove it I am editing in Dreamweaver i am a NOOB but learning my code is as follows : this is the live code. below at the bottom is the editable code which does not have the > seen HTML Code: <div class="features_list"> > <table id="features_table"> <thead> <tr> <th height="57" class="fthead wide featcol"> <div class="titleth"> <span class="shead">Features</span></div> </th> <th class="fthead checkcol"><span class="pro">HostScott</span></th> </tr> </thead> <tbody> <tr> <td class="featcol"> GB of Disk Space </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Hosted Domains Allowed </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Instant Activation </td> <td class="checkcol"> Included FREE </td> </tr> <!--tr> <td class="featcol">Domain Privacy</td> <td class="checkcol"><img src="/media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Domain Privacy" /></td> <td class="checkcol pro"><img src="/media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Domain Privacy" /></td> </tr--> <tr> <td class="featcol"> POP3/POP3 Secure Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> IMAP/Secure IMAP Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> GB's of Site Transfer (Bandwidth) </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Forwarding Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Email Autoresponder </td> <td class="checkcol">Unlimited</td> </tr> <tr class="pro"> <td class="featcol pro"> Add-on Domains </td> <td class="checkcol pro">Unlimited</td> </tr> <tr> EDITABLE CODE: HTML Code: <div class="body_container"> <table border="0" width="860" class="columns"> <tr> <td valign="top" width="608"> <div class="body_container"> <div class="title_bar">Hosting Features</div> <div class="body_content" id="feat_content"> From the business owner to the individual who desires full functionality on a small budget, HostScott provides your complete web hosting solution. View a listing of what we offer below.. <br /> <br /> <br /> <div id="why_we_are_better"> <div class="star_header"> <span class="himgspac">Why Choose HostScott?</span> </div> <div id="better_features"> <div class="redcent">Outstanding Support, Speed and Flexibility:</div> <ul class="gabul left"> <li>24/7 US-based Support</li> <li>SimpleScripts 1-Click installs</li> <li>Trusted by Millions of Sites</li> <li>SSH Secure Shell Access</li> </ul> <ul class="gabul right"> <li>True Resource Management (<a target="_blank" href="resource_protection.html">more info</a>)</li> <li>Avg Support Hold Times Under 30 Sec</li> <li>Proven Track Record</li> <li>Blazing Fast Servers</li> </ul> </div> </div> <br /> <br /> <div class="features_list"> <table id ="features_table"> <thead> <tr> <th height="57" class="fthead wide featcol"> <div class="titleth"> <span class="shead">Features</span></div> </th> <th class="fthead checkcol"><span class="pro">HostScott</span></th> </tr> </thead> <tbody> <tr> <td class="featcol"> GB of Disk Space </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Hosted Domains Allowed </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Instant Activation </td> <td class="checkcol"> Included FREE </td> </tr> <!--tr> <td class="featcol">Domain Privacy</td> <td class="checkcol"><img src="/media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Domain Privacy" /></td> <td class="checkcol pro"><img src="/media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Domain Privacy" /></td> </tr--> <tr> <td class="featcol"> POP3/POP3 Secure Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> IMAP/Secure IMAP Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> GB's of Site Transfer (Bandwidth) </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Forwarding Email Accounts </td> <td class="checkcol">Unlimited</td> </tr> <tr> <td class="featcol"> Email Autoresponder </td> <td class="checkcol">Unlimited</td> </tr> <tr class="pro"> <td class="featcol pro"> Add-on Domains </td> <td class="checkcol pro">Unlimited</td> </tr> <tr> <tr> <td class="featcol"> Perl 5 </td> <td class="checkcol"><img src="../../media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Multiple 10 Gigabit Ethernet Connections" /></td> </tr> <tr> <td class="featcol"> Python </td> <td class="checkcol"><img src="../../media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="24/7 Network Monitoring" /></td> </tr> <tr> <td class="featcol"> Ruby/Ruby On Rails </td> <td class="checkcol"><img src="../../media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Courtesy Site Backups" /></td> </tr> <tr> <td class="featcol"> Javascript/DHTML </td> <td class="checkcol"><img src="../../media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Multiple 10 Gigabit Ethernet Connections" /></td> </tr> <tr> <td class="featcol"> Flash/Shockwave </td> <td class="checkcol"><img src="../../media/shared/info/hosting_features/_hs/checkmark_small.gif" alt="Multiple 10 Gigabit Ethernet Connections" /></td> </tr> </tbody> </table> </div> <br /> <br /> <div id="feat_signup"> <a class="signup_btn" href="../../cgi-bin/signup.html"><img alt="Sign Up Now" class="signup_button" src="../../media/shared/general/_hs/signupnow_both.jpg"></a> </div> <!-- class="content" --> </div> <!-- class="frame center" --> <div id="footer"> <ul class="footer_links"> <!--<li><a href="/cgi/info/awards">Awards</a></li>--> <li><a href="https://my.HostScott.com/cgi/help">Help Center</a></li> <li><a href="contact_us.html">Contact Us</a></li> <li><a href="about_us.html">About Us</a></li> <li><a href="../../cgi-bin/partner.html">Affiliates</a></li> <li><a href="terms.html">Terms</a></li> <li style="padding:11px 8px 8px 8px;"><g:plusone size="small" annotation="bubble"></g:plusone></li> </ul> <div id="copyright">©2011 HostScott.com<!--HostScott.com-->. All rights reserved.</div> </div><!-- footer --> OK Look I Have This Code: HTML Code: <table align="center" width="1010" border="1" cellpadding="0" cellspacing="0" name="table"> <tr> <td background="http://www.imageshack.com/up/mywyjwz3m4.png" width="1010" height="952" style="background-repeat:no-repeat;;background-position:center"> <img src="full.jpg" style="position:absolute;left:0px;top:0px;"> </td></tr> Now, What I Wanted To Know If With This Code: HTML Code: style="position:absolute;left:0px;top:0px;" Can I Move The Object Just In The Table If I Will Give Him For Example: HTML Code: left:0px;top:0px; So It Will Be Like That: And No Like That: Please Help Me! on my home page i am using a table in this table i am including different files like header in first row ,nevigator,main part,and fottter throught following coding in php PHP Code: <html> <head> <Title> TECHOBOY::Home </Title> </head> <body> <table > <tr><td > <?php include("header.php"); ?></td></tr> </table> <table > <tr><td > <?php include("nevigator.php"); ?></td></tr> </table> <table> <tr valign="top"> <td valign="top"> <?php include("del.php"); ?> </td> </tr> </table> <table> <tr><td> <?php include("counter_footer.php"); ?></td></tr> </table> </body> </html> and i am having out put as follow in this image now as shown in above pic my DISCUSSION table is centered due to its besides main table .what i want is i want to make that discussion table to align top. can any one tell me how to do that? i am really waiting for your reply thansk you in advance Hi, I have a table layout (I know I should be using CSS ... but it was a quick site!) I have table width 100% and then 2 columns with td both set to 50% There are many text and images / tables & tr & td within both of the above. I have ensured no table or td within the 50% ones have any width measurements. However, when I minimise the window it doesn't seem to be keeping them 50/50 the left column seems to stay the same size. From the looks of it (images etc) it should re-size far more before it stops. Can anyone advise of typical things i should be looking for in my code that may be causing this? Cheers, d Hi, I have a problem with my tables. I made 1 table with 3 TD/tables in them. And have text them. The problem though is that in the first two tables the text begins in the middle. I want it to start at the top like the third does which also contains most text and fills up the whole 3rd table. How can I solve it? Thanks. I've created my site using mainly Netscape and Mozilla. It looks fine, even though the code is a little messy. But one page won't display properly in IE, only in Mozilla: http://kukla.tv/cbs.html The top tables are constrained to the browser width in both browsers, but not the large bottom table (the list of films). I even made the bottom table 997 pixels rather than 100% of page width, but it still does not wrap the text in IE, only in Mozilla. What do I need to do? Thanks, Mark It's been a very long time since I've had to play around with HTML, and apparently it's true what they say, if you don't use it, you lose it... Anyway, I'm here with what will undoubtedly seem like a foolish question to the more experienced coders: I designed and sliced a simple little template in photoshop and was attempting to get all the sliced images formed together in a nice little table so I could put together a page... Only problem is: After I switch from a 7x2 table to a 3x2 table, I get this odd repeating line to the right... The code I'm using for this is as follows: HTML Code: <html> <title>SkateLand of Milton - Home Page</title> <body ALIGN="MIDDLE" bgcolor="#3e7600"> <table cellpadding="0" cellspacing="0"> <TR VALIGN="MIDDLE"> <TD WIDTH="47" HEIGHT="339" style="width: 47px;background-image:url(images/slice_01.png);"/></TD> <TD WIDTH="63" HEIGHT="339" style="width: 63px;background-image:url(images/slice_02.png);"/></TD> <TD WIDTH="81" HEIGHT="339" style="width: 81px;background-image:url(images/slice_03.png);"/></TD> <TD WIDTH="255" HEIGHT="339" style="width: 255px;background-image:url(images/slice_04.png);"/></TD> <TD WIDTH="72" HEIGHT="339" style="width: 72px;background-image:url(images/slice_05.png);"/></TD> <TD WIDTH="69" HEIGHT="339" style="width: 69px;background-image:url(images/slice_06.png);"/></TD> <TD WIDTH="63" HEIGHT="339" style="width: 63px;background-image:url(images/slice_07.png);"/></TD> </TR> <TR VALIGN="MIDDLE"> <TD WIDTH="47" HEIGHT="63" style="width: 47px;background-image:url(images/slice_08.png);"/></TD> <TD WIDTH="63" HEIGHT="63" style="width: 63px;background-image:url(images/slice_09.png);"/></TD> <TD WIDTH="81" HEIGHT="63" style="width: 81px;background-image:url(images/slice_10.png);"/></TD> <TD WIDTH="255" HEIGHT="63" style="width: 255px;background-image:url(images/slice_11.png);"/></TD> <TD WIDTH="72" HEIGHT="63" style="width: 72px;background-image:url(images/slice_12.png);"/></TD> <TD WIDTH="69" HEIGHT="63" style="width: 69px;background-image:url(images/slice_13.png);"/></TD> <TD WIDTH="63" HEIGHT="63" style="width: 63px;background-image:url(images/slice_14.png);"/></TD> </TR> </table> <table cellpadding="0" cellspacing="0"> <TR VALIGN="MIDDLE"> <TD WIDTH="47" HEIGHT="542" style="width: 47px;background-image:url(images/slice_15.png);"/></TD> <TD WIDTH="540" HEIGHT="542" style="width: 540px;background-image:url(images/slice_16.png);"/></TD> <TD WIDTH="81" HEIGHT="542" style="width: 81px;background-image:url(images/slice_17.png);"/></TD> </TR> <TR VALIGN="MIDDLE"> <TD WIDTH="47" HEIGHT="56" style="width: 47px;background-image:url(images/slice_18.png);"/></TD> <TD WIDTH="540" HEIGHT="56" style="width: 540px;background-image:url(images/slice_19.png);"/></TD> <TD WIDTH="81" HEIGHT="56" style="width: 81px;background-image:url(images/slice_20.png);"/></TD> </TR> </table> </body> </html> I'm kind of left scratching my head on this one... I don't really know how to solve this. Hi all, my first post... I'm having troubles when i try to add a table after a left aligned table. When i add the second table it goes just at right of the previous table, not at bottom as i want. Example: HTML Code: <table width="60%" border="1" align="left" > <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <table width="60%" border="1"> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> Any sugestions about placing the second table at bottom of first one are welcome. Hi, My site is here I am having problems with the left side. It looks how I want it in Firefox but in IE it is ignoring my height commands and centering all the rows across the whole table. Anyone know how I can get this to look the same in Firefox and IE? Bit of a numpty so please be gentle Thanks Jon |