HTML - Php Align Within A Html Body Help
Hello everyone first time poster here and this is my first website as well so bear with me. I've been designing my pages in photoshop and then adding content using div tags. It has been working well as long as i put in appropriate box height and widths in a css file. on my last page, which contains my php contact form, I'm having trouble setting the background color to match the rest and also it's not aligning correctly. Internet explorer shows the form on the left while firefox shows in centered. Any help or suggestions would be widely appreciated... heck I'll even take some criticism
AZPCPLUS.COM Similar TutorialsFor some reason, on my homepage (http://www.projectdisobey.com/disobeyclothing/) an extra '</div> <!-- content #end -->' is being created in the page source, AFTER the closing 'body' and 'html' tags. There is no mention of '</div> <!-- content #end -->' in my 'footer.php' file, so why does this show up in the page source? Please see the attachment. If anybody could point me in the right direction as to why this might be occurring, and how I might fix it, I would be eternally grateful! Thanks! I've made an incredibly simple html page as an active desktop for a gpo policy, however there's been an uproar about colours so I thought I'd give it a stab to have a drop-down box to select from a range of colours for the body style tag. Any suggestions? <html> <head> <!--808080--> <title>ArchitenBG</title> <STYLE type="text/css"> body { background-color:#3A6EA5; } #div1 { position: absolute; size: 50%; bottom: 0px; right: 0px;} </STYLE> </head> <body> <div id="div1"><img src="Talbg.png" /></div> </body> </html> Hello Friends, I have page which is a type of form with many textbox and labels. I have used table for designing this form. How can I use a submit button so that it is placed in the center of the cell at the bottom of the page. In short I need my Submit Button in the center of the page. Please let me know as early as possible. I've been trying for 2 days to get my text to vertically-align middle in IE, but it just won't listen. I'm building the site www.acadianacomputerrepair.info; the title and menu items need to be aligned to the middle of their div containers, but they want to clip to the top. I'm setting the parent div's to display as tables and the child as a table-cell. It works great in firefox and perfect, even in IE, on a simple html test page, but I can't get it to work for the site, in IE. I don't know what else to try. Can someone help? Hi there, After HOURS of battling with what I thought should be so simple I have given up and registered for help! The very basic form of my problem is I want a table with 3 cells, The first two cells (one black, one blue) I want to be left aligned and simply as wide as the cell contents. I then want the 3rd cell to be right aligned, and fill up the rest of the row before reaching the text. So the 3rd cell spans from the 2nd cell all the way to the right of the table. I have uploaded 2 images. One is the rough design that I'm trying to achieve, the other shows my results. what I want: http://imageshack.us/photo/my-images/705/hopez.png/ (the 'music videos' would be in a separate cell as the background will be blue as you can see in my tests below) actual: http://imageshack.us/photo/my-images/830/problemue.png/ It either ends up as above or with hours of fiddling I did somehow have it over at the right, but only behind the text was black, there was just open space between the blue cell and the right aligned cell. So frustrated, better go to bed, haha. Hi I have a php form on the contact section of my website. It has a Name, Email and Message Box My Problem is in the message box i have made it quite large so they can type in what they need. But the blinking line to show where the start of the text is is in the centre of the box. How can I align this to the top left? Many Thanks Hello everyone, I've been racing to learn html/css in the past couple weeks to throw up a website, and so far so good. But: I've searched the internet and I cannot find an answer to my questions. The page in question is: http://www.andrew.cmu.edu/user/jonmille/projects.html style sheet (relevant section is in the "Programming: List Settings" section) http://www.andrew.cmu.edu/user/jonmille/style.css You can see that the gray borders under the text/images have a small break in them. I assume it has something to do with the fact that I'm using two columns. How do I fix this and make a solid border (in a non hackish way)? Note: if you say "use css/divs," I wrestled with those for about two hours before I gave up and made a table. Secondly, in IE7, all the images/text are completely flushed left, ignoring the table padding. How can I fix this? Note, I've never checked this site in IE6 or below, and never will, so if it looks wrong in IE6, then the user doesn't deserve to see my site anyway. Thanks for your time! Jon All I want is to have my image placed in the center of my web page... Every code I try doesn't work. The image is either at the top of the page or it doesn't stay in the center at different resolutions. Can someone help me? I'm new at html and dont understand why you need to use <body> what is the difference between <h1> Title </h1> <p> paragraph </p> and <h1> title </h1> <body <p> paragraph </p> </body> Hey, This has been bugging me for some time and I'm rubbish when it comes to borders and margins etc. Could someone tell me how modify the margin (presuming it's a margin) around the edge of the page? If you look at the attached image, you can see that the table isn't touching the edge of the page, and It does the same with images, text etc. Thanks ok i was wondering whats wrong with my background could some1 tell me if thiers something wrong with my code, the problem i have is the background appearing i do everything it says to but it still dosent work <html xmlns="http.thewaywardgamer.com> <head> <title>the way of the gamer</title> </head><body> <html> <body background="image.jpg"> <p align="center"><font size="50"><font color="#cccc80"><b>WELCOME TO GAMERWORLD</b> </font></p> <p> </body> <SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options[mySel.selectedIndex].value; if(myVal) { if(mySel.form.target)myWin = parent[mySel.form.target]; else myWin = window; if (! myWin) return true; myWin.location = myVal; } return false; } //--> </SCRIPT> <FORM ACTION="../cgi-bin/redirect.pl" METHOD=POST onSubmit="return dropdown(this.gourl)"> <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="http://www.purezc.com" >purezc <OPTION VALUE="http://www.youtube.com" >youtube <OPTION VALUE="http://www.miniclips.com" >miniclips <option VALUE="file:///C:/Documents%20and%20Settings/Owner/Desktop/games.html">bunker </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> <p> <p align="left"><font size="4"><font color="#660066">hello all and welcome to the world of gamers.where nintendo is our god.</font></P> <MULTICOL COLS=3> <UL> <lI><A HREF="links.html">Click Here for My Favorite Links</A> <li><A HREF="games.html">Click Here for Flash Game bunker</a> </UL> </MULTICOL> <br> <br> <br> <br> <body> Our address by FAN mail:<P> <ADDRESS> p.o box 183,perkinsvile vermont </ADDRESS> </body> <body> <!-- Begin Google Search --> <input type="hidden" name="cx" value="partner-pub-6155056320102818mfj3qxh2mm" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="25" /> <input type="submit" name="sa" value="google search" /> <!--img src="/acustom/google.gif" border="0" alt="Google" style="vertical-align:top;" /--> <!-- END Google Search --> </html Hi, I noticed that if you insert meta tags into html somewhere in the body tags, the browser still recognizes them. I know its bad practice, but do search engines frown on putting meta tags in the body INSTEAD of the head? Cheers, Doug I use HTML 4.01 transitional. This code came as part of a templet for a page on one of my websites. The page works OK with these zero margins, but not without them. <body bgcolor="#f5fbfd" text="#42718c" LEFTMARGIN="0" TOPMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" onLoad="" link="#0033ff" vlink="#660099" alink="#ff0000"> I suspect it's depricated. Is there a better way to do this? Is the onload="" even needed since it appears empty? The table on this page views okay in safari but in firefox there is a huge gap between the nav and the text.. http://naruphotography.net/AO/shedule.html any advice would be much appreciated Hi there, I am currently making an iPhone/Touch website, and would like to know how I can make it so the top banner stays at the top, while the main body of the site scrolls up and down below it. Can you help? Josh Hello all, Having always previously used Concep and Eloqua in design editor versions, I am now starting to need to work in HTML and picking it up as i go. I need to produce an email within our corporate template (email body in white in the centre of the page with grey background) but add a border to the outside of the white area to make it look like a certifiicate. I have set it up using the following code and whilst it looks perfect when i preview it in eloqua, through IE using notepad++ and in the outlook preview window but when it goes full screen in outlook the border moves to the outside of frame (grey area) not just the body of the email. Any help you can offer would be greatly appreciated (I am sure the script is messy as we just tend to copy existing templates and amend, am definitely thinking of booking an HTML course). Thanks in advance! HTML Code: <HTML><HEAD><TITLE>Infosecurity Magazine</TITLE><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <STYLE type=text/css>.ReadMsgBody { WIDTH: 100% } .ExternalClass { WIDTH: 100% } </STYLE> </HEAD> <BODY bgColor=#d7d7d7> <BODY bgColor=#d7d7d7><div <div style="width=600px; border-width: 4px; border-style: double; border-color:#f26722;"> <TABLE cellSpacing=0 cellPadding=0 width=615 align=center border=0> <TBODY> <TR> <TD vAlign=top align=left><A href="http://<elqdomain type=1/>/e/er?s=<span class=eloquaemail>siteid</span>&lid=94&elq=<span class=eloquaemail>recipientid</span>"></A></TD></TR> <TR> <TD vAlign=top align=left bgColor=#ffffff> <TABLE cellSpacing=0 cellPadding=0 width=615 border=0> <TBODY> <TR> <TD vAlign=top align=left> <P align=center><IMG alt=info-security-magazine src="http://www.intercalleurope.com/logos/3637_Infosecurity_image_with_Logo2.JPG" width=340 align=middle></P></TD></TR> <TR> <TD> <P style="TEXT-ALIGN: center" align=center size="2" color="is #F89910" face="arial" FONT><FONT color=#f89910 size=6><STRONG><U>Certificate of </U></STRONG></FONT></P> <P style="TEXT-ALIGN: center" align=center size="2" color="is #F89910" face="arial" FONT><FONT color=#f89910 size=6><STRONG><U>Continuing Professional Education</U></STRONG></FONT></P></TD></TR></TBODY></TABLE> <TABLE width=600> <TBODY> <TR> <TD align=middle> <P><FONT face=Arial></FONT> </P> <P><FONT face=Arial>This is to certify that</FONT></P></TD></TR> <TR> <TD align=middle><FONT face=Arial color=#f89910><I><B><SPAN class=eloquaemail>DC_Service_Notification___First_Name1</SPAN> <SPAN class=eloquaemail>DC_Service_Notification___Last_Name1</SPAN></FONT></SPAN><FONT face=Arial color=#f89910> </FONT><SPAN class=eloquaemail><FONT face=Arial color=#f89910></FONT></SPAN><FONT face=Arial color=#f89910></FONT></B></I></TD></TR> <TR> <TD> </TD></TR> <TR> <TD align=middle> <P><FONT face=Arial>Membership Number</FONT></P></TD></TR> <TR> <TD align=middle><FONT face=Arial color=#f89910><I><B><SPAN class=eloquaemail>DC_Service_Notification___Leader_PIN1</SPAN></FONT></SPAN><FONT face=Arial color=#f89910> </FONT></B></I></TD></TR> <TR> <TD></TD></TR> <TR> <TD> </TD></TR> <TR> <TD align=middle> <P><FONT face=Arial>Participated in the Infosecurity Magazine Webinar on</FONT></P></TD></TR> <TR> <TD align=middle><FONT face=Arial color=#f89910><I><B> <span class=eloquaemail>DC_Service_Notification___Conference_code1</span><TD align=middle color="#f89910" face="Arial" <FONT><I></FONT><FONT face=Arial color=#f89910><STRONG> </STRONG></FONT> <P></P></I></TD></TR> <TR> <TD align=middle> <P><FONT face=Arial>Entitled</FONT><FONT face=Arial><BR></FONT><FONT face=Arial color=#f89910><I><B><SPAN class=eloquaemail>DC_Service_Notification___Toll_dial_in_Number1</SPAN></FONT></SPAN><FONT face=Arial color=#f26722> </FONT></P> <P></P></B></I></TD></TR> <TR> <TD> </TD></TR> <TR> <TD align=middle><FONT face=Arial>As part of the Infosecurity Magazine UK Summer Virtual Conference.</FONT> </TD></TR> <TR> <TD> </TD></TR> <TR> <TD align=middle><FONT color=#f89910><STRONG><FONT face=Arial>Based on attendance at this event, <BR></FONT><FONT face=Arial>the individual named herein </FONT></STRONG></FONT><FONT face=Arial color=#f89910><STRONG>is eligible to earn 1CPE <BR>in compliance with the (ISC)<SUP>2</SUP> continuing education policies.</STRONG></FONT> </TD></TR> <TR> <TD> </TD></TR> <TR> <TD> </TD></TR> <TR> <TD align=middle><A href="http://<elqdomain type=1/>/e/er?s=<span class=eloquaemail>siteid</span>&lid=1924&elq=<span class=eloquaemail>recipientid</span>"><FONT face=Arial color=#666666>infosecurity-magazine.com</A> <DIV></DIV></FONT></TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></BODY></HTML> Hi every one ♥ Code: <a href="#info" rel="facebox">View the 'info' div in the Facebox</a> on above line, when user click on "View the 'info' div in the Facebox" then "info" div call with rel = "facebox" i want to call "info" div on page load with ref = "facebox" Code: <body onload="window.location.href='http://www.yoursitehere.com'"> i knw how to use href in body tag.. but i didn't know how to use href with ref in body tag please help me i will very thankful to you Hey all. I'm having issues trying to run 2 functions at the same time in onload. <BODY OnLoad="function({ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate'),JSFX_StartEffects()"> I can't seem to get these to work no matter what I do. if I do them individually as in get rid of the other one and just OnLoad one of them, it works great. What's the proper way to run both of these in OnLoad? i use the following code to preload my hover images i coded in css... HTML Code: <body onload="MM_preloadImages('images/png/fertz.png','images/png/hardscapez.png','images/png/irrigationz.png','images/png/servicesz.png','images/png/lawnz.png','images/png/pondsz.png','images/png/snowz.png','images/png/upkeepz.png','images/png/homez.png','images/png/servicesz.png','images/png/gift_shopz.png','images/png/floristz.png','images/png/galleryz.png','images/png/contactz.png','images/png/eventsz.png')"> the website....http://www.briangelhaus.com/spencer/services.html and the images still dont preload...is there a better way? I have recently taken control of a website (http://www.pitthockey.com/) and am having an issue concerning the body and footer layout. On some pages, such as the "Media" link on the side navigation bar, the footer overlaps the navigation bar if there is not enough text. I have them both set in divisions, but for some reason they still overlap. Any thoughts? |