HTML - Form Alignment Issues
G'day guys,
I'm having trouble getting my submit button aligned to the right edge of the textarea above it. Could you please tell me what I'm doing wrong, (still a bit raw when it comes to CSS). Here's the link: http://csusap.csu.edu.au/~jpress03/impel/contactus.html Here's my CSS code: Code: #frmwrap { border: 1px dashed #8DBA2C; padding: 10px; width: 350px; } form { font-family: Arial, Sans-serif; } input, textarea { border: 1px solid #gray; font-family: Arial, Sans-serif; } label { display: block; float: left; width: 100px; } form div { margin-top: 3px; } .button { background: #f1f1f1; border: 1px solid gray; } Any help is greatly appreciated. Cheers, Jamie Similar TutorialsHello, 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 The Image of the guy on this page ( http://www.kaerumusic.com/2011/06/13/jay-chou/ ) is coded like this: HTML Code: <img src="http://i139.photobucket.com/albums/q303/froggirl003/KM%20Pix/6962_jaychou.jpg" alt="" width="200px" height="280px" align="left" /> But I want the text after the description (the tabs) to be after the picture. How to do this? I am new to the world of web design and i am building http://www.bluephoric.com i am using a bg image on two of the pages and it is throwing off the header alignment. the header jumps around depending what page you are on? i am soo lost as how to fix this. can someone please help thanks hello all, I've recently ventured back into html and css after an extended break and was wondering if I could run this past someone: If you visit www.pcclinic-loanhead.co.uk, when you click on each of the menu links you will find that the page alignments don't seem to synch. What is strange is that the Home and Contact pages share the same alignment whilst Services and Epson share another. I've scanned the HTML and can't see any obvious differences.. there is also a main.css attached to each page. Can anyone with an expert eagle eye take a look at this and a) verify that you see the same problem and b)if possible, suggest a solution? Thanks very much in advance. Sam Hello all, I am having a problem which I can't seem to figure out with an html page. I sliced up a photoshop image then turned it into a web page. I took the html table from the sliced up header, and plugged it into the final web page. It looked like it was aligned properly in Dreamweaver, however when I viewed the webpage there were some alignment issues with the page. Here is the link to the misaligned page: http://test.gridpointpm.com Here is the code for part of the index page that includes the header with the alignment issues: 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" xml:lang="en" lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> <script src="maxheight.js" type="text/javascript"></script> </head> <body id="page1" onload="new ElementMaxHeight()"> <div class="w"> <div class="site_center"> <div class="site_center1"> <div id="header"> <div class="flash"> <!-- Save for Web Slices (indexheader.psd) --> <table id="Table_01" width="866" height="441" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="13"> <img src="images/index_01.jpg" width="866" height="66" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="66" alt=""></td> </tr> <tr> <td colspan="13"><img src="images/index_02.jpg" width="866" height="206" alt="" /></td> <td> <img src="images/spacerh.gif" width="1" height="206" alt=""></td> </tr> <tr> <td colspan="7" rowspan="2"> <img src="images/index_03.jpg" width="632" height="114" alt=""></td> <td colspan="5"> <img src="images/index_04.jpg" width="157" height="34" alt=""></td> <td rowspan="6"> <img src="images/index_05.jpg" width="77" height="169" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="34" alt=""></td> </tr> <tr> <td colspan="5" rowspan="2"> <img src="images/index_06.jpg" width="157" height="95" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="80" alt=""></td> </tr> <tr> <td colspan="5"> <img src="images/index_07.jpg" width="360" height="15" alt=""></td> <td rowspan="3"> <img src="images/index_08.jpg" width="180" height="40" alt=""></td> <td rowspan="4"> <img src="images/index_09.jpg" width="92" height="55" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="15" alt=""></td> </tr> <tr> <td rowspan="3"> <img src="images/index_10.jpg" width="153" height="40" alt=""></td> <td> <img src="images/index_11.jpg" width="42" height="16" alt=""></td> <td rowspan="3"> <img src="images/index_12.jpg" width="9" height="40" alt=""></td> <td> <img src="images/index_13.jpg" width="58" height="16" alt=""></td> <td rowspan="3"> <img src="images/index_14.jpg" width="98" height="40" alt=""></td> <td rowspan="3"> <img src="images/index_15.jpg" width="31" height="40" alt=""></td> <td> <img src="images/index_16.jpg" width="44" height="16" alt=""></td> <td rowspan="3"> <img src="images/index_17.jpg" width="7" height="40" alt=""></td> <td> <img src="images/index_18.jpg" width="55" height="16" alt=""></td> <td rowspan="3"> <img src="images/index_19.jpg" width="20" height="40" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="16" alt=""></td> </tr> <tr> <td rowspan="2"> <img src="images/index_20.jpg" width="42" height="24" alt=""></td> <td rowspan="2"> <img src="images/index_21.jpg" width="58" height="24" alt=""></td> <td rowspan="2"> <img src="images/index_22.jpg" width="44" height="24" alt=""></td> <td rowspan="2"> <img src="images/index_23.jpg" width="55" height="24" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="9" alt=""></td> </tr> <tr> <td> <img src="images/index_24.jpg" width="180" height="15" alt=""></td> <td> <img src="images/spacerh.gif" width="1" height="15" alt=""></td> </tr> </table> <!-- End Save for Web Slices --> </div> </div> Any help would be much appreciated. Thanks in advance. Hey guys. Having some issues on both my website and one I did for my Brother, the images not aligning properly. Both are fine in Firefox, but not in IE. www.michaelsingleton.co.uk www.ucba.co.uk If anyone would be so kind as to have a look over the code, it would be much appreciated! Thanks Mike. 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.. Dear forums! I'm having issue with an padding-problem which i'm not able to solve on my own. I don't understand why my code returns the problems that it does, but it for some reason does. Okay, what is the problem? I've drawn them into this picture; http://i42.tinypic.com/4v1veo.png The problem is that the first navigation-button starts off with about 10-15 pixels, and ends about 3 pixels out of the actual navbar (if you check the borders). I would like to remove this, so that the navbar button covers the whole area of the navbar div / element, without starting too late or ending too late. CSS code can be found here; http://www.myhrensolutions.net/tolkf...sign/index.css the HTML-code can be viewed here; http://www.myhrensolutions.net/tolkfirma/tjenester.html All help is muchly appriciated, thank you! - Scott. Hello, quick question here. I'm working on this site: (replace @'s with a's) v@rd@burstyn.com/version2/ The previous designer left it in a bit of a mess, and now that I've made some changes that appear nicely in my Safari browser, the tables are hugely misaligned when I look at a number of the pages in Firefox (i.e., water.html or rites.html). Any advice as to how to get the tables back under control? I've tried for a while but nothing seems to fix it. Thanks very much in advance. Hey everyone! I am completely new to webpage design and have enjoyed some parts of it! I have just been teaching myself as I go and viewing tutorials to learn most of what I have done. Now I am in a jumble and have no idea what to do. I am working ... my main problem is things aligning correctly. I am working on this for a friend and really would like to just be done with it! Please check it out, I attached the pages so maybe you can lead me in the right direction. I believe I have not positioned things correctly. They appear okay sometimes on internet explorer / funcky on firefox / and reallly crazy on safari! Also, the navagation bar is very glitchy, maybe I shouldn't have done a flash navigation? Im going nuts over here! I appreciate all your help. Hey guys, I have been designing a portfolio for my photography for some time. There are a few issues I have and I would appreciate your help. http://fjchapman.com/portfolio/portfolio.html 1. If you'll notice, the SWF object won't open. If you go to http://fjchapman.com/portfolio/viewer.swf , the swf is fine. There is just something wrong with my code. 2. Why is it so screwed up in IE? I have been going through my code but I cannot understand why IE is adding some mysterious padding. Help? 3. Alignment of links. While the links are just fillers (concert photography, portraits) for now, how can I have them aligned to the bottom left of my header? Thank you guys so much for your time. Hey all, I am using this code: 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"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <style type="text/css" media="all"> body{ background-color: #3a2700; margin:5pt; } .dsR20 /*agl rulekind: base;*/ { width: 290px; height: 50px;} .dsR21 /*agl rulekind: base;*/ { font-size: 10pt; width: 200pt; height: 15px; } .dsR24 /*agl rulekind: base;*/ { width: 486.75pt; height: 50px; } </style> </head> <body> <form class="dsR24" name="input" action="index.php" method="get"> <img class="dsR20" alt="Logo" src="logo.gif" /> <input class="dsR21" type="text" name="val" value="" size="60" /> <input class="dsR22" type="submit" value="Submit" /> </form> <hr> </body> </html> What I have is an image to the direct left of a text field and a submit button. The problem is the text field and button are low and it doesn't look nice. I want to move the field and button more towards the top of the page, how would I go about doing this? -MacAddikt OK I've tried to align my form, but just can't do it. The problem is with my submit button. In Firefox, it just does not want to align with the other fields. IE is fine. Any suggestions? I have tried valign on the td, vertical-align css, changing the height, etc... Chris Ok, so I hope there is a simple answer to this. I just haven't been able to figure it out. I have a basic form that has a dropdown menu. I am using an image as the submit button. The problem I am having is that the image does not align vertically properly next to the dropdown menu. Below is what my form looks like in the browser. Any ideas how to get this aligned correctly? Thanks for all help! Hi I'm having problems with the following set of code:- Code: <style> #columns { width: 600px; } #columns .column { position: relative; width: 46%; padding: 1%; border: solid 0px #000; } #columns .left { float: left; } #columns .right { float: right; }</style><div id="columns"> <div class="left column"> <p><b>What are your journey needs?</b></p><input type="checkbox" name="Journey Needs" value="Elderly">Elderly<br> <input type="checkbox" name="Journey Needs" value="Wheelchair User">Wheelchair User<br> <input type="checkbox" name="Journey Needs" value="Mobility Impaired">Mobility Impaired<br> <input type="checkbox" name="Journey Needs" value="Unable to use own/public transport">Unable to use own or public transport<br> <input type="checkbox" name="Journey Needs" value="No public transport available">No Public Transport available<br> <input type="checkbox" name="Journey Needs" value="Group Hire - General Public">Group Hire - General Public<br> <input type="checkbox" name="Journey Needs" value="Group Hire - Community Groups">Group Hire - Community Groups<br> <input type="checkbox" name="Journey Needs" value="Youth">Youth<br> </p> </p> </div> <div class="right column"> <p><b>What is your journey purpose?<b></p><input type="Radio" name="Journey Type" value="Shopping">Shopping<br> <input type="Radio" name="Journey Type" value="Hospital Appointment">Hospital Appointment<br> <input type="Radio" name="Journey Type" value="G.P., Optician, Chiropodists, Physio,etc">G.P., Optician, Chiropodists, Physio. etc<br> <input type="Radio" name="Journey Type" value="Day Care">Day Care<br> <input type="Radio" name="Journey Type" value="Leisure">Leisure<br> <input type="Radio" name="Journey Type" value="Education">Education<br> <input type="Radio" name="Journey Type" value="Visiting (Hospital, etc)">Visiting (Hospital, etc)<br> <input type="Radio" name="Journey Type" value="Other">Other<br> <p> </div></div></p> <b>Please give more details:</b><br> <textarea name="VisitorComment" maxlength="300" lengthcut="true" rows="6" cols="50"> </textarea><br><br> I use two different browsers, IE7 (Version 7.0.5730.13CO) and Google Chrome (Version 12.0.742.142). Even though a simple solution would be to not use any column coding at all, thereby putting them one above the other, this makes the page too long so I am trying to get them side by side. The problem is that the page looks about perfect in IE but in Chrome the wording 'Please give more details' appears at the right-hand edge of the text area, unless you alter the page zoom in which case it appears above the radio functions. I've tried tagging as a table but the situation is then reversed: looks great in Chrome but in IE the check boxes are almost perfectly displayed and the radio functions are squashed. I'm not too familiar with tables or columns at this point. The table tags I hijacked from the Links page ( I was able to understand them enough to both remove and add new ldata to the table) on the site I'm helping develop and the column tags I gleaned from a html tutorial site. Is this just as issue with the way that different browsers display html or am I missing something in the tags? Thanks for looking and hope someone can help. I have a photography website that is set up for purchasing prints. I had one of you wonderful people help me out with a form problem some time ago. I needed information to be inserted into the form based on the particular page (or photo) that the person was on. It needed to insert the photo name in the form that came up when you clicked the purchase link. All was working great until a few weeks ago. Now, when you click the link, it inserts the name, but the form thinks the field is blank. Since its a required field, the user still has to type it. Is there a easy fix for this? Here is the site: http://www.sthompsonphoto.com/galler...p?showimage=59 I cant figure it out! Any help would be great! Thanks! I'm thinking this is the right section, but since I have several questions, I'll just go along as they're answered, or moved so not to irritate all of you. I'm designing a product form for a website at the moment, the basics of it are all there and completed, I've just run into a few snags with things that should've been very simple. First off I'm trying to design a preview area which takes its information from a bunch of dropdowns. Theres just one tiny problem, I know its tiny, but I can't seem to find it. If anyone could shed some light on this I'd greatly appreciate it. Now I'm going to warn you, theres alot of alert boxes that'll pop up if you test this in a browser, thats for my own purposes until its all done. So you may wanna turn your sound off if you look at it. Hi... Trying to get this site running but had to use somebody else's code for the forms and I cannot seem to get them working... Here's the link... http://artinludlow.com/joe/index.html Do not go to the main "com/index.html" page, use the "joe/index.html" directory. thanks |