HTML - Formating Problems: Form Inside Table
Hi,
I am having a problem with the formating of a search box inside a table. All I want is for the text field and submit button to sit exactly in the middle (vertically aligned) inside the table with an equal space above and below (table background is dark colour so very noticeable) In Dreamweaver, it looks fine until published - then there is a large gap below the text field and submit button but small space above. I basically am trying to get the space below the same as the one above. Take a look at the code to see what I mean. <style type="text/css"> <!-- .style2 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; font-size: 12px; } --> </style> <table width="540" border="0"> <tr> <td width="534" height="26" bgcolor="#666666"><form action="http://www.soundscalpel.com/search.php" method="get" name="form1" target="_blank" id="form1"> <label for="textfield"></label> <div align="right"> <span class="style2">Search for Sound Effects </span> <input type="text" name="q" id="q" /> <input type="submit" value="Submit" /> </div> </form> </td> </tr> </table> Hope someone can help Thanks Similar TutorialsI have a table with images and the table is well formated but after the table ends the contents are displayed beside it . The contents should display below the table... why is this?? What should i do to bring the contents below table?? Thanks So I've been trying to set up a search box to blank out its default text when clicked, and reappear when it goes away (if empty). The script works fine--I know that much. However, when using it inside a table inside a form, it seems to fail every single time. Even "this.value=' ' " falls flat on its face. I'm relatively new to HTML, so please bear with me. Below is the script, a text box it does work in, and then the box I'm trying to make it work in. Quote: <script type="text/javascript"> function clickIn(field){ if (field.value==field.defaultValue){ field.value=''; } } function clickOut(field){ if (field.value==''){ field.value=field.defaultValue; } } </script> <form> <input type="text" name="text" id="test" value="test" onfocus="clickIn(this)" onblur="clickOut(this)"/> </form> <form> <tr> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--Search Box Dimensions--> <input type="text" title="Search Terms" name="lookfor" id="search" value="Search the Catalog" onfocus: "clickIn(this)" onblur="clickOut(this)" style="width:300px; border:0px solid; height:50px; padding:0px 3px; position:relative;"/> </td> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--The search button--> <input type="image" value="Go" src="Search Button.jpg" style="border-style: none; width: 50px; height: 50px;"/> </td> </tr> </table> </form> 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> How to use table element inside the svg canvas? All the pages on my site have a right column with a table inside it. I want the table to be at the top, which works fine in FF and IE7 and IE8, but is always at the bottom in IE6. Can someone offer some insight into this? heres one example, but its the same on all pages. http://perfectresource.net/hcm.html how to add html table inside the svg canvas? I'm trying to put a table inside where the text is. This is going to be my navigation spot, I tryed one way and it went over the whole page Can someone explain my error. thanks. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>background-attachment fixed</title> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <table width="715" border="3" align="center"> <tr> <td> </td> </tr> </table> <div id="container"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies sollicitudin nisi, ut molestie felis adipiscing sit amet. Sed auctor vehicula commodo. Nam a nibh neque, vitae faucibus felis. Vivamus at metus eget eros consequat fringilla. Quisque magna magna, laoreet eu tempus sit amet, fringilla at tellus. Praesent felis tortor, scelerisque vitae fringilla non, porttitor et lacus. Ut ut sapien nec quam tincidunt consectetur in nec lacus. </p><p> Phasellus porta, dui a elementum egestas, odio sapien rhoncus lorem, vitae bibendum erat sem eget sapien. Maecenas ut metus ac quam pellentesque lacinia quis sit amet augue. Fusce eu euismod urna. Nunc volutpat scelerisque tempus. Donec eget arcu et mauris scelerisque tristique. Donec fringilla mauris dolor, sit amet vulputate lacus. Nulla feugiat mattis nulla non tincidunt. Nam sit amet dolor eros, a viverra lacus. Nunc quis nisi eget neque tempus facilisis eu quis sapien. </p> </div> </body> </html> I am trying to get this link: <script type="text/javascript" src="walton-menu.js"></script> to run inside a table statement <TD></TD> as I need to lock it in a defined position as my site is centered in the browser, but as soon as I put it inside a table the menu's disappear. Any suggestions? Paul HTML Code: <table id="content" width="850" height="400" border="0" cellpadding="0" cellspacing="5" align="center"> <tr> <td width="28" valign="top"></td> <td width="584" valign="top"> </td> <td width="20" valign="top"> </td> </tr> </table> This is my above table and I want it to lock content inside a td if that makes sense, for example... if I type 1000 letters into the middle td of a width of 584, the table will get bigger and it looks strange. How can I fix this issue? Hi frns I am trying to create scrolling table inside <div> tag,like this : Code: <div align = "left" style=" max-width:850px; width: expression(this.width > 850 ? 850 : true);max-height:600px; height: expression(this.height > 600 ? 600 : true); overflow:auto; border:0px;"> <table align ="center"><tr> <td id = "divHolder"> </td > </tr> </table> </div> My this table will be populated dynamically.Otherwise its working fine,but I want to make it independent of pixels ,like 850px or 600px which I am hard coding.Due to these pixels,the size of scroll appears differently on different screens.Can somebody plz tell,how to make it screen dependent rather than pixels dependent? Thnx Hi, for some strange reason when I browse my site in FireFox there is a gap between the navigation buttons and the title image, but in IExplorer it looks perfectly fine. Any ideas? Heres the site: Heres a picture in case some of you don't see the problem or don't have firefox. PS: I'm not sure if the gap is between the table and the other table, or between the table and the image. Thanks for your help. Hello I have a very annoying problem: I have a table inside a td and I want the table the strech its height to the height of the <td> , but somehow I can't do it... <td valign="top" style="width:14px; border:solid 1px black;"> <table cellpadding="0" cellspacing="0" border="1" style="width:100%; height:100%; min-height:100%; max-height:100%" > <tr> <td class="CommonSeperetorUp" > </td> </tr> <tr> <td class="CommonSeperetorMiddle" > </td> </tr> <tr> <td class="CommonSeperetorDown" > </td> </tr> </table> </td> int the class "CommonSeperetorMiddle" I set the height to 100% ... anyone? I need to add a image inside the table in html Page., pls help me how to write a code for inserting image inside table? What is a simple way to bring up a webpage inside of a table cell. I want another website page to come up inside of the cell with scroll bars so the user can view that page while never actually leaving the home page, it would just be embeded into one of the cells. -Aaron dear everybody i need to draw a table with data inside the TEXTAREA but i don't understand how can i do it. Can anybody help me how can i do it . Thanks Web Developer Nanumsem Korea Im making a calendar table and i want to be able to change the color of the background depending on the status of the date. and i wanted to know were do i code the conditional statements to determine the color of the background? and hot do i make that text take me to a form when you click on it? thanks for the help, Tavo Hi all, I have a table with some data in it. Sometimes the data in one of the cells fills up and it messes up the formatting of the rest of the table. I would like to have the table show a "...." when this happens and then when the user hovers his mouse over this then I want the remaining data to float over the table. Somewhat like a tooltip text. Is there anyway to do this? Thanks in advance for any help, Jehan I have a table which contains 1 row, and 2 cells within the row. One cell displays some text neatly centered. and the other an image. I've written some javascript to change the color of the cell when the mouse hovers above it. Nice...but How do I nest my table inside an anchor <a href=""> tag so that the visitor can click anywhere within the cell and be directed to the href? Ive nested the table inside a tag and it only worked in Mozilla & Opera, but Internet Explorer......need I say more? Please help? Hello! I am new here, I know CSS and HTML basics and would like to ask you how to put a vertical slider inside a table cell. Thank you! [EDITED 2007/11/22 x1] Okay, I have read the previous post on this topic, and the solution to use an IFRAME... but what about those who use FireFox (and other Mozilla-style) WWWeb browser? Is it possible to get a web page (hyperlink/URL) to load +inside+ a table cell ?? Basically the scenario I have dreamt up is creating a table that will have, say, three columns: item_image0 ...|... item_name0 ...|... item0_LIVE_CONTENT item_image1 ...|... item_name1 ...|... item1_LIVE_CONTENT item_image2 ...|... item_name2 ...|... item2_LIVE_CONTENT "item_LIVE_CONTENT" will be nothing more than a few lines of text which will reveal the item's current 'value', but it *pulls* this information in via a hyperlink/URL. I have no other way to access this information than by using a webpage (I just happen to know the actual URLs for the individual items)... and I am attempting to build a one-page ''Quick List'' of items and their current associated 'values' at the time the webpage is generated. If this is possible, without using iFRAMES, PHP, external .JS files, or other WWWeb Browser-specific features, I am all eyes and ears... oh, and FINGERS! *smile* Everything (coding-wise) has to be included in 'same' HTML file as the 'table', that *fetches*/*calls* the hyperlinked data. Javascript welcome! THANK YOU, in advance, for all helpful replies! P.S. I found the following, but the 'file' I am using does NOT have an .EXTenSion (other than .HTML) that can be seen: <?php include("http://www.testsite.com/?name=username&page=itemlog");?> That looks simple enough, but the '' <?php '' part... does the PHP refer to the file's .EXTension that the code itself is contain within...? If so, then obviously that is why this code is NOT working for me. :/ |