HTML - Blackberry Page Alignment Problems
Similar TutorialsHi everyone, I'm working on a website for a family member who has a buisness doing antique restoration, I'm trying to make all the pages have the same alignment, the address is http://www.maxbarr.com/ if you click on the buttons along the top you'll see what i mean, some of them are the same alignment others are shifted slightly to the left, they all have exactly the same code as I've used a Dreamweaver template. However they do use stylesheets as well, with the gallery pages using two so I'm guessing it may be that. For bonus marks can someone tell me how to make the copyright information in the gallery section the same size as one the other pages. here is the code for the template: 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>.:Max Barr Antique Furniture Restoration:.</title> <style type="text/css" media="all"> <!-- @import url("../styles.css"); #header #logo a { font-family: Times New Roman, Times, serif; } #index #outerWrapper #gradient #contentWrapper br { color: #FFF; } #index #outerWrapper #gradient div { color: #FFF; } --> </style> <!-- TemplateBeginEditable name="gallery info" --><!-- TemplateEndEditable --> <!--[if IE 5]> <style type="text/css"> #outerWrapper #contentWrapper #leftColumn1 { width: 200px; } </style> <![endif]--> <!--[if IE]> <style type="text/css"> #outerWrapper #contentWrapper #content { zoom: 1; } </style> <![endif]--> </head> <body id="index"> <div id="header"> <div id="logo"> <a href="index.html" onmouseover=""> Max Barr Antique Restoration</a></div> </div> <div id="outerWrapper"> <div id="gradient"> <div id="nav" style="margin-bottom: 10px;"> <div align="center"> <ul> <li><a href="index.html">Home</a></li> <li><a href="profile.html">Profile</a></li> <li><a href="restoration.html">Restoration</a></li> <li><a href="gallery.html">Gallery</a></li> <li><a href="contact.html">Contact</a></li> </ul> </div> </div> <div id="contentWrapper"> <div align="center"></div> <div id="content"> <!-- TemplateBeginEditable name="Content" --> <h1>This is the page title</h1> <h2>This is the H2 tag</h2> <!-- TemplateEndEditable --></div> </div> <div id="credit" align="center">Copyright © 2009 Max Barr <br /> </div> </div> </div> </body> </html> And here's the code for the stylesheet: Code: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; } img { border-style: none; } body { background-color: #000000; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 14px; margin: 0 0 0 0; padding: 0 0 0 0; text-align: center; background-image: url(images/body-bg.png); background-repeat: repeat-x; background-position: top; } h1 { color: #FFFFFF; font-size: 24px; font-weight: normal; line-height: 28px; letter-spacing: -1px; } h2 { color: #999999; font-size: 18px; font-weight: bold; line-height: 20px; } a, a:link { color: #CCCCCC; font-weight: bold; text-decoration: none; } a:visited { color: #CCCCCC; font-weight: bold; text-decoration: none; } a:hover { color: #FFFFFF; text-decoration: bold; } a:focus { color: #CCCCCC; } a:active { color: #CCCCCC; } #outerWrapper { margin: 0 auto 0px; text-align: left; width: 920px; background: #fff url(images/content-bg.png) repeat-y left 13px; } #outerWrapper #gradient { background-image: url(images/gradient-shadow.png); background-repeat: no-repeat; background-position: center top; } #header { height: 80px; background-image: url(images/header-bg.jpg); background-repeat: no-repeat; background-position: bottom; width: 900px; margin-right: auto; margin-left: auto; text-align: left; padding-left: 20px; } #header #logo { color: #FFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 28px; font-weight: normal; padding-top: 10px; padding-left: 0px; line-height: 50px; float: left; width: 1000px; text-decoration: none; } #header #links{ color: #C06A05; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; float: right; width: 370px; text-align: right; margin-top: 25px; padding-right: 25px; } #links a, #links a:active, #links a:visited { font-weight: normal; color: #C06A05; } #header #links a:hover { color: #CCCCCC; text-decoration: none; } #nav { height: 62px; margin-right: 20px; margin-left: 20px; color: #FFFFFF; background-color: #CCCCCC; background-image: url(images/nav-bg.jpg); background-repeat: repeat-x; background-position: top; padding-top: 0; padding-right: 0px; padding-bottom: 0; padding-left: 0px; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #000000; border-left-color: #000000; margin-bottom: 0px; } #nav ul { margin: 0px; padding: 0px; } #nav ul li { margin: 0px; display: block; float: left; list-style: none; clear: right; } #nav ul li a { display: block; padding-right: 20px; padding-left: 20px; text-align: center; color: #CCCCCC; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 62px; font-weight: normal; background-image: url(images/nav-border.jpg); background-repeat: no-repeat; background-position: right top; } #nav ul li a:hover { background: url(images/nav-hover.jpg) repeat-x top; text-decoration: none; color: #FFFFFF; } #nav ul li#active { background: url(images/nav-hover.jpg) repeat-x top; text-decoration: none; } #nav ul li#active a { color: #FFFFFF; } .subpage-navimage { float: right; } #spacer { background-image: url(images/nav-spacer.png); background-repeat: no-repeat; background-position: center top; height: 27px; } #outerWrapper #feature { height: 230px; width: 880px; margin-left: 20px; margin-bottom: 5px; background-image: url(images/feature.jpg); background-repeat: no-repeat; background-position: center top; } #outerWrapper #contentWrapper { padding-right: 25px; padding-left: 30px; clear: both; padding-top: 10px; } #outerWrapper #contentWrapper #leftColumn1 { float: left; padding: 0px; width: 200px; background-color: #232323; border: 1px solid #161616; } #outerWrapper #contentWrapper #content { margin-top: 0px; margin-right: 5px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 15px; padding-bottom: 15px; padding-left: 15px; background-color: #3E3E3E; color: #CCCCCC; border: 1px solid #2C2C2C; font-size: 12px; line-height: 18px; } #content-image { margin-bottom: 15px; } #content ul li { margin-bottom: 5px; } #outerWrapper #footer { background: url(images/footer-bg.png) no-repeat left top; height: 60px; color: #666666; text-align: center; padding-top: 25px; padding-right: 30px; padding-bottom: 0px; padding-left: 30px; } #leftColumnContent { width: 190px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #999999; margin-right: 5px; margin-left: 5px; margin-top: 5px; margin-bottom: 5px; } #leftColumnContent h3 { border: 1px solid #000000; padding-top: 5px; padding-bottom: 6px; font-size: 12px; padding-right: 4px; padding-left: 4px; background-image: url(images/sidebar-h3-bg.jpg); background-repeat: repeat-x; background-position: top; color: #CCCCCC; } #leftColumn1 ul { margin: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; } #leftColumn1 ul li { list-style: none; display: inline; }#leftColumn1 ul li a { display: block; padding: 4px 4px 4px 6px; color: #999999; } #leftColumn1 ul li a:hover { text-decoration: none; background-color: #171717; color: #CCCCCC; } .fltlft { float: left; margin-right: 10px; margin-bottom: 10px; } .fltrt { float: right; margin-left: 10px; margin-bottom: 10px; } .sidebarlt { padding: 6px; border: 1px solid #000000; background-color: #4E4E4E; color: #CCCCCC; } .sidebardk { color: #999999; border: 1px solid #4A4A4A; padding: 6px; background-color: #1F1F1F; } .sidebardk a, .sidebardk a:hover, .sidebardk a:visited, sidebardk a:active { color: #999999; } } #credit { text-align: center; padding-top: 0px; padding-bottom: 8px; font-size: 11px; color: #333333; width: 920px; margin-right: auto; margin-left: auto; } #credit a, #credit a:hover, #credit a:visited, #credit a:active, #credit a:focus { color: #333333; font-weight: normal; } #index #outerWrapper #gradient p { color: #FFF; } #index #outerWrapper #gradient div { color: #FFF; } btw I know the code is very messy, I'm trying to learn more so I can clean it up a bit Thanks very much hello i have found a solution. thanks anyway! Hi guys, I've created an advert with some affiliate links in that I want to display on my main pages of my website. I have only fairly recently jumped into the world of web design/development so I've probably not made the most efficient page. The advert is layed out inside a table that is 4 columns and 2 rows and everything seems fine when I view that page. Except, when I put this page into my main pages (via an iframe) it shows nearly correctly, but the alignment is slightly off: the second column in is a few pixels down than the others. I have checked the coding over and over to no avail. Is there maybe a reason for this? Or some tips that you could give? I did try yesterday by just copying and pasting the code directly from the advert page to the main pages which require them - but that's a whole new can of worms! The alignment of that attempt was beyond a joke (even then I couldn't work it out...). Many thanks in advance for your ideas. Hello ladies and gentlemen. Im having trouble aligning some buttons i made with an a big image and small image of the like. They need to look like this... http://i217.photobucket.com/albums/c...wayne/main.jpg but currently are out of sync and all stuffed up. I was wondering what i could do to correct he problem and make it like the image above. Thanks in advance Hi guys, I have two problems with my site http://www.djash.com Both problems have to do with charts section. 1. The font size for the charts shows bigger in firefox and chrome - it shows correctly on IE as intended. 2. I need to decrease the gap between the "Mainstream House" Charts and the "RnB" charts but I haven't been able to find a way to do it. thanks a lot in advance for anyone who can help with these 2 issues Andreas Hi I know I'm probably committing a cardinal sin by using a table for this layout but that's what I've done. For some reason which I cannot determine the second column is not aligned with the first column in Chrome 11 and Firefox 3.6 but on IE it works correctly. http://wwwrobe.www39.a2hosting.com/?page_id=4 Any help would be greatly appreciated. Many thanks New to the forum, but the title states it all. I'm trying to help someone find a fix for his website, when people use Internet Explorer 6 or 7 to view the site, it looks like this: http://img707.imageshack.us/img707/7493/badq.jpg Here is the link to the page he's having trouble with: http://biglake411.com/ When viewed in FF or IE8 it views fine. While just having everyone update to Internet Explorer 8 or FF would be the easiest thing, some people are viewing/using the website from work computers and cannot update. I think he used some kind of automatic generator to create the code. If you could help diagnose the problem it'd be much appreciated... Feel free to email me the fix or post it on here. Much appreciated everyone! 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. On the website: www.jsbseafoods.20m.com Have the following problems: Browser Issues: 1.) When viewed with Microsoft Internet Explorer it is aligned to the left instead of centred, top of the company name is missing, company jpg and gif images missing? 2.) When viewed with Firefox company name is missing? 3.) When viewed with Chrome sometimes when you scroll down the page and then up, top part of the company name is missing? Other Issues2: *SOLVED* 4.) On the Homepage "/div>" appears at the bottom of the page, I cant find where this is in the html code to remove? *SOLVED* 5.) On the Location page in Firefox and Chrome the page has an un-necessary space below the google map, on Internet Explorer the page is cut short. It would be greatly appreciated if you could help with these issues, I have been looking through the html and css code and cant find the problems. Thanks James 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, I am a newbie when it comes to HTML. I developed a web page and the contents of the page is aligned to the left. How would I align the page so that it is centered. Here is the URL for the web page: http://qhcontracting.com/ Thanks a bunch for any replies! GW Can anyone help with a problem i have with web page alignment? when i publish my site the page is not centred but sits on the left of the screen! i am using dreamwever 4 and not messing about with the code. cheers,jc Hi, I am working for support and got one issue raised.. My webpage has 3 print blocks .. when i minimize the browser the alignment of third block remains same and hence I good horizontal space bar for that while other two blocks align/resize themselves according to new page size.. Kindly suggest which tag /etc i need to check Hello, I am a page and was wondering how I would align it center in the page without all the formating being messed up. So I was wondering if there was a way to make everything center in the page but look just as it does now, just centered no matter the size of the page. Hope you can help! Thank you in advance. This is the page I would like the code to center http://www.primenewscenter.com/updat...ncom&buid=4928 Thanks! Having an issue with page positioning and alignment. My html skills are limited at best but Im trying to set up a layout template for my ebay sales. what I want is for the page/table to have fixed borders so that the horizontal scroll bar at the bottom doesn't' appear as I enter large amounts of text, instead I'd like to have it expand downwards to accommodate whatever I enter instead of expanding outwards to the right as its currently doing. I realize the code may be a bit of a mess, but Im seriously stuck, I've messed with all the tags but I can't seem to figure out what is causing this problem, any tips at all from anyone would be much appreciated. link to layout http://surrenderyourwings.com/layout.html Hi, I have finished my first ever page and am now starting on page 2 (I wanted to create the pages before learning how to link them) I want to use the same layout as my index.php page so i have copied and pasted the code and was just going to edit the text (tell me if i'm doing wrong!) My index page looks fine (www.thetenerifeapartment.com) i have named my second page teneriferegion (saved as a .php in notebook) uploaded it to the server and typed in www.thetenerifeapartment.com/teneriferegion.php/ in the browser to have a look how it looks but the header image is broken and the borders around the text doesn't show as in my index page. Can someone let me know what i've done wrong? i made my first ever full site. it works well in safari and firefox. but for some reason the center section in my page is thrown off with IE. i want my page to be viewable in all possible browsers. can someone help? link to my page is http://h1.ripway.com/dsponline/index.html and the style sheet is http://h1.ripway.com/dsponline/style.css anyone help it would be greatly appreciated! <a href="http://www.gametracker.com/server_info/209.40.97.202:28960/" target="_blank"> <img src="http://cache.www.gametracker.com/server_info/209.40.97.202:28960/b_160x400_T0_F-2_CFFFFFF-FFFFFF-81B569-191515.png" border="0"> </a> <a href="http://www.gametracker.com/server_info/85.234.155.53:30002/" target="_blank"> <img src="http://cache.www.gametracker.com/server_info/85.234.155.53:30002/b_160x400_T0_F-2_CFFFFFF-FFFFFF-5DA85D-141414.png" border="0"> </a> Hi there, I'm a relative novice in HTML, but when i try to post the above two images, they appear one below the other, not side by side. I tried to use a series of <table>, <tr>, and <tb> things to sort it into two collumns and one row, but this screwed up the formatting on the forum i tried to post them on. I wonder if there's any possibilty you could give me a simple way to allow both these images to sit next to each other on a page, without it being too cumbersome? Many thanks. Hi, when I created my website www.monkeygambling.com I didn't think about the resolution of other peoples monitors. When most internal pages (homepage is fine i think) are viewed on resolutions below 1280*1024 the page contents moves around. Could anyone help with out with the easiest way to stop this happening so the contents are fixed? thanks for your help |