HTML - Whitespace Problem
I'm not sure if this is the correct forum, so please direct me if I'm in the wrong place.
I get the following error message when starting my website: Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///C:/Users/aa/Documents/Visual Studio 20... for(loop = 0; loop < images_array.length; loop++) -----------------------^ Here's my code upto this function: <html> <head> <title>Company</title> <script language="javascript"> arImageList = new Array (); arSubImageList = new Array (); function preLoadCatImages(images_array) { for(loop = 0; loop < images_array.length; loop++) { arImageList[loop] = new Image(); arImageList[loop].src = images_array[loop]; } } Similar TutorialsThere is whitespace that shows up at the bottom of my web page and I'm not sure how to get rid of it. This happens in Safari and FF, but not IE. See, I have a little menu at the bottom of the page where there's a top border and bottom border to it with a couple graphics I whipped up. Underneath the bottom border there becomes whitespace <> IE. There are no blank characters or carriage returns or anything in the code. Idk... Hi, just starting out getting to know html, and I am trying to get around whitespace. I wish to create a tab (whitespace) and I cant seem to find the command/code for it. Is there a good page/site that can give me an overview and explanation of html code? thanks in advance Robenson frames and tables suck.... but i'm using them anyway. i want to show the menu that's on every page of the site in a frameset with another page. here's the frames page: http://lotpatrol.com/dictionary/index.php how do i get the white space to disappear from around menu.html? i've tried everything i could find on the interweb and still no luck. Is there a way to eliminate whitespace between two elements. Here is a really simple example, where I want to eliminate the whitespace between two header elements. <h1> Hello, world </h1> <h2> yo, adrian! </h2> ...real estate is at a premium on the pages I'm working on, and I can't figure out how to get ride of this whitespace. I've tried css, where padding: 0px for the individual elements, as well as css for an encompassing div where padding: 0px but it doesn't work. Am I a nub or what!? Hi everyone, I've got a div setup, used for navigation, like so: HTML Code: <div class="container"> <div class="item">Home</div> <div class="item">Link 1</div> <div class="item">Link 2</div> <div class="item">Link 3</div> <div class="item">Link 4</div> <div class="item">Link 5</div> <div class="item">Link 6</div> <div class="whitespace">Fill Whitespace</div> </div> The container div is 800px, but the links only come to 700px, roughly. I want to fill the remaining space, because each item has a border, other than the selected one, and i want the border to touch the side of the container. I've tried Code: .whitespace { width: 100% } and this does work partially, but the div finishes just short of the edge of the container. I've entered text into the whitespace container, which has stretched it to the edge of the container, so i know theres nothing getting in the way. Any ideas how i can get the whitespace div to fill up the remaining space in the container div? Thanks Matthew Millar I made a flash dropdown menu, but it's creating whitespace that i dont' want. How do I make it so that it just overlaps whatever is under it? Look at: http://realcrazyestate.com/ So in FF there always seems to be this little bit of white space below the flash video... and only in FF, I can't figure out why it is there... Any ideas, specifically on how to get rid of it? Thanks! Hey guys, I have wrote a scrolling news feed that pauses when you mouse over the scrolling elements inside. Here is a simple example of the problem that I'm having: Code: <html> <head> <script type='text/javascript'> function check(id){ alert(id); } </script> <style type='text/css'> div{ position:relative; } </style> </head> <body> <div id='master' style='border:1px solid black; width:60px;' onMouseOut='check(this.id)'> <div id='div1' class='menuDiv'>Div1</div><div id='div2' class='menuDiv'>Div2</div> </div> </body> </html> When you roll your mouse in between the two divs inside the border, you get a onMouseOut event from the master holder div. Is there any way to jam both of those divs together so you don't get that event when you mouse over them?? Thanks for any help!!! I'm having difficulties with white space in <select> boxes. A simplified example is below; Code: <select> <option>testing (1-2-3)</option> </select> I would like this to appear with the full white space - but instead it trims to 'testing (1-2-3)' in the select box. Anyone any ideas how to make the select box render and return the option including the white space? Attention all HTML lovers, geeks and essentially anyone who can relieve me of my burden... for you will surely be blessed. Check out this site: equinat-usa.com For whatever the reason, and one clearly above and beyond my HTML ability to see... the page images should be at the very top on both sides. BUT NO!! There is a bit 'o white space at the top. What's up with that? At first, everything was fine... until one day the mysterious white space appeared. DTM *anxiously awaiting your reply* I've created a sample website here and cannot figure out where the whitespace between images is coming from! It doesn't appear in Dreamweaver, but does in both Firefox and IE6. I've tried editing the border, padding and spacing properties of the table, rows and images to no avail. I've also tried to change these properties in CSS with no results. Any ideas? Josh I'm running into IE 6 and 7 problems with the bug "Extra Whitespace in List Link Bug". I have applied the suggested Adobe fixes and some others found on-line but they don't seem to work. The problem is occurring in the two drop down menus in the top navigation. I also noticed some extra space at the top, above the content and the top of the browser window. These are only visible in IE 7 or lower. The site with the bug can be found at: http://www.infusiongraphics.com/UCOg...ite/index.html and css at http://www.infusiongraphics.com/UCOg...erontology.css What are your thoughts? I would like to have an image that takes 2 url like the following image... is it possible? if so, can someone please tell me how this could be done? Thank you very much.. NOTE: I tried doing this... <map name= 'url1' > <area shape= 'poly' coords= ' 0 , 0 , 50 , 0 , 0 , 50 ' href= 'url1.html' > </map> <a href= 'url2.html' > <img src= 'img.jpg' width= 50 height= 50 usemap= '#url1' > </a> but this only get 'url1' woring... Okay, I know that this problem is going to be really really easy, but I forgot how to do it. I use to own an older website and forgot the code. Anyways, I only know how to describe it. When I minimize the screen, it is minimizing the whole thing and collapsing it making the iframes smaller and the text fit into a smaller space. Most websites have a code (i don't know what it is) so that when someone minimizes their browser, it just makes the browser smaller and not the actual page. Here's what it looks like: http://www.freewebs.com/noeylani94/index.htm Try minimizing that and see how it looks. It collapses the whole page right? Can someone tell me the code how to fix it? Thanks =D Hello people. having a problem with my website in IE 6.0. http://sw11.it/devdev/ it puts a blue bar accross the header? Please can somebody help! Thanks Hi Could some one please have a look at the code for this site for me as it displays perfectly in IE6/7 but is so far off the mark in firefox, not tried any others. http://www.scottishconsumercredit.com/_dev_colin I can't see where I am going wrong thanks I"m haveing a problem with my page, there is a gap where I don't want one to be, here is my code, I don't know if it is the css or html. the gap is between the leftBar and the content. I"ve used *html with the height:1px before, for the sideMenu, but I don't know if the same trick would apply for width. index.php: HTML Code: <?php session_start(); ?> <!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>WootWoot</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body><center> <div id="wrapper"> <div id="header"> </div> <div id="mainnav"> <ul id="mainMenu"> <div id="spacer"> </div> <li><a href="index.php">Home</a></li> <li> <?php if(isset($_SESSION['validUser'])){ echo '<a href="logout.php">Log Out</a></li>'; } else if(!isset($_SESSION['validUser'])){ echo '<a href="login.php">Log In</a></li>'; } ?> <li><a href="profile.php">Profile</a></li> <li><a href="daily.php">Daily</a></li> <li><a href="search.php">Search</a></li> </ul> </div> <div id="leftbar"> <ul id="sideMenu"> <li><a href="shorts.php">Submit a short story</a></li> <li><a href="popular.php?select=today">View popular works from today</a></li> <li><a href="popular.php?select=week">View popular works from last week</a></li> <li><a href="popular.php?select=tmonth">View popular works from this month</a></li> <li><a href="popular.php?select=lmonth">View popular works from last month</a></li> </ul> </div> <div id="content"> Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. Main content here.Main content here.Main content here.Main content here.Main content here. </div> </div> </center></body> </html> style.css: Code: /* Page Layout */ body { text-align:center; background-color:Silver; } #wrapper { width:901px; background-image:url(Images/sidebar_1.jpg); background-repeat:repeat-y; } #header { height:120px; width:900px; background-color:Black; float:none; color:Black; } #mainnav { height:20px; background-image:url(Images/bg_2.jpg); background-repeat:repeat-x; background-position:bottom left; } #spacer { float:left; width:160px; } #leftbar { float:left; width:160px; color:Black; background-image:none; } #content { margin-left:160px; color:Black; padding:5px; background-color:Gray; min-height:30em; } /* Navigation */ ul#mainMenu { list-style-type:none; padding:0px 35px 0px 10px; margin:160px; display:inline; } ul#mainMenu li { text-align:left; float:left; } ul#mainMenu a:link, ul#mainMenu a:visited { background-image:url(Images/bg_2.jpg); background-repeat:repeat-x; background-position:bottom left; padding:0px 35px 0px 10px; border-right:solid 1px gray; text-decoration:none; font-family:Arial Verdana Sans-Serif; text-align:left; text-transform:uppercase; font-size:1em; color:Black; font-weight:bold; display:inline; } ul#mainMenu a:hover { background:url(Images/bg_3.jpg) repeat-x top left; text-decoration:none; font-family:Arial Verdana Sans-Serif; text-align:left; text-transform:uppercase; font-size:1em; color:Black; display:inline; } ul#sideMenu { margin:0; padding:0; list-style:none; width:160px; } ul#sideMenu li { display:inline; } *html #sideMenu a { height:1px; } ul#sideMenu a:link, ul#sideMenu a:visited { background:url(Images/sidebar_1.jpg); background-repeat:repeat-y; border-bottom:1px solid gray; padding:15px 10px 15px 10px; text-decoration:none; font-family:Times Verdana Sans-Serif; text-align:Center; text-transform:uppercase; font-size:.8em; color:Black; font-weight:bold; display:block; } ul#sideMenu a:hover { background:url(Images/sidebar_2.jpg) repeat-y; text-decoration:none; font-family:Arial Verdana Sans-Serif; text-align:Center; text-transform:uppercase; font-size:.8em; color:Black; font-weight:bold; display:block; } heres the problem the pages http://wax-bar.ca/about/index.html and http://wax-bar.ca/contact/index.html wont work in internet explorer. The rest of the website works just those two pages dont work. I would reallly appreciate any help you can provide. thanks in advance! Hi all ; I want to have one button in the left side of the div and one in the right side how can I do that . I tried align command but it always aligns in one side . Anyone can help . EX : in the header of this site html forums logo is in the left side and the google adwords are in the right side ... Hi ppl I have developed a login page which validates the values from the database. When i log out...the login screen is displayed again.. but if I press Back button in the explorer, the previous logged in page is displayed again.. How do i avoid this problem? |