HTML - Firefox Headache
I have a problem with the space between the navigation bar's buttons and the image above them.
More exactly, I didn't write my buttons like that: HTML Code: <img src="..." /><img src="..." /><img src="..." /> But like that: HTML Code: <img src="..." /> <img src="..." /> <img src="..." /> So the images got spaces between them. To get rid of the spaces, I used a CSS like this: Code: img { margin: -2px; } It looks perfect in both Chrome and Safari, but in Firefox and Opera, there is the small gap that I talked about (a 1px distance between the navigation bar and the image above it). Click here to go to the HTML page. Click here to go to the CSS stylesheet. (I also use this one for CSS reset and this one for styling the embedded Tumblr blog.) And if you want to see the exact problem... This is how it looks in Chrome: And this is how it looks in Firefox (1px space just above buttons, and also 1px between the buttons "Mediere" and "Activitate"): Thank you very much, and have a great day! Similar TutorialsI find that the use of z-index depands a lot on other functions you use/or not. ANyways, it has failed me yet again, cant seem to figure out why.. the thing is ive re-written the page withou using the position: tag.. its awesome, just the z-index crap. The picture which isnt complying is the wit-vak-pilates png : HTML Code: .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; color: #000000; } .style2 {font-family: Verdana, Arial, Helvetica, sans-serif} .style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; } .style6 {font-size: 14px} .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; } a:link {color: #000000;} a:visited{color:#009;} a:hover {color: #000000;} .ROOD {color:#F00} .style10 {color: #FFFFFF} .style14 {font-family:"verdana"; font-size: 13px; color: #000000; text-align:center; } #BOX{ width: 360px; height:302px; background-color: #ffffff; border: 2px double #333; padding: 15px; font-family:'verdana'; font-size:14px; z-index:2; margin-left: auto; margin-right: auto; } div.row { clear: both; padding-top: 5px; } div.row span.label { float: left; width: 100px; text-align: right; } div.row span.formw { float: right; width: 235px; text-align: left; } div.spacer { clear: both; } #wit-vak-pilates { margin-top:-186px; margin-right: auto; margin-left:auto; z-index:-1; } #CR { text-align:center; z-index:3; margin-top:149px; margin-left:5px; } #back{ width:16px; height:16px; background-image:url(pics/back.png); background-repeat:no-repeat; z-index:2; margin-top:0px; margin-left:-32px; } #back:hover { background-position:0 -16px; z-index:2; } Hello All! I don't have access to any kind of server side scripting. The file I am making has to be able to run on a desktop other than the scripting for the search functions. I have a few sites that I am incorporating their search function into the HTML doc. It's a time saver but I am only having 1 hiccup. The design. I was not aware on how to incorporate into a radio button and/or drop down to search each site separately. Some of them require hidden fields that make this a challenge anyhow. I'm not sure how to design the page in order to make this work fluently. I currently have a top frame with the navigation bar and the bottom frame as the main window. When a user clicks the link, it will load another top frame doc with the nav bar and a search window for that site clicked on. So when the user types in the information, it submits it to the site and shows the results on the main frame. If they click another link, it displays a search box for that site, and same thing. However, I was wondering if there was a cleaner way of doing this? I am really interested in keeping a navigation bar but it looks cluttered with a search bar. I'm having to create a separate page for each search bar and add the navigation bar to each one. Then if something changes with the nav bar, I have to go back and fix each page. I'd really be happy to only need one nav bar. My goal would be to figure a way to keep a navigation bar, clean up the page, and keep each search function handy. I could create a 3rd frame but I think it would feel more cluttered. Here is the menu bar. Of course, this is just an example. "Form" is name of top frame. Code: <ul class="menu"> <li><a href="choose.htm" class="active"><Span>Home</span></a></li> <li><a href="Tool.htm" target="form" onClick="top.body.location='www.example.com/sitewheresearchislocated';"><Span> etc.... </ul> And here is the frame page. Code: <frameset rows="80, 1*"> <frame frameborder=0 scrolling="no" noresize="noresize" src="choose.htm" name="form" framespacing="0" border="0"> <frame frameborder=0 noresize="noresize" src="main.htm" name="body" framespacing="0" border="0"> </frameset> Hi all, Could someone please take a look at this website: http://www.jameslusbymusic.com/ and tell me how to sort out the main content of the home page? The problem is that the <div id="right"> "News" content is before the <div id="left"> in the html file so it is pushing the left bit down lower than the news bit if that makes sense. This only seems to happen on some browsers and doesn't affect my Firefox. The problem is, no matter what I do to it I can't get it all to line up properly if I move it! Before I can tidy up the rest of the page I really need to get this sorted. So any help greatly appreciated. Many thanks. Hello, I am pretty new to the whole html world so forgive me if this is a simple problem. I have look all over for a post explaing this problem but i haven't found anything. I am making a site for a friend using Dreamweaver. I know i know, i regret not coding it from scratch but its too late now. Anyways I have a pretty good page layout going now but I have ran into a problem with loading my images. On my home page an image in a table nested inside another table will load when viewing in safari but seems to disappear in firefox. What is going on? Its a pretty simple piece of code. I place; <img src="Pictures/RDV couplepalm.jpg" width="200" height="" style="float:right; padding: 8px; margin-left:10px; margin-bottom: 10px" / inside of a paragraph in a row of a table. I have rewritten the code for this image, copied it from a working image and screwed around with the table heights (although I wasn't too sure what i was doing). What else should I try? I have attached screen shots of the site in both browsers a copy of the problem jpeg aswell as a copy of the html. Any information anyone could givee me would be REALLY appreciated! Thank you. ive been building a site with internet explorer, looks good. once i open in firefox everything is out of place and scattered everywhere. why would this be. also ive noticed with most sites you can change the size of the window and the website wont change, only the window. but with the site im building, once i change window size everything gets out of place and ordered. why? hi to all members. i have this code Code: <div id="header_menu"><img alt="" src="images/m_left.jpg" /><a href="http://www.ghesi.com/despre-noi.php"><img alt="" src="images/23232m4.jpg" /></a><a href="http://www.ghesi.com/check.php"><img alt="" src="images/m2.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/hosting.php?spt=1"><img alt="" src="images/m3.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/hosting.php?pt=r"><img alt="" src="images/m4.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/contact.php"><img alt="" src="images/contact.jpg" /></a><img src="images/m_right.jpg" alt="" width="8" /><img src="images/rohelp.jpg"><img src="images/aw.jpg"></div> <!-- content --> <div class="top_indent bgr"></div> <div class="bgr site_width"> <!--left_box--> <div class="separate"><img alt="" src="images/spacer.gif" width="1" height="540" /></div> <a href="images/legal.jpg"><img src="images/legal1.jpg" alt="Legal" align="right" style="margin-right:10px" border="0"></a> Ghesi.com este un serviciu oferit de Total Domination S.R.L.<br> <br>Total Domination S.R.L are sediul in Alba-Iulia, Bulevardul Republici Nr. 26 si este inregistrata la Registrul Comertului cu numarul J01/986/2007 si codul fiscal 22198660 din 01/08/2007 avand activitatea incadrata in clasa CAEM 7230 Prelucrarea informatica a datelor.<br><br> Serviciile oferite de Ghesi.com sunt specializate in acordarea de asistenta pentru partenerii si clientii sai, prin identificarea de noi oportunitati de piata si prin cresterea valorii produse de activitatile conexe, ajutandu-i sa se concentreze asupra activitatii de baza. <br><br> Dezvoltam 3 tipuri de activitati interconectate: servicii gazduire pentru clienti si reselleri pentru parteneri, inregistrari domenii pentru clinerti si reseller de domenii pentru parteneri, servere dedicate. Suntem furnizori de servicii de gazduire web pentru mediile Internet si IT. <br><br><strong>Date legale:</strong><br><br>Total Domination SRL<br><br>Cod Unic de Inregistra 22198660<br><br>Nr de Inregistrare la Registrul Comertului: J01/986/2007<br><br>Sediu Administrativ: B-dul Republicii Nr. 26 <br><br>Sediu Social: B-dul Republicii Nr. 26, 510199 Alba-Iulia <br><br><strong>Informatii Bancare :</strong><br><br><u>Banca: Banca Transilvania - Sucursala Alba-Iulia (str. Motilor nr.2-4)</u><br><br>Cont RON: RO75BTRL00101202F13299XX<br><br>Cont EUR: RO50BTRL00104202F13299XX<br><br>Cod SWIFT: BTRLRO22ABA<br><br><u>Banca: BRD-Groupe Societe Generale, Alba-Iulia</u><br><br> Cont RON: RO03BRDE010SV13090310100</td></tr> <div class="separate_1"><img alt="" src="images/spacer.gif" width="1" height="1" /></div> <div class="clear"></div> </div> <div class="button_indent bgr"></div> and the output in firefox is this, this is what i'm locking for but in Internet Explorer the output is this i want the site in IE to have the same look as in firefox. this is the image <img src="images/legal1.jpg" alt="Legal" align="right" style="margin-right:10px" border="0"> who can tell me what is my mistake, in not a guru in html I am new to design but can already tell that a majority of my time is spent on tinkering with my pages to make them appear correctly in the very picky and buggy IE7 while my pages appear just fine in Firefox. I am wondering if anyone knows of a good resource site that lays out tips on how to get around the tricky parts of how IE7 displays pages. Hello all out there in the web world. I'm working on a floral site http://gellingsfloraldesign.com/. Site isn't completely done (specifically the products page). I have validated most of site but there are two things: 1. I'm having issues in FireFox (I think it may have something to do with the left menu repeating but have tried everything I can think of to fix.) 2. I cannot get pages that contain floral images to validate (the image URL is from my main company). For example: http://s7d2.scene7.com/is/image/Tele...ayer=2&opac=55 I checked in Opera, Safari, IE 7 and 8 and things seem to be ok. Thank you, Andrew Usually when Firefox and IE differ, firefox is correct. It may still be the case here as well, but I think I prefer how it looks in IE. I have a header next to an image, and the header appears next to the image in IE and under it in Firefox. Code below, any help would be great! <div id="content"><div class="img-shadow"><div id="logo"><a href="index.html"><img src="images/about.jpg" alt="Logo" width="180" height="226" border="0" /></a></div> </div> <div class="tagline"> <h1> </h1> <h1>About the Collection</h1> </div> <br class="clearboth" /> <p class="style1"> and the CSS: #content p { margin: 1em 2em 2em 0; line-height: 1.5em; This code works fine in IE, but in Firefox only the first style is honored, and only the first JavaScript function will run (the other doesn't do anything in Firefox). I've tried the code both with and without semicolons after the }'s and it makes no difference. The idea of the code is to expand and collapse various sections of a document. The "Expand All" and "Collapse All' links call a script to expand/collapse every section at once. The section names are correct. Again, this code works in IE but I can't figure out why Firefox doesn't like it, and why Firefox ignores the styles I've set, such as red for the word "hide". Thanks The font-family style is honored, the rest is not. The sizeTbl function works, the ExpandCollapse function does not (in Firefox, both work in IE) <style> body {font-family:Arial, Helvetica, sans-serif}; a:hover {text-decoration:underline}; .hide {color:#FF0000; text-indent:40px}; .collapse {color:#0000FF}; </style> <!-- Script takes two parameters, h (how to display) and n (element to display --> <script type="text/javascript"> function sizeTbl(h,n) { var tbl = document.getElementById(n); tbl.style.display = h; }; function ExpandCollapse(x) { accts.style.display = x; charity.style.display = x; bargaining.style.display = x; hr.style.display = x; media.style.display = x; payroll.style.display = x; safety.style.display = x; security.style.display = x; }; </script> <img src="images/heading.png" alt="Section Forms"/> <p>Click on a category to show forms in that category.<br /> <a href="javascript:ExpandCollapse('block')"><span class="collapse">Expand All</span></a> <a href="javascript:ExpandCollapse('none')"><span class="collapse">Collapse All</span></a> </p> Hey everyone, I'm having a problem with how text is being aligned inside a table, which is how I want in firefox, but of course it's different in IE. The site is http://www.mycomputerfox.com/new/aboutus.html. The problem is the text to the right of the slideshow should be aligned middle center, but it's not in IE. The html is: 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>ComputerFox</title> <link href="design/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="frame"> <div id="header"> <center> <img src="design/computerfoxbanner.jpg"> </center> </div> <div id="menu"> <center> <A HREF="index.html" onmouseover="document.home.src='design/buttons/home1.gif'" onmouseout="document.home.src='design/buttons/home.gif'"><img name="home" src="design/buttons/home.gif"></a><A HREF="aboutus.html" onmouseover="document.aboutus.src='design/buttons/aboutus1.gif'" onmouseout="document.aboutus.src='design/buttons/aboutus.gif'"><img name="aboutus" src="design/buttons/aboutus.gif"></a><A HREF="news.html" onmouseover="document.news.src='design/buttons/news1.gif'" onmouseout="document.news.src='design/buttons/news.gif'"><img name="news" src="design/buttons/news.gif"></a><A HREF="services.html" onmouseover="document.services.src='design/buttons/services1.gif'" onmouseout="document.services.src='design/buttons/services.gif'"><img name="services" src="design/buttons/services.gif"></a><A HREF="datarecovery.html" onmouseover="document.datarecovery.src='design/buttons/datarecovery1.gif'" onmouseout="document.datarecovery.src='design/buttons/datarecovery.gif'"><img name="datarecovery" src="design/buttons/datarecovery.gif"></a><A HREF="servicecontracts.html" onmouseover="document.servicecontracts.src='design/buttons/servicecontracts1.gif'" onmouseout="document.servicecontracts.src='design/buttons/servicecontracts.gif'"><img name="servicecontracts" src="design/buttons/servicecontracts.gif"></a><A HREF="locateastore.html" onmouseover="document.locatestore.src='design/buttons/locateastore1.gif'" onmouseout="document.locatestore.src='design/buttons/locateastore.gif'"><img name="locatestore" src="design/buttons/locateastore.gif"></a><A HREF="contactus.html" onmouseover="document.contactus.src='design/buttons/contactus1.gif'" onmouseout="document.contactus.src='design/buttons/contactus.gif'"><img name="contactus" src="design/buttons/contactus.gif"></a> </center> </div> <div id="content"> <table width="100%"> <tr> <td class="noh"><script language="JavaScript1.1"> <!-- //Pixelating Image slideshow //Copyright Dynamic Drive 2001 //Visit http://www.dynamicdrive.com for this script //specify interval between slide (in mili seconds) var slidespeed=5000 //specify images var slideimages=new Array("design/slide/photo1.jpg","design/slide/photo2.jpg","design/slide/photo3.jpg","design/slide/photo4.jpg","design/slide/photo5.jpg","design/slide/photo6.jpg","design/slide/photo7.jpg") //specify corresponding links var slidelinks=new Array("http://www.rfrank118.com/tv.htm","http://rfrank118.com/Kids.htm","http://www.rfrank118.com/agenda.htm","http://www.ronpaultv.blogspot.com","http://www.infowars.com/stream.pls","http://www.amann2010.com","http://www.rfrank118.com/Brochure.htm") var imageholder=new Array() var ie55=window.createPopup for (i=0;i<slideimages.length;i++){ imageholder[i]=new Image() imageholder[i].src=slideimages[i] } function gotoshow(){ window.location=slidelinks[whichlink] } //--> </script><a href="javascript:gotoshow()"><img src="photo1.jpg" name="slide" border="0" style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1); text-align:left;" align="absbottom" width="450" height="200"></a> <script language="JavaScript1.1"> <!-- var whichlink=0 var whichimage=0 var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0 function slideit(){ if (!document.images) return if (ie55) document.images.slide.filters[0].apply() document.images.slide.src=imageholder[whichimage].src if (ie55) document.images.slide.filters[0].play() whichlink=whichimage whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0 setTimeout("slideit()",slidespeed+pixeldelay) } slideit() //--> </script></td> <td align="center" valign="middle" class="noh" width="345px"><h3>About Us</h3></td> </tr> <tr> <td class="noh" colspan="2"><p style="color: #000000;">The Computerfox has two locations that service all of Fairfield County and one location that services the Milford New Haven Area. Unlike many of our competitors we have three separate commercial locations.<br><br> We make no qualms about working late, starting early, and providing you with an emergency Cell phone number. Our ultimate goal is to make every customer feel like our service is the best there is.<br><br> Our employees are not "Nerds" or "Geeks" but rather professionally trained people who will set aside their personal agenda to help a customer in a crisis. The ComputerFox also provides a customer service line to resolve any potential concerns you may have. Click on the "contact us" link for a phone number.<br><br> We realize there is a lot of competition in our field and customers can be afraid of trying a new company. For this reason we would like like to thank you in advance for considering us as your provider, and as token of our sincerity you may print or mention the coupon below for a "no obligation" "Risk Free" visit.</p> <br> <center><img style="border-style:dotted;" src="design/tagcoupon.jpg"></center></td> </tr> </table> </div> <div id="footer"> <center> <img src="design/buttons/filler.gif"><A HREF="preowned.html" onmouseover="document.preowned.src='design/buttons/preowned1.gif'" onmouseout="document.preowned.src='design/buttons/preowned.gif'"><img name="preowned" src="design/buttons/preowned.gif"></a><img src="design/buttons/seperator.gif"><A HREF="aboutus.html" onmouseover="document.homemovies.src='design/buttons/homemovies1.gif'" onmouseout="document.homemovies.src='design/buttons/homemovies.gif'"><img name="homemovies" src="design/buttons/homemovies.gif"></a><img src="design/buttons/filler.gif"> </center> </div> </div> </body> </html> The css is: Code: @charset "utf-8"; /* CSS Document */ body { font-family: Arial, Helvetica, sans-serif; color: #000000; background-color: #E97F19; } #frame { width: 800px; height: auto; margin-left: auto; margin-right: auto; border: thin double #000000; } #header { width: 800px; height: auto; padding-top: 5px; } #menu { width: 800px; height: auto; margin-top: 10px; } #content { width: 780px; height: auto; margin-top: 10px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; background-color: #FF9933; } #footer { width: 800px; height: auto; padding-bottom: 10px; padding-top: 10px; } p { padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; } h1, h2, h3, h4, h5 { color: #FFFFFF; padding: 5px 0px 5px 0px; margin: 0px 0px 0px 0px; } img { border: none; } a:link { color: #FFFFFF; } a:visited { color: #FFFFFF; } a:active { color: #FF6600; } a:hover { color: #FF0000; font-weight: bold; } .noh { padding-top: 5px; } li.down { padding-bottom: 5px; } h4.table { padding: 0px 0px 0px 0px; } Any help would be great. Thanks! I have a page he http://www.bestsellersworld.com/contest-mothersday.htm In IE, it looks fine. In Firefox I cannot see the names of the five books at the right. This is done with a script but it shows on IE. What do I have to do to make everything show on Firefox? Hey Everyone, Brand new to the website and need a little bit of help. I have been working on designing a page for my company through a template which is linked to a cyberstore. I was viewing and testing it in IE...but when we switched to Mozilla firefox it is extremely messed up. The logo has shifted completely. Is there any code that will format the logo to stay in the same place when viewed in both browsers? I am also having a hard time with Mozilla firefox reconizing the roll over states that IE is recongnizing(Thats in the CSS). Any help would be appreciated. -Amanda I have recently designed a website on Google Chrome...And after finishing it and opening it on Firefox and IE, I was surprised by the strange look of my site...The widths and tops and everything of CSS of boxes I did look completely different...I tried to add DOCTYPE and stuff like that and still it makes no sense but makes the same issue with Google Chrome too and when erasing it..The site runs on google chrome properly but not in IE and Firefox...Please help me fixing this problem... My site: http://islamdiaa.selfip.com/ It has been brought to my attention by my customer, whos website I designed, looks different in FireFox. What I have noticed is his google adsence is shifted all the way to the right, which pushes everything below it down. I have it in the table set to align left, but firefox seems to ignore this... any ideas? the site is http://www.tegbs.com Hello, im pretty much a newbie and ive been asked to create a website for my friend's small company, anywho, i've been using dreamweaver, the site is as follows. http://www.spire-guild.com/pw/index2.html Perfectly aligned on firefox but has some huge cap on the right side where you open it on I.E Can anyone help me as i really don't know what im doing. Cheers. I don't know what should I do. Google doesn't help me. When I try to embed wmv video to document it's not shown in Firefox but is shown in other browsers (Chrome, IE7/8, Opera). Why? Code he HTML Code: <object ID="Player" width="330" height="310" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <param name="autoStart" value="True"> <param name="uiMode" value="full"> <param name="volume" value="100"> <param name="mute" value="false"> <param name="URL" value="video.wmv"> <embed src="video.wmv" width="330" height="310" autoStart="True" uiMode="full" volume="100" mute="false"></embed> </object> Please help me... I am (slowly) moving away from tables for page lay-out and I have recently left frames and replaced recurring "pages" (like menus and headers) with asp includes (so that one menu can be used on multiple pages). I am using BonRouge's tutorial as well as others. Here is my question: What type of "browser" is the MSN browser and the AOL browser. Even if something renders well in ie6, ie7, and firefox at different screen sizes and resolutions there is still no guarantee that you will have that same consistency in MSN or AOL. Any help here? Hi all, My website looks awful when you use the Firefox Browser, but if you use the IE Tab then things are all okay. Is there any code I can place in the html that would force the use of the IE tab in Firefox if installed by the browser, and if not, display a message like "This website requires the IE Tab for Firefox". Thanks in advance. McB |