HTML - Buttons Flush With Table
hello,
i just started a redesign of my site. i was wondering if there was a way to make the buttons line up with a tables collapsed border. there always seems to be a space no matter what i do. any suggestions? youll see what i mean...... http://mightycleancarpets.net/newdesign/index.htm Similar Tutorialsdoes anyone know how to align a table to sit flush up against a frame border thx http://www.users.on.net/~bmccowan/ex.JPG Hi, How do I get my table to be flush with the top and sides of the screen? Currently there is a spacing in automatic between. 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 have a problem with tables cells containing form buttons: Code: <tr> <td colspan="2" align="center"> <button id="button-submit_2" type="submit">Add Name</button>      </form> <form action="nrt-home-edit&delete.php" method="post"> <input type="hidden" name="class_name" value="$class_name[0]"/> <button id="button-submit_2" type="submit">Finish</button></form> </td> </tr> The above code puts the two buttons on their own lines within the table cell. My question is, does anybody know how to keep them on the same line without putting them into their own individual cells? Hey Guys, This is probably a huge nub mistake, but I cannot get the top banner at the top of my website. It gives a little room at the top. I changed the css so the top margins are at 0. It fixed it on dreamweaver, but when i go to preview, it isn't changed. The website is at http://s278499115.onlinehome.us/bp/ Here is the code. Code: <!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>brian pensinger / graphic designer</title> <style type="text/css"> <!-- body { background: url(images/background.png) top center no-repeat; background-color: #000000; margin-top: 0px; } --> </style> </head> <body> <p align="center"><img src="images/header.gif" width="800" height="149"/></p> <table width="716" height="339" border="0" align="center" cellspacing="7"> <tr> <td width="137" height="76"><img src="images/placebox.gif" width="137" height="76" /></td> <td width="137"><img src="images/placebox.gif" width="137" height="76" /></td> <td width="137"><img src="images/placebox.gif" width="137" height="76" /></td> <td width="137"><img src="images/head.gif" width="137" height="76" /></td> <td width="116"><img src="images/placebox.gif" width="137" height="76" /></td> </tr> <tr> <td height="76"><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/top-left.gif" width="137" height="76" /></td> <td><img src="images/top-right.gif" width="137" height="76" /></td> </tr> <tr> <td height="76"><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/mid-left.gif" width="137" height="76" /></td> <td><img src="images/mid-right.gif" width="137" height="76" /></td> </tr> <tr> <td height="76"><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/placebox.gif" width="137" height="76" /></td> <td><img src="images/lower-left.gif" width="137" height="76" /></td> <td><img src="images/lower-right.gif" width="137" height="76" /></td> </tr> </table> </body> </html> Hello I am designing a MS Outlook email template using Dreamweaver. All I want to do is string together 3 images on the same line, but it's proving to be much more difficult than I thought! Each image is a button, with a hyperlink to a web page. I'm quite a perfectionist and it's important that the images sit flush together, and when viewed in Firefox or IE, they do! Here's a snippet of the code. <img src="corporate.png" width="134" height="36" /><img src="visitus.png" width="134" height="36" /><img src="aboutus.png" width="134" height="36" /> It is very very basic, but for some reason, when I load the code into MS Outlook, guess what happens? A small white space appears between each image and I don't know what's causing it. It's important that I remove this white space because I've got a banner sitting above these buttons which is of fixed length. I need the end of the 3rd button to sit below, but in line with the end of the banner, but when the white spaces are added, it overshoots I've tried playing around with 'hspace' and 'vspace' tags, but MS Outlook 2007 does not recognise these tags. I thought I could get around this by stringing the buttons together as one image and then use the hotspot tool to break the image up, but MS Outlook doesn't recognise hotspots either! I think I've explained this fully and I really hope somebody can help me. I've been googling solutions to this for hours but to no avail. Thank you all. David I've played around with this code but it seems as if I can't get the buttons to appear. Is this related to the script type? Anyone know how I can fix this? [the location is not set yet, my problem is just getting the buttons to show up] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE> Meats </TITLE> </HEAD> <BODY> <SCRIPT type="text/javascript"> <table> <table border="1" align="center" cellpadding="1" cellspacing="1" BGCOLOR=blue > <tr> <td> <INPUT type="button" value="Home" name="button1"onClick="window.location='http://www.htm'"> <td> <INPUT type="button" value="History" name="button2" onClick="window.location='http://steakslocation.htm'"> <td> <INPUT type="button" value="Residents" name="button3" onClick="window.location='http://porklocation.htm'"> <td> <INPUT type="button" value="Events" name="button4" onClick="window.location='http://poultrylocation.htm'"> <td> <INPUT type="button" value="Links" name="button5" onClick="window.location='http://venisonlocation.htm'"> </SCRIPT type="text/javascript"> <div id="PICTURE"> <img src="anthropormophic_bacon.jpg" height="90%" width="90%" alt="Buddy!" /> <center> Y Halo Thar </center> </div> </table> The content of the document...... </BODY> </HTML> I would like to use images as links in my nav bar and im looking for a tutorial or some help with how to make the buttons change when diffrent actions are taken.. eg link visited hover active but i dont know how to change the properties of the link, if anyone can point me in the direction on how to do this either in CSS or in each web page i would be verry grateful i have looked around and havent been able to find anything So I'm extremely new to HTML and I am trying to make a button open new tabs to two sites. Here is what I got so far: HTML Code: <a href='http://www.planetminecraft.com' title='Planet Minecraft : Supporting our Addiction!'><img src='http://www.planetminecraft.com/images/banners/planet_minecraft_mb.gif' border='0' alt='Planet Minecraft Banner'></a> Ok, ive made the background i want to use on photoshop and im using freewebs for now just to host my website. I've set the background to centre and top, and i am now trying to edit the site on frontpage. I need to put a button in that links to the main page from the first entrance page, which is easier enough. But i need the button to stay centered just below the logo, which is what i need help with. If you dont understand what i mean take a look yourself... http://www.freewebs.com/endofsyrum I need a "Click to Enter" button inbetween the bottom of the page and the bottom of the logo, and i would like it to stay there no matter what screen res or size fo window... Many Thanks, Narc I am making a simple calculator program for a school science fair project, and I used a CSS Button Maker program that I got fro ma google search, and when I try to change my buttons from the normal preset ones to the one I made, it disrupts the onClick, and makes he buttons not work. any idea on how to fix this? Here is before the change to the cool buttons: Code: <HTML> <HEAD> <TITLE>Gavin's Science Fair Project</TITLE> <script LANGUAGE="JavaScript"> function CalculateSum(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A + B; } function CalculateDif(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A - B; } function CalculatePro(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A * B; } function CalculateQuo(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A % B; } function ClearForm(form) { form.input_A.value = ""; form.input_B.value = ""; form.Answer.value = ""; } // end of JavaScript functions --> </SCRIPT> <style type="text/css"> input.groovybutton { font-size:15px; width: 250px; height: 25px; font-family:Comic Sans MS,sans-serif; font-weight:bold; color:#000000; background-color:#FF0066; border-style:outset; } </style> </HEAD> <DIV ALIGN=CENTER> <table border="10" bgcolor="#0C6AA1"> <tr> <td><P><FONT SIZE="+3">Simple Calculator</FONT></P> <FORM NAME="Calculator" METHOD="post"> <P>Enter a number: <INPUT TYPE=TEXT NAME="input_A" SIZE=15></P> <P>Enter a number: <INPUT TYPE=TEXT NAME="input_B" SIZE=14></P> <DIV ALIGN=CENTER><P><INPUT TYPE="button" VALUE="Add Numbers" name="AddButton" onClick="CalculateSum(this.form.input_A.value, this.form.input_B.value, this.form)"></P> <P><INPUT TYPE="button" VALUE="Subtract Numbers" name="SubButton" onClick="CalculateDif(this.form.input_A.value, this.form.input_B.value, this.form)"></P> <P><INPUT TYPE="button" VALUE="Multiply Numbers" name="MultButton" onClick="CalculatePro(this.form.input_A.value, this.form.input_B.value, this.form)"></P> <P><INPUT TYPE="button" VALUE="Divide Numbers" name="DivButton" onClick="CalculateQuo(this.form.input_A.value, this.form.input_B.value, this.form)"></P> <P><INPUT TYPE="button" VALUE="Clear Fields" name="ClearButton" onClick="ClearForm(this.form)"></P></DIV> <P>Answer = <INPUT TYPE=TEXT NAME="Answer" SIZE=18></P> </FORM></td> </DIV> </BODY> </HTML> And here is after: Code: <HTML> <HEAD> <TITLE>Gavin's Science Fair Project</TITLE> <script LANGUAGE="JavaScript"> function CalculateSum(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A + B; } function CalculateDif(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A - B; } function CalculatePro(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A * B; } function CalculateQuo(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A % B; } function ClearForm(form) { form.input_A.value = ""; form.input_B.value = ""; form.Answer.value = ""; } // end of JavaScript functions --> </SCRIPT> <style type="text/css"> input.groovybutton { font-size:15px; width: 250px; height: 25px; font-family:Comic Sans MS,sans-serif; font-weight:bold; color:#000000; background-color:#FF0066; border-style:outset; } </style> </HEAD> <DIV ALIGN=CENTER> <table border="10" bgcolor="#0C6AA1"> <tr> <td><P><FONT SIZE="+3">Simple Calculator</FONT></P> <FORM NAME="Calculator" METHOD="post"> <P>Enter a number: <INPUT TYPE=TEXT NAME="input_A" SIZE=15></P> <P>Enter a number: <INPUT TYPE=TEXT NAME="input_B" SIZE=15></P> <form name="groovyform"> <input type="button" name="AddButon" class="groovybutton" value="Add Numbers" onClick="CalculateSum(this.form.input_A.value, this.form.input_B.value, this.form)" title=""> </form> <form name="groovyform"> <input type="button" name="SubButton" class="groovybutton" value="Subtract Numbers" onClick="CalculateDif(this.form.input_A.value, this.form.input_B.value, this.form)" title=""> </form> <form name="groovyform"> <input type="button" name="DivButton" class="groovybutton" value="Divide Numbers" onClick="CalculateQuo(this.form.input_A.value, this.form.input_B.value, this.form)" title=""> </form> <form name="groovyform"> <input type="button" name="MultButton" class="groovybutton" value="Multiply Numbers" onClick="CalculatePro(this.form.input_A.value, this.form.input_B.value, this.form)" title=""> </form> <form name="groovyform"> <input type="button" name="ClearButton" class="groovybutton" value="Clear Fields" onClick="ClearForm(this.form)" title=""> </form> <P>Answer = <INPUT TYPE=TEXT NAME="Answer" SIZE=18></P> </FORM></td> </DIV> </BODY> </HTML> If anyone can help with this, It would be greatly appreciated. Hi Guys/Ladies Im working through CSS learning it and so far its going well but i am stuck on this issue and a refuse to turn back to Html Tables etc i want to learn how to code without tables So i have a horizontal Menu bar and i would like to populate it with buttons linking to different sections on the site there is already two buttons but you can see from the image they are both touching one another i need to space them out, the buttons arent finished i want to get the layout sorted first then start adding detail. This is the CSS for the menu bar. I added the background image. HTML Code: div.hideSkiplink { background-image: url('/images/BottomMenu.gif'); width:100%; } div.menu { padding: 4px 0px 4px 8px; } div.menu ul { list-style: none; margin: 0px; padding: 0px; width: auto; } div.menu ul li a, div.menu ul li a:visited { background-color: #465c71; border: 1px #4e667d solid; color: #dde4ec; display: block; line-height: 1.35em; padding: 4px 20px; text-decoration: none; white-space: nowrap; } div.menu ul li a:hover { background-color: #bfcbd6; color: #465c71; text-decoration: none; } div.menu ul li a:active { background-color: #465c71; color: #cfdbe6; text-decoration: none; } This is the code on the site master where im calling the CSS HTML Code: <div class="clear hideSkiplink"> <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal"> <Items> <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/> <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/> </Items> </asp:Menu> </div> iv attached the image so you can see what its doing.... Hope some one can help me Hey All, Well, I'm having some difficulty with buttons on my page. I've decided to add Google search to my website. However, I can't get the submit button to look right. Rather than the button appearing as shown in the photo directly below, it comes up looking like the button in the second photo below. I know this is a minor detail, but it's really bugging me and I can't figure out what's going on. Even if I go directly to Googles website, copy the source code, and paste it directly into my HTML editor (Frontpage 2003) the button still comes up looking like the one in the second picture. Any help would be greatly appreciated. Thanks! Tim www.corvette-restoration.com I've created a form with a submit button and another button. The submit button is tied to the action of the form and the other button is to "register" or just send the user to another URL. It works fine in Firefox but not in IE...Any ideas? Code is below... Code: <form method="post" action="allow.php"> <table style="width: 100%; height: 100%" cellspacing="1"> <tr> <td class="un">USERNAME: </td> <td class="in"><input name="username" type="text" class="input"/></td> <td class="un">PASSWORD: </td> <td class="in"><input name="password" type="password" class="input"/></td> <td class="goblock"> <input name="submit" type="submit" value="Login" class="go"/><a href="http://digiconmediagroup.com/Homeplate/portal/register.php"><input name="register" type="button" value="Register" class="gor"/></a></td> </tr> </table> </form> Hey, as you can tell, I'm a new guy. And I'm having a bit of a problem... For some reason, in between 2 buttons I have on my site, there is a little, underscore line. I don't know why it's there, as it's not in my code, it's not a part of the image, and it wasn't there before I added the second button. It's hard to explain, it's easier to see it for yourself. http://nickisawesome.izfree.com/meec...igns/index.php Any help would be appreciated Does anyone know why there is padding around all my buttons on this page? They should be flush against each other... Any ideas? http://www.curiousclothing.com/test/tours.htm Any ideas why the buttons on the following link have such big gaps around them top and bottom? http://www.curiousclothing.com/test/tours.htm i have my list of radio buttons and submit button but what i would like to do is have each one go to a different URL but im having trouble with that at the moment so if anyone could help it would be very appreciated. thankyou sorry if this is a noobish question but so far i have this button.... <input type="button" value=">"/> i want to create a button that has the equivalent "^" arrow, but using rotation of the text used in my initial code? is this possible? what is this technique called? thanks for the help in advanced -Nathan Hi all, I have a question on the following code <?php if ($flag == 1) { echo "<HR COLOR=#0433f>"; ?> <form method="post" action="asstnt.php"> <input type="hidden" name="id" value="<?php echo $a ?>"> <input type="submit" value="Next"> <input type="button" value="Previous" onClick="window.location='javascript:history.go(-1)'"> <input name="Action5" type="button" id="Action5" value="Done" onClick="javascript:window.location.href='gotohome.php';"> </form> My question is that why do i get a space or blank line between the coloured line and the buttons.And how to eliminate the blank line. Thanks in advance. |