CSS - Firefox Issues: Header And Menus Dissapear And No Scrolling??
Hello. Im new to the forums and Im hoping someone would be able to help me and I hope Im posting in the correct forum. I recently redesigned my site with Adobe Dreamweaver utilizing CSS. Both the HTML and CSS validates. I have tried to search for my problem but havent found it already addressed. I had CSS before but my old software didnt support it as well. Im still learning a lot about the CSS so my problem might be minor, but I just dont have enough knowledge yet to know or to even begin to fix it.
The site appeared fine in IE. I didnt think (stupid I know) to test it in firefox. Recently I did and noticed it did not show the top header, the right menu or did it allow you to scroll down the page. Ive read elsewhere that part of my problem may be due to having this at the top of my page Code: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> but if I remove that, then the site looks the same in IE as it does in Firefox. Here is a link to the index page of my site. I currently have the above line of code in the page so you can see what it is suppose to look like. Please view this in both browsers so you can see what its suppose to look like (IE) and how firefox is displaying it: http://www.herbal-connection.com/index.htm Here is a copy of my css: Code: table.sale { border-collapse: separate; background-color: white; text-align: center; vertical-align: middle; width: 30em; margin-left:auto; margin-right:auto; } img { border-style: none; } body { text-align: center; color: #FFFFFF; background-color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 95%; } .twoColFixRtHdr #container { width: 1043px; margin: 0 auto; border: thin solid #000000; text-align: justify; background-color: #FFFFFF; font-family: Georgia, "Times New Roman", Times, serif; color: #000000; } .twoColFixRtHdr #header { background-image: url(herbalconnectionlogo1.gif); HEIGHT: 82px; background-repeat: no-repeat; overflow: visible; position: fixed; } .twoColFixRtHdr #header h1 { FONT-FAMILY: Georgia, "Times New Roman", Times, serif; COLOR: #004278; font-size: 30px; background-color: transparent; margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 5px; } .twoColFixRtHdr #header H2 { FONT-FAMILY: Georgia, "Times New Roman", Times, serif; COLOR: #006397; background:transparent; vertical-align: top; font-size: 20px; margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 5px; } .twoColFixRtHdr #mainContent { background-color: #FFFFFF; padding-right: 20px; padding-left: 20px; position: fixed; width: 860px; font-family: Georgia, "Times New Roman", Times, serif; font-size: medium; color: #000000; } .twoColFixRtHdr #mainContent h1 { PADDING: 0em; FONT-FAMILY: Georgia, "Times New Roman", Times, serif; FONT-SIZE: x-large; text-align: center; COLOR: #004278; MARGIN: 1em; background-color: #FFFFFF; } .twoColFixRtHdr #mainContent h2 { PADDING: 0em; FONT-FAMILY: Georgia, "Times New Roman", Times, serif; FONT-SIZE: large; text-align: center; COLOR: #004278; MARGIN: .1em; background-color: #FFFFFF; } .twoColFixRtHdr #mainContent h3{ FONT-FAMILY: Georgia, "Times New Roman", Times, serif; COLOR: #004278; font-size:medium; text-align:center; background:transparent; margin-top: .5px; } .twoColFixRtHdr #mainContent h4{ FONT-FAMILY: Georgia, "Times New Roman", Times, serif; color:#B22222; font-size:medium; text-align:center; background:transparent; margin-top: .5px; } .twoColFixRtHdr #mainContent a:link { color: #B22222; font-weight:bold; background-color: #FFFFFF; } .twoColFixRtHdr #mainContent a:visited { color: #B22222; background-color: #FFFFFF; } .twoColFixRtHdr #mainContent a:hover { color: white; background: black; } .twoColFixRtHdr #mainContent a:active { color:#B22222; background-color: #FFFFFF; } .twoColFixRtHdr #sidebar1 { float: right; width: 140px; background-color: #D7DEE4; text-align: center; position: fixed; background-position: top; font-family: Georgia, "Times New Roman", Times, serif; color: #000000; } .fltrt { float: right; margin-left: 8px; width: 0px; } .fltlft { float: left; margin-right: 8px; width: 0px; } .clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px; } .center { text-align: center; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; font-family: Georgia, "Times New Roman", Times, serif; font-size: medium; color: #000000; background-color: #FFFFFF; } .hrule { border-bottom-width: 0.04em; border-bottom-style: solid; border-bottom-color: #000000; padding-top: 0em; padding-bottom: 1em; } I appreciate all input anyone can give, just please dont get to high techy with me as Im still learning. This is my business site and now I see why my sales have declined since probably a lot of people cant see the site properly. Please let me know if you need any other details. Thanks, Pamela Similar TutorialsHi all, I need some help. I have implemented a fixed header on my site, but certain content is scrolling above the header while other is scrolling behind. I would like it all to scroll behind the fixed div's. In the HTML below I use divs contentleft, contentcenter and contentright. Because the text under the Header Contentright is so long I would like to make a scrollbar for the text of contentrigth but withoud the Header contentrigth, so that you alwaus see the header when scrolling the text. Is this possible with these content-codes? This is the HTML I have so far: Code: <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 4"> <title>glish.com : CSS layout techniques : static width and centered</title> <style type="text/css"><!-- #contentcenter { background-color: #eee; float: left; padding: 0px; width: 300px } #contentheader { background-color: #fff } #contentheader h1 { font-size: 14px; margin: 0px; padding: 16px } #contentleft { background-color: #fff; float: left; padding: 0px; width: 175px } #contentright { background-color: #fff; float: left; padding: 0px; width: 175px } #contentright p { font-size: 14px } #toptext { text-align: left; margin-top: 10px; margin-right: auto; margin-left: auto; padding: 0px; width: 650px } body { text-align: center } h1 { font-size: 14px; margin: 0px 10px 10px; padding-top: 10px } p { margin: 0px 10px 10px }--> </style> </head> <body> <div id="toptext"> <div id="contentheader"> <h1><a href="home.asp">Top Text</a>, page with three columns: left, centered, right.</h1> </div> <div id="contentleft"> <h1>Header Contentleft</h1> <p class="greek">This is the left column</p> </div> <div id="contentcenter"> <h1>Header Contentcenter</h1> <p>This is the center column</p> </div> <div id="contentright"> <h1>Header Contentright</h1> <p>This is the right column. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla blaBla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla</p> </div> <p><br clear="all"> <!-- without this little <br /> NS6 and IE5PC do not stretch the toptext div down to encopass the content DIVs --> </div> </body> </html> I have a couple divs using percentage columns. The issue I am having is that when the page is displayed (in IE or FireFox) I am getting the horizontal scrollbar. It scrolls an extra ~15%. I am learning CSS (slowly) so any help would be greatly appreciated. -K html Code: <div id="wrapper"> <div id="content"> <p> text </p> </div> </div> <div id="navigation"> <p>text</p> </div> <div id="extra"> <p>text</p> </div> Code: div#wrapper{float:right;width:100%;margin-right:-33%; display:block;} div#content{ margin-right:33%; border-left:2px solid #FFFFFF; border-left-color:#660000; padding-left:10px; padding-right:10px; } div#navigation{ float:left; width:32.9%; } div#extra{ float:left; clear:left; width:32.9% } p{margin:0 10px 10px} Hi - I'm working on a page with what I think should be a relatively simple CSS layout. Basically, I have a table on the top half of the page (it displays an address book). The table has a <thead> and <tbody>, and the <tbody> is set to overflow: auto, to give me a scrollbar when its contents gets too big. The bottom half of the page uses AJAX to fetch an entry from the address book, and display more details. It too uses overflow: auto to show scroll bars when necessary. Each element is in a <div>, and I used height: 45% (or so) on each to try to make the whole thing fit on one page, so that there is no whole-page vertical scrolling. An example of the code I'm working with can be found at http://kc9ddi.us/ex.html . My design is working nicely in Firefox, but not IE. IE does not seem to do the right thing with the height: attribute in CSS, so their is no scroll bars in the individual parts of the page, like I want. Can anyone offer any advice here? Hey ... having trouble implementing nested menus in FireFox. This is an internal site so unfortunately I can't post a link to it. However, the code is listed below. Relative to the folder the index.html file is in, the css files need to be in a css/ subfolder and the js files need to be in a js/ subfolder. Anyway, the thing works great in IE, but in FireFox I get a weird glitch, where the LIs in the next level down partially render in the upper menu, and don't offset properly when they pop up. Any help would be appreciated. Thanks, Derek Hi fowks, Normally I'm able to solve CSS issues relatively easily, well with some experimentation at least. However, this one has really got me stumped. Basically, I'm developing a menu for a weblication which is based on the famous Suckerfish menus. Everything works ok in IE and Mozilla when in an Left-to-Right (LTR) environment, but it doesn't work quite so well when the direction is flipped to RTL. IE copes fine, but FF doesn't. The menu works itself, but the viewport doubles in size and scrolls off to the right, even though there are no elements there. Anyone got an idea as to what could be doing this? I've included the relevant files for you to trial. Thanks for having a look. Hope you can help. It's driving me nuts. Cheers, John Hi all, I am trying to basically have a centre column of data on my page. Within this centre column, I am trying to place a header and footer. The CSS is working quite well with the exception that the header and footer seem to be shorter than the width of the main column. In other words, there seems to be a margin on the right and left side between the end of the footer/header and main column. I am not sure what is going on as I have made the widths the same. I am sure I am over-seeing something small. I was following the example found http://www.pmob.co.uk/temp/1colcentred.htm Code: html{height:100%;} body { padding:0; margin:0; height:100%; background-color: #98AFC7; color: #000000; } #outer{ min-height:100%; width:800px; background:pink; color: #000000; margin:auto; text-align:left; position:relative; } * html #outer{height:100%} #header { border-top:1px solid #000; border-bottom:1px solid #000; background:blue; left:-1px; width:800px; height:40px; overflow:hidden; color: #000000; z-index:100; //margin-left:6px; //margin-right:6px; } #footer { position:absolute; bottom:0; left:0; background:green; height:40px; border-top:1px solid #000; width:800px; //margin-left:1%; //margin-right:1%; } #clearfooter{clear:both;height:40px;}/*needed to make room for footer*/ <body> <div id="outer"> <div id="header">Header</div> <p>middle</p> <p>middle</p> <div id="clearfooter"></div> <div id="footer">Footer</div> </div> </body> </html> I'm having a problem with this page: http://graffetto.com/news/ Works fine in Firefox, however in IE the browser won't scroll to reveal the rest of the page. code is he Code: #companyNewsButton { position: relative; top: 35px; left: 5px; font-weight: bold; color: #082750; } #newsContent { position: relative; background-image: url(http://graffetto.com/images/newsHeader.gif); background-repeat: no-repeat; width: 573px; top: 50px; left: 10px; margin: 0px; padding: 0px; } #newsArticleList { position: relative; margin: 0px; padding: 5px; top: 65px; left: 0px; background-color: #C8D0D8; border: 1px dashed; border-color: #4B617F; } #regularCopyrightContainer { position: relative; top: 100px; margin: 0px; padding: 0px; text-align: center; width: 592px; color: #4B617F; } anyone have any idea why this is? The page looks fine in firefox, but in any other browser, the header bar -- the gallerybox div -- shifts up by 4px. Any idea why this might be happening? Thanks in advance The page HTML: Code: <!DOCTYPE html> <html> <head> <title>Home :: Secure Technologies International</title> <meta name="description" content="Secure Technologies International (STI) is a leading Canadian IT and Information Security solutions company, representing industry leading hardware, software and network security manufacturers; addressing a wide array of requirements." /> <meta name="keywords" content="secure,technologies,international,inc,home,training,firewall,mcafee,professional,services" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" href="css/themes/SecureTech/main.css" /> <link rel="stylesheet" href="css/themes/SecureTech/menu.css" /> <link href='http://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'> <script src="include/jquery.js" type="text/javascript"></script> <script src="include/s3Slider.js" type="text/javascript"></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- IE HACK FOR SLIDESHOW CENTERING --> <!--[if IE]> <style type="text/css"> #image img { left: 50%; margin-left: -250px; } </style> <![endif]--> <script type="text/javascript" src="include/prototype.js"></script> <script type="text/javascript" src="include/functions.js"></script> <script type="text/javascript"> ( function($) { $(document).ready(function() { $('#s3slider').s3Slider({ timeOut: 4000 }); }); } ) ( jQuery ); </script> </head> <body onload="SetOrigin()"> <div class="contactbox"> Reach us by phone toll free at 1-866-417-3579<br/> Or by email at sales@securetechnologies.ca </div> <div class="container"> <ul class="menu"> <div class="search"> <form method="get" action="searchres.php"> <input type="hidden" name="referpage" value="home" /> <input name="hsearch" value="" onclick="OnSearchClick();" onblur="OnSearchUnclick();" style="margin-top:2px; position: relative; top: -9px; width: 230px;" /> <input type="image" src="images/search-icon.png" height="28px" /> </form> </div> <li><a href="?page=home" class="active"><span>Home</span></a></li> <li><a href="?page=news" ><span>News</span></a></li> <li><a href="?page=partners" ><span>Partners</span></a></li> <li><a href="?page=support" ><span>Support</span></a></li> <li><a href="?page=services" ><span>Professional Services</span></a></li> <li><a href="?page=training" ><span>Training</span></a></li> <li><a href="?page=contact" ><span>Contact Us</span></a></li> <li><a href="?page=about" ><span>About Us</span></a></li> </ul> <div class="ContentMenu"> <a href="http://www.mcafee.com/us/mcafee-labs/threat-intelligence.aspx">McAfee Threat Intelligence</a> | <a href="http://www.trustedsource.org/en/threats/malware_top">Top Malware Today</a> <br/><br/> <div class="ContentMenuSUB"> <b>Next Training Week Starts:</b> 18th of July, 2011<br/> <b>Next Upcoming Event:</b> McAfee and STI Firewall User Group - 13th of July, 2011<br/> </div> </div><div class="gallerybox">Home</div> <div class="content"> <div class="heading"></div> <div class="newsimg" style="background: url(images/thumbnails/th_Dominican-Republic-Flag.png);"></div> <div class="newsitem"> <b>Kevin De Snayer returns from heroic venture to the Dominican Republic</b> posted on the 2011-06-14 at 15:43:20<br/> Source: <i><a href="http://www.youtube.com/watch?v=oHg5SJYRHA0">www.youtube.com</a></i><br/> <div class="eventdesc"></div> </div><br/> <div class="newsimg" style="background: url(images/thumbnails/apple_logo.thumbnail.jpg);"></div> <div class="newsitem"> <b>Top 10 iPhone Passcodes Revealed</b> posted on the 2011-06-14 at 17:30:35<br/> Source: <i><a href="http://www.itnews.com/smartphones/33511/top-10-iphone-passcodes-revealed">www.itnews.com</a></i><br/> <div class="eventdesc"><p> There are 10,000 possible passcodes for an iPhone, yet 15 percent of users have one of the 10 most popular codes, according to app developer <a href="http://amitay.us/index.php">Daniel Amitay</a>, whose <a href="http://amitay.us/projects/big%20brother.php">Big Brother Camera Security app</a> records anonymous passcode data from users.</p> </div> </div><br/> <div id="s3slider"> <ul id="s3sliderContent"> <li class="s3sliderImage"> <img src="images/home/1.png" /> <span>"A next-generation firewall that restores control and protection to your network"<br/> -McAfee Inc.</span> </li> <li class="s3sliderImage"> <img src="images/home/2.png" /> <span>STI Training: Certified McAfee Instructors available for Advanced administration and Support training.</span> </li> <li class="s3sliderImage"> <img src="images/home/3.png" /> <span>STI MASP Program: Certified McAfee Support Specialists waiting to help you 24/7.</span> </li> <div class="clear s3sliderImage"></div> </ul> </div> </div> </div> <div class="footer"> <a href="?page=privacy">Our Privacy Policy</a> | Copyright 2011, Secure Technologies International Inc. <div class="footicons"><a href="http://twitter.com/SecTechOttawa"><img src="images/twitter.png" style="border:none;" alt="twitter" /></a> <a href="news.rss.php"><img src="images/rss.png" style="border:none;" alt="rss" /></a></div> </div> </body> </html> The page CSS: Code: html, body { min-height: 100%; background: #000000 url(../../../images/grad.jpg) top left repeat-x; font-family: 'Arimo', arial, serif; } a:link { color:#3399FF; text-decoration:none; } a:visited { color:#3399FF; text-decoration:none; } a:hover { color:#0066FF; text-decoration:none; } a:active { color:#99CCFF; text-decoration:none; } .container { border-left: 1px solid black; border-right: 1px solid black; margin-left: auto; margin-right: auto; width: 964px; min-height: 100%; background: #FFF; /*-moz-box-shadow: -0px -0px 50px #000; -webkit-box-shadow: -0px -0px 50px #000; box-shadow: -0px -0px 50px #000;*/ margin-bottom: 26px; } .spamcube { height: 25px; background: url(../../../images/spam_red.jpg); color: white; font-size: 15px; } .spamcubevalid { height: 25px; background: url(../../../images/spam_green.jpg); color: white; font-size: 15px; } .productswidget { width: 100%; min-height: 30px; margin-left: auto; margin-right: auto; } .logomenu { display:block; vertical-align:middle; background: #DDD; margin-top: -5px; margin-left: -5px; margin-right: -5px; border-bottom: 1px black solid; height: 50px; } .logomenu li { padding:0; margin:0; margin-right: 5px; margin-left: 5px; list-style:none; display:inline; vertical-align:middle; } .logomenu li a.active { padding-top: 10px; position:relative; top: 10px; } .productcontainer { width: 900px; margin: 25px; } .productcontainer .bart { margin: 0px; width: 900px; } .productcontainer .bar { margin: 0px; width: 900px; margin-left: 15px; } .productcontainer .bar a .more { color: #BBB; text-align: center; } .productcontainer table { width: 900px; margin: 0px; border: none; } .trainingform { width: 700px; margin-left: auto; margin-right: auto; background: #DDD; min-height: 100px; margin-top: 30px; font-size: 18px; font-weight: bold; margin-bottom: 30px; } .trainingform input { width: 500px; margin-right: 20px; } .trainingform .submitb { width: 100px; margin-left: 600px; } .trainingform textarea { width: 500px; height: 100px; margin-right: 20px; } .ttop { position: relative; top: -87px; display: inline; } .error { color: #FF0000; } .ContentMenu { margin-top: 5px; text-align: center; margin-bottom: 15px; margin-left: 5px; position: relative; top: 45px; } .ContentMenuSUB { height: 35px; margin-top: 5px; text-align: left; } a { text-decoration: none; } .heading { font-size: 25px; color: #000066; } .content { min-height: 250px; margin: 5px; } .search { position: relative; top: 1px; float: right; } .footer { margin-left: auto; margin-right: auto; width: 966px; background: #000; color: #FFF; margin-top: -26px; height: 27px; text-align: right; } .footicons { margin-top: -17px; margin-left: 5px; text-align: left; } .headerLogo { width: 964px; padding: 7px; margin-left: auto; margin-right: auto; } .gallerybox { width: 1000px; height: 45px; border: 1px solid black; position:relative; left: -18px; top: -100px; background: #000; color: #FFF; font-size: 35px; text-align: center; } .gallerybox { width: 1000px; height: 45px; border: 1px solid black; position:relative; left: -18px; top: -100px; background: #000; color: #FFF; font-size: 35px; text-align: center; } .gallerybox_nosub { width: 1000px; height: 45px; border: 1px solid black; position:relative; left: -18px; top: -60px; background: #000; color: #FFF; font-size: 35px; text-align: center; } .gallerybox_static { width: 1000px; height: 45px; border: 1px solid black; position:relative; left: -18px; top: -15px; background: #000; color: #FFF; font-size: 35px; text-align: center; } .contactbox { margin-left: auto; margin-right: auto; width: 966px; text-align: right; background: url(../../../images/logomain.png) top left no-repeat; height: 80px; margin-top: 5px; font-size: 18px; } .gmaps { width: 400px; height: 400px; margin-left: auto; margin-right: auto; } .closadiv { width: 100%; overflow: hidden; height: 35px; } .partnername { font-size: 22px; position: relative; top: 5px; } .newsitem { width: 828px; position: relative; left: 132px; } .newsimg { background: #CCCCCC; width: 128px; height: 128px; position: relative; top: 132px; margin-top: -132px; font-size: 18px; color: #999999; } #s3slider { width: 964px; /* important to be same as image width */ height: 300px; /* important to be same as image height */ position: relative; /* important */ left: -5px; overflow: hidden; /* important */ background: white; } #s3sliderContent { width: 964px; /* important to be same as image width */ position: absolute; /* important */ top: 0; /* important */ margin-left: 0; /* important */ } .s3sliderImage { float: left; /* important */ position: relative; /* important */ left: -40px; top: -16px; display: none; /* important */ } .s3sliderImage span { position: absolute; /* important */ left: 0; font: 15px/15px Arial, Helvetica, sans-serif; padding: 10px 13px; width: 964px; background-color: #000; filter: alpha(opacity=70); /* here you can set the opacity of box with text */ -moz-opacity: 0.7; /* here you can set the opacity of box with text */ -khtml-opacity: 0.7; /* here you can set the opacity of box with text */ opacity: 0.7; /* here you can set the opacity of box with text */ color: #fff; display: none; /* important */ top: 0; /* if you put top: 0; -> the box with text will be shown at the top of the image if you put bottom: 0; -> the box with text will be shown at the bottom of the image */ } .clear { clear: both; } .eventdesc { min-height: 128px; width: 100%; } .mintype { font-size: 13px; } The Menu CSS: Code: /* Generated via www.cssmenubuilder.com Copyright (c) 2008-2010 www.cssmenubuilder.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ .menu { margin:0 auto; padding:0; height:30px; width:1000px; display:block; background:url("../../../images/topMenuImages.png"); border: 1px solid black; position:relative; left: -18px; } .menu li { padding:0; margin:0; list-style:none; display:inline; } .menu li a { float:left; padding-left:15px; display:block; color:rgb(255,255,255); text-decoration:none; font:12px Verdana, Arial, Helvetica, sans-serif; cursor:pointer; background:url("../../../images/topMenuImages.png") 0px -30px no-repeat; outline:none; } .menu li a span { line-height:30px; float:left; display:block; padding-right:15px; background:url("../../../images/topMenuImages.png") 100% -30px no-repeat; } .menu li a:hover { background-position:0px -60px; color:rgb(255,255,255); } .menu li a:hover span { background-position:100% -60px; } .menu li a.active, .menu li a.active:hover { line-height:30px; font:12px Verdana, Arial, Helvetica, sans-serif; background:url("../../../images/topMenuImages.png") 0px -90px no-repeat; color:rgb(255,255,255); } .menu li a.active span, .menu li a.active:hover span { background:url("../images/topMenuImages.png") 100% -90px no-repeat; } Hey guys, I'm working with firefox and just checking things out in IE to make sure nothing to major pops out. One such thing did come out and I discovered that when I highlight the text of a link the :hover background appears, it normaly doesn't otherwise...although it doesn't follow all my rules here is some code. Code: /*splash.css*/ #splash p a:hover{ background-image:url('/image/splash_hover.png'); background-repeat:no-repeat; color:#000; } /*index.html head*/ <!--[if ie 6]> <style> * html #inner_wrap { top:35%; } #splash a:hover{ background-image:url('/image/splash_hover.png'); background-repeat:no-repeat; color:#000; position:relative; top:2em;/*otherwise the same, I gota push the link down farther for IE, 6 anyway*/ } #jbc_vc{ display:none;/*because it pushes the enter link off the page*/ } </style> <![endif]--> The background image is repeated even thought it's not in firefox, and I have to highlight the text for the background image to even apear. Does anyone know what error is being triggered here? Link To Site Dear CSS Guruz If you goto this page in IE and scroll down you will notice the text "Power, Safety, Simplicity, etc" Dissapears! This does not happen in Firefox. It could be a javascript issue but Im not really sure. Anybody have any clues what could cause this? Louis Help! I've been holding my head on this one for a couple days. I have a wordpress theme that works fine in IE7, but in Firefox the header and navigation aligns left instead of center. I have not tested in IE6 yet. I can't, for the life of me, figure out what's causing it. Any help would be greatly appreciated! www dot sccustomfacade dot com slash site Thank you! So, here's what I've got: http://www.anthonycarboni.com The header is supposed to appear 50 pixels high, flush with the top (no margins), with the header text middle aligned inside of it. This is working in IE 6 and 7, but is not working well in FF (mac/pc) or in Safari. Here is all code that pertains to that section. It is sure to be woefully poor, as I'm just getting into CSS: Code: body { color: #FFFFFF; background-color: #000000; font-family: 'ArialMT', 'Arial', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; opacity: 1.00; padding-bottom: 0px; padding-top: 0px; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; min-width: 800px; } .main{ background-color: #202020; width: 800px; margin-left: auto; margin-right: auto; text-align: left; } .header{ height: 50px; background-image: url('images/header.jpg'); background-repeat: repeat; } p.headline { font-size: 32px; font-weight: bold; text-transform: uppercase; text-align: center; letter-spacing: 0.8em; vertical-align: middle; } And there you have it. I'm tearing my hair out over what I'm sure is some small thing that anyone with experience would notice immediately. Any help would be greatly appreciated. Thanks! Hi CSS gurus, I am a bit stuck with the presentation issues I currently have with my website, http://www.tophatweddings.co.uk. Compare the site layout in IE (6 not 7) and look at it in Firefox. In Firefox you'll notice the borders and backgrounds are not displaying correctly. This is what I want to fix. Has anyone got any suggestions for how I can adjust my CSS to make it display properly in Firefox? Please help This is what I would like to accomplish (though, vertical scrolling..) http://www.csszengarden.com/?cssfile=037%2F037%2Ecss Must look at it with mozilla, btw.. doesn't work in IE. I can't figure out how the hell that person did that. Here is what I have so far... Forgive all the extra tags I don't need. I've been trying everything I can think of... h1{ position: absolute; top: 0px; left: 0px; z-index: 99; background-image: url(top.png); background-repeat: no-repeat; background-attachment: fixed; background-color: transparent; height: 358px; width: 800px; visibility: visible; background-position: top left;} h2{ position: fixed; top: 0px; background-image: url(sidestar.png); background-repeat: repeat-y; background-attachment: scroll; height: 6000px; width: 40px; z-index:1;} H1 is the code for the image I want to be on top, H2 is the "body" I want to disappear behind the image. When that is loaded, the image stays fixed in location, but the body scrolls on top of it, eating the image from the bottom. Any ideas what is wrong? If you have firefox, you can check out what is happening he http://www.fatboyraceworks.com/webnik/ hello, Im running a website that uses the hover css style to change the button from a darker colored text to a lighter colored text (two different images) but when I go to the web page and hover over it it disappears, only for a second but its still annoying, and then replaces it with the new image. is there any way to get rid of this brief disappearance? Using my http://www.thatspotonline.com as an example I'll explain my problem. I'm trying to use a 3 column fluid layout with a header and a footer. I've gotten past the browser problem with IE and now face a new problem with proper display in firefox. With the included css and attached xhtml layout I end up with a rather large gap on the bottom of the design without adding quite a bit of content to make the page length grow. I've tested with about everything else and this problem doesn't show up. I would gladly take some advise if anyone has any thanks. Code: * { margin:0 auto; padding:0; } h2 { font:bold 2em/1.4 "Lucida Bright", Georgia, Times, serif; color:#8B9F86; } h3 { font:bold 1em/1.6 "Lucida Bright", Georgia, Times, serif; color:#845697; } a { color:#4C53E0; } a:focus, a:hover, a:active { color:#EB8518; } body { background:#000000 url(images/body2.jpg); background-repeat:repeat; background-position:top left; font-size:90%; margin:0 auto; padding: 24px 0; } #outer { margin:0 auto; width:80%; min-width:40em; max-width:70em; border:10px solid #EEEEEE; border-width:0 5px; background:#EEEEEE; } ul#nav:after, #outer:after, #sub:after, form:after, form div:after { content:"."; display:block; visibility:hidden; clear:both; height:0; } * html #nav, * html #content, * html form, * html form div { height:1%; } ul#access, .off { position:absolute; left:-1000em; top:-1000em; } hr {display:none} #header { background:#EBEBE9 url(images/banner-bg2.jpg) repeat-x left bottom; } #header h1 { padding-left:.6em; font:bold 3em/2.5 "Lucida Bright", Georgia, Times, serif; /* line-height allows for image of buildings */ letter-spacing:1pt; color:#FFFFFF; background: transparent url(images/banner2.jpg) no-repeat right bottom; } #header h1 a { color:#FFFFFF; text-decoration:none; } ul#nav { list-style:none; margin:3px 0 1em; text-align:center; background:#FFFFFF; border-top:2px solid #444444; border-bottom:2px solid #444444; } #nav li { list-style:none; margin:0 auto; width:94%; min-width:40em; max-width:70em; display:block; text-align:center; background:#000000; } * html #nav li { width:24.9%; } #nav a { display:block; font:bold 1em/1.8 'Lucida Grande', Arial, tahoma, verdana, sans-serif; text-decoration:none; color:#444444; margin:1px; background:#FFFFFF; } #nav a:focus, #nav a:hover, #nav a:active { border:1px inset #8B9F86; margin:0; color:#EB8518; text-decoration:underline; } ul#nav li#active { background:#FFFFFF; font:bold 1em/1.8 'Lucida Grande', Arial, tahoma, verdana, sans-serif; color:#000000; text-decoration:underline; } #sub, #right { font: 1em/1.5 'Lucida Grande', arial, verdana, sans-serif; word-spacing:.1em; margin-bottom:1em; } #sub { width:74%; float:left; position:relative; } #center { width:65%; float:right; } #left { width:33%; float:left; } #right { width:25%; float:right; } #center p { margin:.5em 2% .5em 0; } img.img-right { float:right; } #left h2 { color:#845697; font-size:1.5em; } #left p { font-size:.9em; } #right { font-size:.9em; } #right h2 { font-size:1.2em; } /** Footer **/ #footer { clear:both; margin-top:1em; font: 0.9em/1 'Lucida Grande', arial, tahoma, verdana, sans-serif; border-top:3px double #C8DCC2; } #footer p { margin:1em 1em 1em 0; text-align:center; padding: 21px 0; } #footer ul { list-style:none; margin-top:.7em; } #footer li { display:inline; border-right: 1px solid #C8DCC2; padding:.3em 2%; } Why do the margin-top values on these layers DO NOTHING in firefox, but act as expected in IE? Which way is actually correct? Also, if I add a float:left to the blue layer, firefox adds a margin-top to the blue and green layers only? This seems very wrong.. How can I get the expected margin-top on each layer? Code: <BODY style="background-color:yellow;"> <div id='blue' style="width:250px; height:250px; display:block; margin-left:1px; margin-top:10px; background-color:blue; position:relative;"> <div id='green' style='width:220px; height:200px; margin-top:10px; background-color:green; display:block; position:relative;'> <!--- prod selector box ---> <div id='gray' style='width:200px; height:150px; overflow:auto; margin-top:10px; margin-left:4px; display:block; background-color:gray; position:relative;'> asdf </div> </div> </div> </BODY> |