HTML - Wonky Tables And Alignment
No 1. I can't seem to get the two columns of my tables to line up straight;
and No 2. Can anyone help me out with getting the text and the YouTube video to line up as well? The code works fine in a sandbox, but when you look at the page it's all bodged. Ideally I'd like *just* the video in a table so that I can have the text free to run the other side of it (like it would with an image). *some of the irrelevant text deleted so I can be within the word limit* HTML Code: <HTML><HEAD><TITLE>Out/In</TITLE> <STYLE type=text/css><!-- body {scrollbar-3dlight-color:black; scrollbar-arrow-color:black; scrollbar-track-color:black; scrollbar-darkshadow-color:black; scrollbar-face-color:gray; scrollbar-highlight-color:gray; scrollbar-shadow-color:white} --></STYLE> <SCRIPT type=text/javascript> <!-- // copyright 1999 Idocs, Inc. http://www.idocs.com/tags/ // Distribute this script freely, but please keep this // notice with the code. var rollOverArr=new Array(); function setrollover(OverImgSrc,pageImageName) { if (! document.images)return; if (pageImageName == null) pageImageName = document.images[document.images.length-1].name; rollOverArr[pageImageName]=new Object; rollOverArr[pageImageName].overImg = new Image; rollOverArr[pageImageName].overImg.src=OverImgSrc; } function rollover(pageImageName) { if (! document.images)return; if (! rollOverArr[pageImageName])return; if (! rollOverArr[pageImageName].outImg) { rollOverArr[pageImageName].outImg = new Image; rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src; } document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src; } function rollout(pageImageName) { if (! document.images)return; if (! rollOverArr[pageImageName])return; document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src; } //--> </SCRIPT> <META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD> <BODY bgProperties=fixed background=http://i23.photobucket.com/albums/b378/th13teenskulls/tex3a.jpg> <CENTER><BR><BR> <TABLE cellSpacing=0 cellPadding=20 width=800 bgColor=#000000 border=2> <TBODY> <TR> <TD vAlign=top width=800 height=1300> <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#000000> <TBODY> <TR><ALIGN="CENTER" bgcolor="#E6E6E6" valign="middle"><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666 size=2><BR> CENTER></TR><LEFT><BR> <CENTER><TABLE cellPadding=1 width=70 border-width:1px;> <TBODY> <TR> <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666 size=2><PRE style="FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif" size="2"><BR>JAMES: Mary…?! MARIA: When will you <I>ever</I> stop making that <BR> mistake...Mary’s dead. You killed her! JAMES: Maria? It’s you - but I don’t need <I>you</I><BR> anymore. MARIA: What?! You must be joking...but I can<BR> be yours, I'll be here for you forever and <BR> I’ll never yell at you or make you feel bad <BR> – that’s what you wanted! I’m different than<BR> Mary - how can you throw me away?! JAMES: I understand now - it’s time to end this<BR> nightmare. MARIA: <I>No</I>! I won’t let you - you deserve to die too <BR> James! [<I>Boss Fight</I>] JAMES: Mary…? MARY: [<I>coughs</I>] James… JAMES: Forgive me…? MARY: I told you that I wanted to die James...I <BR> wanted the <I>pain</I> to end... JAMES: That’s why I did it honey...I just <I>couldn’t</I> watch <BR> you suffer...No...that’s not true – you also said <BR> you didn’t want to die...the truth is...I hated you<BR> - I wanted you out of the way...! I wanted my <BR> life back...! MARY: James...if that were true, then why do you look so<BR> sad...? JAMES; Mary…? <P>MARY: James...please...please do something for me... <BR> go on with your life…</P><BR> <P style="FONT-SIZE: 120%" align=right p> 'Leave' ending scenario<BR>Pt. 1: 00.00-01.30<BR>Pt. 2: 00.00-01.45<BR> </P></B></PRE></FONT></TD> <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666 size=2><PRE style="FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif" size="2"><BR>JAMES: Mary…? MARIA: [<I>turns around and laughs</I>] Wrong again!<BR> Mary’s dead - you killed her! JAMES: Maria?...Maria - I’m done with you. MARIA: What do you mean?...but I can be yours,<BR> I’ll be here for you forever, and I’ll never<BR> yell at you or make you feel bad [<I>reaches up <BR> to touch his face</I>] JAMES: [<I>moves away</I>] MARIA: <I>That’s</I> what you wanted! JAMES: Now I understand – the problem is, you’re <BR> not Mary. MARIA: No James. I won’t let you, I’ll never let you <BR> have your <I>Mary</I> back. [<I>Boss Fight</I>] JAMES: Mary…? MARY: James… [coughs] JAMES: Forgive me…? MARY: I told you that I wanted to die James…I wanted <BR> the pain to end… JAMES: That’s why I did it honey…! I just couldn’t watch <BR> you suffer! [<I>Mary coughs</I>] No…that’s not the whole <BR> truth – you also said, that you didn’t want to die...<BR> the truth is...part of me <I>hated</I> you, for taking away<BR> my life. MARY: You killed me…and you’re suffering for it…it’s <I>enough</I><BR> James…<BR><BR> <P style="FONT-SIZE: 120%" align=right p> 'In Water' ending scenario<BR>Pt. 1: 00.00-01.12<BR>Pt. 2: 00.00-01.20<BR> </P></B></FONT></PRE></TD></TR></TBODY></TABLE> <CENTER> <OBJECT height=300 width=550><PARAM NAME="movie" VALUE="http://uk.youtube.com/cp/vjVQa1PpcFNe4xamFC9-ypGvHj4FkqmhKF-0ZDhsr50="><PARAM NAME="wmode" VALUE="transparent"> </params><embed src='http://uk.youtube.com/cp/vjVQa1PpcFNe4xamFC9-ypGvHj4FkqmhKF-0ZDhsr50=' type='application/x-shockwave-flash' wmode='transparent' width='550' height='300'></embed></OBJECT></CENTER> <TABLE cellPadding=5 width=70 border-width:1px;> <TBODY> <TR> <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666 size=2><PRE style="FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif" size="2">MARIA: James…! JAMES: Mary…? Oh, Maria…it’s you…I thought you were…sorry<BR> [<I>Maria shakes her head in disbelief</I>] Anyway, I’m glad<BR> you’re alive. MARIA: [<I>Her face contorts in anger</I>] <I>Anyway</I>?! Whaddaya mean,<BR> <I>‘anyway’</I>?! You don’t sound very happy to see me – I<BR> was almost <I>killed</I> back there! Why didn’t you try to save<BR> me?! All you care about is that <I>dead</I> wife of yours - I’ve<BR> never been so scared in my whole life! You couldn’t care<BR> less about me…could you?! JAMES: No, I just… MARIA: [<I>falls against him, James slowly puts his arms around her</I>]<BR> Then stay with me…don’t ever leave me alone…you’re<BR> supposed to take care of me…! [<I>sobs</I>] James…<BR><BR> <P style="FONT-SIZE: 120%" align=right>00.00-00.52<BR> </P></PRE></FONT></TD> <TD> <OBJECT height=250 width=300><PARAM NAME="movie" VALUE="http://www.youtube.com/v/kIB3gxxa7CE&rel=1&color1=0x000000&color2=0x000000&border=0"><PARAM NAME="wmode" VALUE="transparent"> <embed src="http://www.youtube.com/v/kIB3gxxa7CE&rel=1&color1=0x000000&color2=0x000000&border=0" type="application/x-shockwave-flash" wmode="transparent" width="300" height="250"></embed></OBJECT></TD></TR></TBODY></TABLE> <TABLE cellPadding=5 width=70 border-width:1px;> <TBODY> <TR> <TD><object width="300" height="250"><param name="movie" value="http://www.youtube.com/v/aLkcXizPXcc&rel=1&color1=0x000000&color2=0x000000&border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/aLkcXizPXcc&rel=1&color1=0x000000&color2=0x000000&border=0" type="application/x-shockwave-flash" wmode="transparent" width="300" height="250"></embed></object> <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666><PRE style="FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif" size="2"><p align="justify"><br> <br>Having already discussed PH’s ‘purpose’ and character background <BR> we shall focus on the nature of Maria’s demise. Accompanied by two<br> PH, James sees her suspended upside down in what appears to be an<br> iron bedframe (something that will be recognised later on the game with<br> the MM monster). Crying out for help, she is brutally speared by one of<br> the PH’s from the back.</p></PRE></FONT> </TD></TR></TBODY></TABLE> </DIV></FONT></TD></TR></TBODY></TABLE></CENTER></BODY></HTML> Similar TutorialsHello, Can anybody help me out? I have a nested table as such: =========================================== <table cellspacing="0" cellpadding="3" border="1"> <tr> <td>Joe <table> <tr> <td>A </td> </tr> </table> </td> </tr> </table> =========================================== How can I get "Joe" and "A" on the same line without changing the table structure? (Can't change structure cuz this is how my server side code spits it out. But I can add styles and attributes.) I've tried all manner of floating, margins, padding, aligning, hspacing, vspacing, and nothing seems to work. Thanks for any help. Hello, im trying to make a webpage and figured invisible tables would be a good way to structurise the page, ive ran into a problem tho as in the cell content alignment is wrong. heres what im trying to achieve: Code: ____________________________________________ | navigation |text starts from up here | | navigation | | | navigation | | | navigation | | |____________|_____________________________| but while the navigation bar is always the same height the text cell is sometimes taller sometimes shorter thus i get situations where the small amount of text starts from the middle of the cell instead of top as i want it to and when there is alot of text the navigation bar moves to the middle of the streched out cell heres the html im using right now Code: <table> <tr> <td> <a href=blah blah>link</a><br> <a href=blah blah>link</a><br> etc </td> <td> here is the text </td> </tr> </table> please help Hi guys, I've been frustrated for awhile trying to fix three of my problems. I just started making a site for myself today, the specific one is http://www.bcsticketsnow.com/rosebowl.html Anyway, I've got three problems, and appreciate any help anyone can offer on any of them: 1. I'm new to frames, and am told to stay clear of it. But I don't know php, so this is the only way I know to make a header, middle and footer on all 20 pages that I'm going to have where I only need to edit one to change all. So I have 3 frames in the frameset, header, mainrosebowl, and footer. I understand that cols="220,*,100" will make the header 220 pixels, the footer 100 px, and the middle part the rest of the window. But I'm trying to figure out a way to have it go deeper than the window. As you can tell, I've got a scroll bar on that middle frame. I want that frame to extend to more than 100% and push the footer below the visible window. So I'm really looking for a big scroll bar for the entire window to scroll down, not a mini scroll bar just for the middle frame. Is this possible? Having the cols add up to only the size of the window isn't what I'm looking for. 2. In the header frame, I've got that drop down menu (says "Bowl Events"). When I put the form in for the drop down menu, it kind of expanded the height of the table. It had less space before in that row of the table with the blue background. When I put the form in there, it kinda messed up the spacing. I essentially want to delete that space below bowl events to make the height of the row of that table like half the size. Any ideas? 3. For that same drop down menu, I'm trying to target each link in that menu to open up a new window (like target="_top"). But putting it after <option value="URL" target=..."> does nothing. Am I supposed to put it in the javascript? Here's what I have now: <script type="text/javascript"> function goToPage(dd) { var ind = dd.selectedIndex; if (ind == 0) { return; } var url = dd.options[ind].value document.location=url; } </script> <form> <select name="eventlist" onChange="goToPage(this); return false;" size="1" style="border: 0; BACKGROUND: navy; COLOR: white; FONT-FAMILY: arial; FONT-SIZE: 15px; font-weight: bold;"> <option value="">Bowl Events</option> <option value="http://www.bcsticketsnow.com/bcschampionship.html" onclick="header.location.href='_top'">BCS Championship</option> <option value="http://www.bcsticketsnow.com/rosebowl.html">2009 Rose Bowl</option> <option value="http://www.bcsticketsnow.com/orangebowl.html">2009 Orange Bowl</option> <option value="http://www.bcsticketsnow.com/fiestabowl.html">2009 Fiesta Bowl</option> <option value="http://www.bcsticketsnow.com/sugarbowl.html">2009 Sugar Bowl</option> <option value="http://www.bcsticketsnow.com/chickfilabowl.html">2009 Chick-Fil-A Bowl</option> <option value="http://www.bcsticketsnow.com/capitalonebowl.html">2009 Capital One Bowl</option> <option value="http://www.bcsticketsnow.com/cottonbowl.html">2009 Cotton Bowl</option> <option value="http://www.bcsticketsnow.com/holidaybowl.html">2009 Holiday Bowl</option> </select></form> Hi Normally, when you have more than one table in your code, the tables will be placed one under each other. Example: <table> ... </table> <table> ... </table> When you want the tables to be placed next to each other, you need to set the align attribute. Example: <table align="left"> ... </table> <table align="left"> ... </table> BUT: When you do it like in the 2nd example (tables next to each other), in Firefox, the tables will wrap to a new line if there is no more space. In Internet Explorer, the tables will not wrap. The result is a horizontal scrollbar or "hidden tables". Why this? How can I make the tables wrap also in Internet Explorer as it does in Firefox? Is it possible with a special CSS definition or with a special DIV/SPAN tag? Thanks for your help praiser Hey everyone, I'm new to these boards. Somewhat a newbie at web design, but I know basics. I'm looking to put 2 tables adjacent to each other inside another table. My problem is I can't get the tables to line up the way I want them to. I'll post a picture of how I want it to look, how it looks now and my code. How I want it to look: How it looks now: I want the tables to line up at the top and re-size according to each other so they're always aligned at the top. Code: coming in next 2 posts I don't understand! On my end when I upload it to the server and open an html file in the browser, everything looks fine. But when other people look at the site, it looks totally different. Text boxes are disgusting, I use CSS positioning and it puts everything totally off of the layout. Hope someone can suggest something. I am working with a programme that uses three templates to structure the web site, feeds articles, author page and site map on a daily basis to my web site. I attempted to insert Adsense ad units to templates and unfortunately everything is out of line now. this can be viewed at http://daviddutch.com/currency/articles/index.html Question is how do I bring everything else back in line please as when I look at coding there is no clear place to put the adsense HTML code to get things lined up correctly. Hope someone can offer wisdom and guidance. cheers Good morning, I cannot figure out how to get the images one on top of the other (in a straight line) here http://divamaggie.com/?p=60 . I tried Code: <br>, <p> and simply line spaces, but nothing seems to be working. I'm really hoping someone can tell me what I'm doing wrong. hey guys im getting a weird b0rder ar0und my <div>, i d0nt kn0w what it is..can anyb0dy help me please? ive been l00king at div pr0perties but i havent been able t0 eliminate that b0rder - im n0t even sure its fr0m the div but i'd think it is. the b0rder im talking ab0ut is the black 0ne. c0me t0 think 0f it.. its n0t a b0rder - the black secti0n is a <th> and the black is its backgr0und, but the <div> inside the <th> simply d0esnt extend in it t0 100% :/ http://www.hotlinkfiles.com/files/57...cument_7_.html This is the first site I've done. I want to add some screenshots to the center of the page but can't figure out how to keep the links in place at the left. When I add the pics the links move down to make room for the pics. How do I get the links to stay in place at the left of the screenshots? Thank you for any help. Krytin http://ghostfleet.bravehost.com/ghostfleet.htm It's not that huge of a deal because its only an under construction page... but I'd like to know how to get this page looking the same in both IE and Firefox. The only real issues with IE right now is that the image isn't centered and the yellow tape bg is 1px off from where it should be... thanks for any help! http://www.pzfantasyfootball.com Code: <html> <head> <title>PZ Fantasy Football » Under Construction</title> <style type="text/css"> * {margin: 0; padding:0;} p {margin-top: 15px;} h2 {font-size: 25px; border-bottom: 1px solid #fff; margin-bottom: 10px;} body { background-image: url(images/Metal_Texture-PhotoshopTower.jpg); background-color: #000; color: #fff; font-family: calibri, arial, verdana; } a, a:visited, a:active {color: #09f;} a:hover {color: #06c;} #wrap { width: 800px; margin: 0 auto; } .yellowtape { position: absolute; bottom: 0; width: 100%; height: 524px; background-image: url(images/yellowtapebg.gif); background-repeat: repeat-x; } .construction { position: absolute; bottom:0; background-image: url(images/pzfantasyfootballunderconstruction.jpg); width: 800px; height: 600px; } .text { position: relative; left: 300px; top: 225px; width: 500px; font-size: 18px; text-align: left; } </style> </head> <body> <div class="yellowtape"></div> <div id="wrap"> <div class="construction"> <div class="text"><h2>11/1/07 » Site Under Construction Again</h2>Well once again we enter construction mode. I just wasn't feeling the league site, no one really used it much, it didn't have much content that Yahoo! couldn't already offer, and it just really ended up being a waste of time. So now I'm going to give it a shot with a fantasy help site. I know I've done this before, but my future may hold something in the sports industry, so now I look to try and establish a well read site in order to help achieve my goals. I'm not 100% sure if the new site will be done before the end of this season, however it should be done in time for the 2008 NFL Draft. Hope to see you all soon! <p />Oh, and feel free to contact me via the forums <a href="http://www.pzfantasyfootball.com/forums">here</a>. </div> </div></body> </html> Hi All, I am pulling some data from MySQL and i need to display on screen with Left / Right Alignment. For The example <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> Now here i am looking if database-loc = left the data will go left side else it will go right side.\ pulling data from DB is okay with me. Now i am looking some idea how to format div so it shuld set accordingly. Currenly i tried the below but all go to the left. <div align="left">Left Line</div> <div align="left">Left Line</div> <div align="left">Left Line</div> <div align="right">Right Line</div> <div align="right">Right Line</div> <div align="right">Right Line</div> It is going in right side but it is down of left <div> it must go to the top with right direction some thing like valign="top" </td> </tr> </table> I hope i explain it well, i am sorry for my language. Hi there. I use the following code to show a swf file and align it vertically and horizontically but i can do only the horizontal alignment. Any help about the vertical? Thanks in advance HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Site</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8" /> <style type="text/css" media="screen"> body { margin:0; text-align:center; } div#content { text-align:center; vertical-align:middle;} object#content { display:inline; vertical-align:middle;} </style> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> swfobject.embedSWF("main.swf", "myContent", "1400", "910", "9.0.0"); </script> </head> <body> <div style="vertical-align:middle"> <div id="myContent" style="vertical-align:middle"></div> </div> </body> </html> Hi Guys Here is some css I use for my footer, I want it to be centered but only span 98% of the distance, however when I change the width to 98% it only cuts off the 2% from the right hand side and justifies the footer to the left. Any Help? Thanks Code: #footer{ clear: left; width: 100%; background: white; color: black; text-align: center; padding: 2px 0; } Hi, I am trying to figure out how I can align text with an image using spacing (strictly HTML). I have applied the vspace and hspace tags to my image, but then my image won't be aligned flush with the text. Is there any way I can set up spacing on just one side of the image? Hi, Can someone help me align the two images at the bottom of the html page (view attachment) in the center. It should be compatible with IE and Firefox 3. I have attached sample code in the .doc file. Thanks in advance, Ronnie Hey all, Just a question about my amature portfilio site that im creating. On some pages, graphics and blog, for example, http://www.freewebs.com/breakdowninc.../graphics.html http://www.freewebs.com/breakdowninc/pages/blog.html I am wanting to center the graphics/blog parts overhead of the copywrite text, found at the bottom of my page. Example: I have centered the graphics images, using align="center" yet they go off the side slightly. Anyway can how can I align them appropriately, without using "position:absolute" because it screws with the mini/maximising of my page. Cheers I have a div which contains a line of text as a url. When clicked, a div is displayed directly below, and the content is different depending on the user. Currently, the div opens and two left hand sides align. I would like to cause the right hand sides to align instead, with the divs growing to the left if the text is larger. Is this possible? Hello im new as you can see In Firefox this website "http://gregg.hostzi.com/" (Friends death metal band, has swearing in it) The alignment of the news bar is in the correct position. This is what i want it to look like. When people surf in Internet Explore they get the sidebar all messed up as you can see. My question is how do i align back up? so looks like what it is in Firefox. I hope i have explained what is needed, please ask if you need any further information. Thanks alot. |