HTML - Page Border Collapses On Smaller Resolution
Hi all,
I was wondering if someone could help me. I want a border around the entire page. It works fine in IE at all resolutions, but breaks in FF. I explicitly stated html and body heights to be 100% but that doesn't help. I should be able to spot the error, but its escaping me. Can someone please look at my code and tell me if you see anything? Thanks Rick --- The HTML: HTML 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> <title>San Jose Cell Phones</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body style="font-family:verdana,tahoma, sans-serif;"> <div style="margin-left:3%;"> <h1 style="font-size:4pt;color:#ffffff;">San Jose Cell Phones ringtones AT&T Yahoo dsl satellite 408 calling dish network</h1> <div align ="center"> <img src="images/sanjose.png" alt="san jose" style="width:195px;height:39px; vertical-align:middle;" /> <img src="images/smallcellphone.jpg" alt="san jose cell phones logo" style="width:72px; height:204px; padding:20px; vertical-align:middle;" /> <img src="images/cellphones.png" alt="cell phones" style="width:246px;height:39px; vertical-align:middle;" /> </div> <h4>Choose Service</h4> <div class="container"> <ul id="navSquare"> <!-- CSS Tabs --> <li><a class="active" href="index.html">Cellular</a></li> <li><a href="ringtones.html">Ringtones</a></li> <li><a href="phonecards.html">Phonecards</a></li> <li><a href="dishnetwork.html">Dish Network</a></li> <li><a href="dsl.html">DSL Service</a></li> </ul> </div> <hr align="center" width="33%" /> <br clear ="all" /> <div style="float:left;color:#006699;width:250px;"> <div style="background-color:#006699;color:#ffffcc;margin-top:30px;height:10px;padding:3px 10px 3px 10px;border:1px solid black;border-bottom:0px;">Hi</div> <div style="line-height:1.3em;padding:10px;text-align:justify;background-color:#FFFFCC;border:1px solid black;"> <p style="font-size:11pt;font-weight:600;padding-top:10px;">The Original Online Prepaid<br /> Domestic and International<br /> Calling Cards Superstore</p> <p><strong>Save up to 80% on long distance calls</strong> <br /> We hand-pick our phone card selection to offer the best of both low cost and reliability. Don't be fooled by other's low teaser rates. We pioneered instant email calling card delivery in 1999, with over 600,000 sold as of September 2006! <br /><br /> <strong>How to use this web site</strong> Use Get Best Rates to choose your phone card, then receive your virtual phone card purchase by email. For a physical card, print the email containing the card image. Login to your account 24 hours a day to check PIN information or to reorder</p> </div> </div> <div style="color:#ffffcc;float:left;clear:none;margin-left:20px;width:460px;"> <div style="background-color:#006699;margin-top:30px;height:10px;padding:3px 10px 3px 10px;border:1px solid black;border-bottom:0px;">FINDING THE BEST PHONE CARD</div> <div style="float:right;clear:none;padding-top:10px;padding-left:3px;padding-right:3px;width:209px;height:158px;"> <script type="text/javascript" language="JavaScript" src="http://www.kqzyfj.com/placeholder-1405157?target=_top&mouseover=N"> </script> </div> <div style="padding:10px 5px 30px 5px;text-align:justify;background-color:#7691d4;border:1px solid black"> <p style="font-size:14pt;padding-left:5px;margin-bottom:-5px;">Is your need for</p> <p style="line-height:1.5em;white-space:nowrap;font-size:.75em;"> <font face="Arial">► </font> International calls from the U.S.?<br /> <font face="Arial">► </font> International calls to the U.S.?<br /> <font face="Arial">► </font> Calling within the U.S.?<br /> <font face="Arial">► </font> Calls while traveling?<br /> <font face="Arial">► </font> Specific recommendations?<br /> <font face="Arial">► </font> Wireless/cell phone refill PINs? </p> </div> </div> <!-- <div align="center"> <p class="sectionheading"><a name="phonecards" id="phonecards">Phone Cards</a></p> <a href="http://www.kqzyfj.com/3566vpyvpxCFEKIDFLCEDGDGMLF" target="_blank" onmouseover="window.status='http://www.zaptel.com';return true;" onmouseout="window.status=' ';return true;"> <img src="http://www.lduhtrp.net/o4101r6Az42ORQWUPRXOQPSPSYXR" alt="Buy the best phone cards at San Jose Cell Phones" width="300" height="250" border="0"/></a></div> <br /> <hr align="center" width="25%" /> <div style="text-align:center;margin:0 auto;margin-top:25px;"><a class="button" href="#top">Top of Page</a></div> <br />--> </div> </body> </html> The CSS: Code: html,body { height:100%; } body { background-color:#ffffff; border: 2px #279DA4 solid; font-family:'Berlin Sans FB Demi', 'Berlin Sans FB', Verdana,'Trebuchet MS',tahoma, sans-serif; font-size:10pt; } .container { width: 500px; padding: 5px; margin:0 auto; border: 1px solid #ccc; background: #fff; margin-bottom:10px; } Similar TutorialsHello, I've got a pesky bug that I can't figure out... I'm designing a website for a record store and the width is a little larger than 800px.. on larger screens, it loads just fine.. however when I try to load it on a smaller screen and scroll to the right (to see the info that is cut off) all of the background colors of my elements continue to be cut off. This does not occur when I start with a small window on a big screen and resize... hope that makes some sort of sense here's the site I'm brand new to the scene of html and tryiing to create a website. I'm currently using a drop-and-drag program that does allow for some html and other scripting to help modify the page. The problem I'm having is this. When the webpage I created with a margin of 1024 x 768 appears on my monitor (1440x900) as well the monitor of a few other people I have asked, it appears fine. When I change my monitor resolution to 1024 x 768 to view the webpage, I have to scroll over to the middle of the page to begin viewing. How do I fix this so that the page is centered regardless of the monitor resolution of whomever is viewing the page? Once again, I am a beginner with the world of html so I will do my best to try to understand whatever it is that I need to input into the html to try to fix the problem. Thank you. Edited: Seo Concerns. I have a to make web page containing 2 columns. This is done. Now what I would like to insert in the code is something like this: The 2 columns should be full screen on any resolutions. Something like the page would adapt to the monitor resolution. The percent would be 80% for the first column 20% for the se cond one. What I don't know - is how to do that. Would a table resolve this problem? What would be the code for this? Suggestion are well appreciated. Hello, I am having a bit of a problem with a website I just started. I am currently on a resolution of 1280x1024 and I want it work for 1024x768. Well, I want it to work for any resolution, really. In fact, I noticed the problem exists when I go from maximizing the browser window to minimizing it. Here is what it looks like at 1280x1024 with the browser window maximized. Here is what it looks like at 1024x768 or when the browser window is less than maximized. See the problem? The two background images to either side of the banner image are lessening, as the resolution decreases or the browser window is decreases. Yet, the banner image remains unaffected. How can I make sure that the html is proportional to resolution, such that the background image on either side of the banner image remain unaffected in the manner in which they are currently? Thank you. Here is the HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>Test</title> </head> <body> <table border="2"> <!-- table 1 --> <tbody> <tr> <td width="10%" style="BACKGROUND-IMAGE: url(pictures\BG.jpg)"><!-- col 1 --> </td> <td width="80%"><!-- col 2 --> <table border="4"> <!-- Table 2 --> <tbody> <tr> <td><img src="pictures/banner.jpg"> </td> </tr> <tr> <td>More stuff goes here</td> </tr> </tbody> </table> </td> <td width="10%" style="BACKGROUND-IMAGE: url(pictures\BG.jpg)"><!-- col 3 --> </td> </tr> </tbody> </table> <!-- table 1 --> </body> </html> Ok, I've written my entire site in tables and that works lovely. I now want to put a border around everything on my page. So I tried: <table width="820" cellspacing="0" cellpadding="10" border="1" bordercolor="#c51e21"> <tr> <td> <div align="center"> MY ENTIRE WEBPAGE </div> </td> </tr> </table> However, the border color doesn't change and just fades here and there when I change the hex. I also want to change the border type from a 3dish window frame to a solid line. Can anyone help me please. Hi, i was wondering if anyone could take a look at my website and tell me why there's a border around each page. My url is www.marksbodyshop.org I will post my html, main.css , defult.css and defult2.css. I tried adding padding:0; and border:0; to the html, body element of the each css but that didn't work. It only happens in ie. Thank you very very much. Main.css: Code: html,body { height:100%; margin:0; background-color:#000; background-image:url(../images/firstpage.gif); background-size:100% 100%; background-repeat:no-repeat; overflow:hidden; border:0; padding:0; } #container { height:73%; } #nav { position:absolute; padding:0; margin:0; list-style-type:none; height:7%; width:57%; top:40%; left:20%; z-index:1; } #nav li { width:16%; margin:1%; height:100%; } #nav a { display:block; width:100%; height:100%; outline:none; text-indent:-9999px; background-size:100% 300%; } #about {background-image:url(../images/aboutus.png);} #about1 {background-image:url(../images/contactus.png);} #about2 {background-image:url(../images/freelunch.png);} #about3 {background-image:url(../images/map.png);} #about4 {background-image:url(../images/meettheteambutton.png);} #nav a:hover {background-position:0 -100%;} #nav a:active {background-position:0 -200%;} Defult2.css: Code: @charset "utf-8"; /* CSS Document */ body { margin:0; padding:0; background:#000000; } html, body, #bg { height:100%; width:100%; overflow:hidden; border:0; padding:0; } #bg { /*position:absolute; */ left:0; right:0; bottom:0; top:0; overflow:hidden; z-index:0; } #mainimg { width:100%; height:100%; } #content { z-index:1; /*position:relative;*/ height:100%; width:100%; z-index:1; margin:0 auto; } #position{ position:absolute; top:40%; left:18%; width:20%; z-index:2; } /*#position1{ position:absolute; top:90%; left:66.38%; width:30%; margin: 0 auto; padding:0px; z-index: 1; }*/ #position1 { left: 66.85%; padding: 0; position: absolute; top: 69%; width: 20%; z-index: 1; height:10%; } #nav { margin:0px; padding:0px; height:44px; } #nav ul{ margin:0px; padding:0px; } #nav li { padding:0px; list-style:none; margin:5px 0; /*height:100%;*/ height:100%; } #nav a { display:block; width:100%; height:100%; /*outline:none; */ text-indent:-9999px; background-position:left; } #homelink { left: 0; padding: 0; position: absolute; top: 0; width: 0; z-index: 1; overflow:hidden; height:100%; width:100%; } #home {width:63.5%;height:43px;background:url(../images/homebutton.png);} #about {width:49%;height:33px;background:url(../images/aboutus_new.png)} #about1 {background:url(../images/contactus.png) no-repeat;} #about2 {background:url(../images/freelunch.png) no-repeat;} #about3 {background:url(../images/map.png) no-repeat;} #about4 {background:url(../images/meettheteambutton.png) no-repeat;} #meettheteam1 {background:url(../images/carlosbutton.png) no-repeat;} #meettheteam2{background:url(../images/brettbutton.png) no-repeat;} #meettheteam3 {background:url(../images/marktbutton.png) no-repeat;} #meettheteam4 {background:url(../images/marksbutton.png) no-repeat;} #nav a:hover {background-position:0 -0% } #nav a:active {background-position:0 -0% } Defult.css: Code: @charset "utf-8"; /* CSS Document */ body { margin:0; padding:0; background:#000000; } html, body, #bg { height:100%; width:100%; overflow:hidden; border:0; padding:0; } #bg { position:absolute; left:0; right:0; bottom:0; top:0; overflow:hidden; z-index:0; } #bg img { width:100%; height:100%; } #content { z-index:1; /*position:relative;*/ height:100%; width:100%; z-index:1; margin:0 auto; } #position{ position:absolute; top:40%; left:18%; width:20%; z-index:2; } /*#position1{ position:absolute; top:90%; left:66.38%; width:30%; margin: 0 auto; padding:0px; z-index: 1; }*/ #position1 { left: 66.85%; padding: 0; position: absolute; top: 71%; width: 20%; z-index: 1; height:10%; } #nav { margin:0px; padding:0px; height:44px; } #nav ul{ margin:0px; padding:0px; } #nav li { padding:0px; list-style:none; margin:5px 0; /*height:100%; height:100%;*/ } #nav a { display:block; /*width:100%; height:100%; outline:none; */ text-indent:-9999px; background-position:left; } #homelink { left: 0; padding: 0; position: absolute; top: 0; width: 0; z-index: 1; overflow:hidden; height:100%; width:100%; } #home {background:url(../images/homebutton.png) no-repeat;} #about {background:url(../images/sm/download.png) no-repeat;} #about1 {background:url(../images/sm/download.png) no-repeat;} #about2 {background:url(../images/sm/email.png) no-repeat;} #about3 {background:url(../images/sm/download.png) no-repeat;} #about4 {background:url(../images/sm/email.png) no-repeat;} #meettheteam1 {background:url(../images/carlosbutton.png) no-repeat;} #meettheteam2{background:url(../images/brettbutton.png) no-repeat;} #meettheteam3 {background:url(../images/marktbutton.png) no-repeat;} #meettheteam4 {background:url(../images/marksbutton.png) no-repeat;} #nav a:hover {background-position:0 -0% } #nav a:active {background-position:0 -0% } Here's my hypothetical scenario... I have an image map (1000px by 1000px) divided into smaller squares (lets say ten images horizontally by ten images vertically, adding up to one hundred images all together), each linked to a corresponding HTML information file. Now, when talking about download speeds, would it be more efficient for me to use one big image as a map, or should I use one hundred smaller, individual images, each as a link? I don't have anything that would allow me to reliably test the download speeds of both variations, and my site won't be up on the Internet until it is finished (or somewhere close to it). Hi, My website, when viewed on my blackberry, is coming out all wrong - assume it is because of the smaller screen size on a phone. However, when I downloaded the initial template (which I have made a lot of html and css changes to), the mod-slide didn't flow down the page as it does now. Please could anyone help. The website is www.auxus.co.uk Thanks, Ishveen so i'm working on my new site and everything seemed to be working find until i got to the 8th image since the image is wide instead of a scroll arrow appearing to scroll the page over, the image just collapses below my other divs to fit. can anyone help me fix this? thanks in advance guys this is the website http://www.paulodourado.com/x_milk.html and this is the page where I encounter problems http://www.paulodourado.com/thrice.html I am trying to move my title text further to the right. However, when I do (by adding more  , the title breaks into another line instead of moving further to the right. I have tried manipulating the margin px, but it isnt changing. I am not familiar with manipulating floating text. How do I accomplish this? Here is my current code: <td align="center" valign="top"><table width="655" border="0" cellspacing="0" cellpadding="0"> <div style="background:url(/offices.jpg);margin:0;"><br/><br/><span style="float:right;margin:0px 150px 198px 0px;"><font type="Arial Narrow" size="5"><b> &nbs p; &n bsp; <font color="#4E4848">My title</font></b></font> </span> Hi, I am using Dreamweaver CS3 to create a site, by default i have learnt that when you use an image as a link to another page, dreamweaver creates a coloured border around your linked image. I have since been able to get rid of this border by adding border="0" into my img tag however this now has caused my rollover not to work before clicking on the image to take you to the linked page. this is my code; any ideas how i can fix this? <td colspan="4"> <a href="About Us.html"><img src="images/About_Off.jpg" border="0" alt="About Us" name="Aboutus" width="120" height="64" id="Aboutus" onMouseOver="MM_swapImage('Image2','','images/About_On.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td colspan="6"> Any help would be greatly appreciated. Friends I am new to HTML, I have created a page, but when I view it on 00*600 it looks fine as I designed. But When resolution is increased, it shows right side empty. What should I do ????????? Well, my website is almost complete now, but its still not "wide" enough to extend all the way to the scroll bar on IE. Can anyone explain if there is an HTML code for this? or how to fix this on Dreamweaver? Hi. I'm just wondering what standart screen resolution i stheese days? Doen anybody still use 800x600, or is it alright to build a website for 1024x768? If so, is there any "design resolution" to prevent scrollbars in the most usen browsers? (What i mean is what resolution to give for example a flash site) Parashurama Hello everyone... I'm building a website http://newgroundsaward.webs.com/index.html The problem is that... when ever you minimize the window... the tables shrink. It can only be viewed in 1400x900 resolution. Is there a way to lock the aspect or something. Here's the link to my style sheet... Any help appreciated. Thank You. http://newgroundsaward.webs.com/styles.css Hi, I created a simple test webpage and publish it online. But when I used my friend's PC with his 19 inch screen, my webpage looked different from when I created it. I heard that it because of the resolution. I need help on how I can make my webpage compatible with all kinds resolutions. Please help as I am a newbie in creating webpage. Thank you so much. Hi, I am working on some JSP pages . My Desktop system has 1440*900 resolution. The output generated in this resolution is perfect. But when i switch to 1280*600 or 800*600 it gives me floated output . Why it so? Is there any solution? I am also using css file to render output Aloha! I have created my site with a resolution of 1280 x 800. Now I understand a bit more about resolution. In order to create my site with a lower resolution, do I merely change my computer's resolution by going to the control panel, and then composing my entire site again? What is the best resolution in which to create it? I also have a question about encoding. When one save's the html. document, how does one know which of the options in which to save it? Thank you for your help. Hello everyone! I just finished making a website and found some browser problems, which I sort of fixed. Now I found some problems with the different resolutions. Does anyone know some tips or suggestions that can help me fix that? (p.s My website is at webh3lp.comuf.com) |