CSS - My Website Is Not Working In Firefox
Hi,
Ive created this website - if you type in solfex limited in google - the address is solfex.co.uk (sorry i cannot post url as im a new user and it works wonders in IE but it goes horribley wrong in firefox I used css to create the website, Im not a firefox user so i have no idea how to fix this I really need help here is my css - CSS Code: Original - CSS Code body { /* for IE; otherwise, BG isn't fully stretched */ margin: 0px; } #bg { position: fixed; margin: 0px; border: 0px; padding: 0px; left: 0px; top: 0px; width: 100%; height: 100%; overflow: hidden; z-index: 0; } #bg img { width: 100%; } #body { position: absolute; left: 0%; top: 0%; width: 98%; height:98%; padding: 1%; z-index: 10; } #title {font-family:"Myriad","Arial","Times New Roman",; font-size:14px; color:#FF6A0A; font-weight: bold; margin-top:-65px; margin-left:25px; } #title1 {font-family:"Myriad","Arial","Times New Roman",; font-size:14px; color:#FF6A0A; font-weight: bold; margin-top:-205px; margin-left:10px; } #title2 {font-family:"Myriad","Arial","Times New Roman",; font-size:14px; color:#FF6A0A; font-weight: bold; margin-top:-125px; margin-left:5px; } #title3 {font-family:"Myriad","Arial","Times New Roman",; font-size:14px; color:#FF6A0A; font-weight: bold; margin-top:-150px; margin-left:5px; } #text { margin-left: -30px; margin-top: 6px; font-family:"Myriad","Arial","Times New Roman",; font-size:13px; color:#000; font-weight: bold; text-align: center; } #text1 { margin-left: 3px; margin-top: 6px; font-family:"Myriad","Arial","Times New Roman",; font-size:13px; color:#000; font-weight: bold; } #text2 { margin-left: 30px; margin-top: 5px; font-family:"Myriad","Arial","Times New Roman",; font-size:13px; color:#000; } #table{ margin-left: 90px; margin-top: -10px; font-family:"Myriad","Arial","Times New Roman",; font-size:13px; color:#000; font-weight: bold; text-align: center; } #table1{ margin-left: 90px; margin-top: -100px; font-family:"Myriad","Arial","Times New Roman",; font-size:13px; color:#000; font-weight: bold; text-align: center; } .underlinemenu{ font-weight: bold; font-family:"Myriad","Arial","Times New Roman",; font-size:15px; width: 100%; height:74px; margin-top:-60px; margin-left:-90px; background-image:url('images/footer.jpg'); } .underlinemenu ul{ /*6px should equal top padding of "ul li a" below, 7px should equal bottom padding + bottom border of "ul li a" below*/ margin-left: -2px; margin-top: 20px; text-align: center; //set value to "left", "center", or "right"*/ } .underlinemenu ul li{ display: inline; } .underlinemenu ul li a{ color: #fff; padding: 0 0 0 0; /*top padding is 6px, bottom padding is 4px*/ margin-right: 20px; /*spacing between each menu link*/ text-decoration: none; } .underlinemenu ul li a:hover, .underlinemenu ul li a.selected{ color: #000; } .underlinemenu1{ font-weight: bold; font-family:"Myriad","Arial","Times New Roman",; font-size:15px; width: 100%; height:74px; margin-top:110px; margin-left:-90px; background-image:url('images/footer.jpg'); } .underlinemenu1 ul{ /*6px should equal top padding of "ul li a" below, 7px should equal bottom padding + bottom border of "ul li a" below*/ margin-left: -2px; margin-top: 20px; text-align: center; //set value to "left", "center", or "right"*/ } .underlinemenu1 ul li{ display: inline; } .underlinemenu1 ul li a{ color: #fff; padding: 0 0 0 0; /*top padding is 6px, bottom padding is 4px*/ margin-right: 20px; /*spacing between each menu link*/ text-decoration: none; } .underlinemenu1 ul li a:hover, .underlinemenu1 ul li a.selected{ color: #000; } .underlinemenu2{ font-weight: bold; font-family:"Myriad","Arial","Times New Roman",; font-size:15px; width: 100%; height:74px; margin-top:-77px; margin-left:-90px; background-image:url('images/footer.jpg'); } .underlinemenu2 ul{ /*6px should equal top padding of "ul li a" below, 7px should equal bottom padding + bottom border of "ul li a" below*/ margin-left: -2px; margin-top: 22px; text-align: center; //set value to "left", "center", or "right"*/ } .underlinemenu2 ul li{ display: inline; } .underlinemenu2 ul li a{ color: #fff; padding: 0 0 0 0; /*top padding is 6px, bottom padding is 4px*/ margin-right: 20px; /*spacing between each menu link*/ text-decoration: none; } .underlinemenu2 ul li a:hover, .underlinemenu2 ul li a.selected{ color: #000; } #container{ height: 400px; width: 100%; position: relative; margin-top: 32px; margin-left: -12px; } #background{ position: absolute; } #content{ z-index: 2; position: relative; top:315px; left:80px; } #content1{ z-index: 2; position: relative; top:315px; left:5px; } div#navbar2 { height: 30px; width: 100%; background-color: #ccc; margin-top:50px; margin-left:25px; } div#navbar2 ul { margin: 0px; padding: 0px; font-family: Arial, Helvetica, sans-serif; font-size: small; color: #000; text-align:center; line-height: 30px; white-space: nowrap; background-color: #ccc; } div#navbar2 li { list-style-type: none; display: inline; background-color: #ccc; } div#navbar2 li a { text-decoration: none; padding: 7px 10px; color: #000; background-color: #ccc; } div#navbar2 li a:link { color: #000; } div#navbar2 li a:visited { color: #000; } div#navbar2 li a:hover { font-weight: bold; color: #000; } #slantedmenu{ font-weight: bold; font-size: 100%; font-family:"Myriad","Arial","Times New Roman",; width:100%; margin-top:50px; margin-left:310px; } #slantedmenu:after{ /*Add margin between menu and rest of content in Firefox*/ content: "."; display: block; height: 0; clear: both; visibility: hidden; } #slantedmenu ul{ text-indent: 10px; padding: 3px 0; text-align: center; /*set value to "center" for example to center items*/ width:100%; } #slantedmenu ul li{ display: inline; } #slantedmenu ul li a{ color: #494949; padding: 3px 0; padding-right: 20px; margin: 0; text-decoration: none; background: transparent url(images/slantdivider.gif) top right no-repeat; } #slantedmenu ul li a:visited{ color: #494949; } #slantedmenu ul li a:hover{ color: #0033CC; } div#link {font-family:"Myriad","Arial","Times New Roman",; font-size:12px; color:#000; text-decoration:none } div#link a:link { font-family:"Myriad","Arial","Times New Roman",; font-size:12px; color:#000; text-decoration:none } div#link a:visited { font-family:"Myriad","Arial","Times New Roman",; font-size:12px; color:#000; text-decoration:none } div#link a:hover{ font-family:"Myriad","Arial","Times New Roman",; font-size:12px; color:#336699; text-decoration:none } div#link a:active { font-family:"Myriad","Arial","Times New Roman",; font-size:12px; color:#000; text-decoration:none } #link5 { color: #666; text-decoration:none; font-size: 13px; font-family:"Myriad","Arial","Times New Roman",; font-weight: bold; margin-left: 1px; } #link5 a:link, #link5 a:visited { color: #666; text-decoration:none; font-size: 13px; font-family:"Myriad","Arial","Times New Roman",; font-weight: bold; } #link5 a:hover { color: #0033CC; text-decoration:none; font-size: 13px; font-family:"Myriad","Arial","Times New Roman",; font-weight: bold; } #link5 a:active { color: #666; text-decoration:none; font-size: 13px; font-family:"Myriad","Arial","Times New Roman",; font-weight: bold; } body { Thanks Ruksana Similar TutorialsI am desperate. I think I found a bug in Firefox, and I'm not sure how to work around it. The following code works in everything (IE 8, Chrome, Safari, Opera) except Firefox (version 3.6.3). Am I doing something wrong, or is this a bug in Firefox? You can look what happens to the drop-down menu's on Menu 2 and 3 live by going to my site (deenfoxx dot com slash firefox-bug dot html). css Code: Original - css Code #main-nav { background-color: black; height: 40px; } #nav { position: relative; margin: 0; padding: 0; } #nav li { position: relative; float: left; display: table; width: 99px; height: 40px; border-right: 1px solid white; text-align: center; font-size: 10px; } #nav li:hover { background-color: darkred; } #nav a { display: table-cell; vertical-align: middle; line-height: 11px; font-weight: bold; text-decoration: none; color: #fff; } #nav li ul { position: absolute; padding: 0; background-color: gray; top: 40px; left: 0px; } #nav li ul li { width: 98px; border: 0; border-top: 1px solid white; } #main-nav html4strict Code: Original - html4strict Code <div id="main-nav"> <ul id="nav"> <li id="m1"><a href="#1">Main Menu 1</a></li> <li> <a href="#2">Main Menu 2</a> <ul> <li><a href="#2a">Sub-Category 1</a></li> <li><a href="#2b">Sub-Category<br/>with multiple lines</a></li> </ul> </li> <li> <a href="#3">Main Menu 3 with multiple lines</a> <ul> <li><a href="#3a">Sub-Category 2</a></li> </ul> </li> <li><a href="#4">Main Menu item which has a really long name on it</a></li> </ul> </div> <div id="main-nav"> The problem appears to be that "#nav li" happens to have position:relative; and a display:table; and "#nav li ul" is position:absolute;. Normally, absolute positioning requires its parent or ancestor position to be set, but when used with the table display, it doesn't work normally on Firefox--but it does on other browsers. Can someone help me with a workaround that does not involve altering the HTML? If I must, I will accept a workaround that requires changing the HTML, but I'll have to do some heavy duty recoding of Magento's core menu generation. Anyone that knows Magento knows I want to avoid that like the plague--my example is a very simplified version of the problem. This probably is an easy thing but I have tried a lot of things and I cant center the website on firefox. it looks good on internet explorer. When you open the website it positions itself on the center and even when you resize the browser. This is how I want it to behave in Firefox. The site is temporary on: http://www.danielyanez.com and the css is on: http://www.danielyanez.com/Stylesheet.css I appreciatte any help in advance and I hope someone can give me a hand, thanks !!!! Hello.. I've been working on this site for my Daughter using Wordpress, I've mashed about the CSS, Modding a template for the desired look for the site. I've tied validating it and it brings up a couple of strange comments about the </body> and </html> closing tags, I presume this is why IE7 is having problems displaying the page. Firefox doesn't seem to have an issue at all. I was hoping somebody could take a look at the source with a fresh set of eyes and let me know what is wrong, I've spent hours working on this and can't see it for the life of me. I'm sure it's something simple, I know I had an issue one time where a <P> tag wasn't closed and stopped the whole site being displayed... thanks. blog.mirana[dot]co[dot]uk Hello everyone. I have been working on a redesign of my current website for a while. Early on, I realized that the design was flawed for I.E. (I use Firefox on a regular basis for testing). I went ahead and just finished the design anyway, using Firefox to test. Now that it's done, I'm hoping that there's some stupid error in my CSS that's causing the problems, and hoping that someone can find the problem. If it's a big problem and alot of work to fix, I'm willing to pay someone to help me correct the issue. The main problem is my navigation bar at the top, which consists of drop-down menus. There's also a problem with how the background lines up. If you want to see what I'm talking about, go look at the site both in Firefox and I.E. The URL is: http://www.favillephoto.com/new website/index.html I have 2 different css files. One for my index page, because it is designed differently and has a sidebar. And then a second one for the rest of my pages on the site. I'll attach the CSS for both, in case there's an issue there. Thanks in advance for your help. This is the css file for my index page: Code: body { padding: 0; background: #ffffff url('images/img01.jpg'); font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 13px; color: #333333; margin-left:0; margin-right:0; margin-top:20px; margin-bottom:0 } h1, h2, h3, h4 { margin: 0; font-weight: normal; color: #AD1112; } h1 { font-size: 250%; } h2 { font-size: 180%; } h3 { font-size: 140%; font-weight: bold; } h4 { font-size: 100%; font-weight: bold; } p, ol, ul { line-height: 180%; } p { } ol { } ul { } blockquote { margin: 0; padding-left: 20px; font-style: italic; } blockquote * { line-height: normal; } a { color: #1267bc; } a:hover { color: #999999; } img { border: none; } img.left { float: left; margin: 10px 15px 0 0; } img.right { float: right; margin: 0 0 0 15px; } hr { display: none; } /* Header */ #header { width: 1030px; height: 260px; margin: 0 auto; background: url('images/img02.jpg') no-repeat right top; } /* Menu */ #menu { float: right; width: 1030px; height: 40px; padding: 220px 0 0 0; } #menu a { display: block; height: 32px; background: url('images/img06.gif') no-repeat; text-decoration: none; font-size: 13px; font-weight: bold; color: #FFFFFF; padding-left:12px; padding-right:13px; padding-top:8px; padding-bottom:0 } #menu ul { width: 1026px; height: 40px; margin: 0; padding: 0; background: #AD1011 url('images/img05.jpg') repeat-x; border-left: 2px solid #FFFFFF; border-right: 2px solid #FFFFFF; list-style-type:none } #menu li { margin: 0; padding: 0; list-style: none; float: left; } #menu li a:hover { color: #123456;} #menu div { position: absolute; visibility: hidden; margin: 0; padding: 0; background: #000000; } #menu div a { position: relative; display: block; margin: 0; padding: 3px 10px; width: auto; height: 20px; white-space: nowrap; text-align: left; background: #6c91c5; color: #ffffff;} #menu div a:hover { color: #123456;} /* Page */ #page { width: 1030px; margin: 0 auto; } /* Content */ #content { float: left; width: 760px; height: 2040px; padding: 20px; background: #FFFFFF url('images/img07.gif') no-repeat left bottom; } /* Sidebar */ #sidebar { float: right; width: 220px; height: 2070px; padding-top: 10px; padding-right: 10px; background: #ffffff url('images/img07a.gif') no-repeat right bottom; } #sidebar a { color: #dddddd; } #sidebar a:hover { color: #999999; text-decoration: underline; } #sidebar ul { margin-left: 0; padding-left: 0; list-style: none; font-size: 92%; } #sidebar ul li { background: url('images/img13.gif') no-repeat 0px 12px; border-top: 1px solid #0B0B0B; padding-left:14px; padding-right:14px; padding-top:5px; padding-bottom:5px } #sidebar ul li.first { border: none; } #sidebar ul li h2 { margin: 0; font-size: 100%; } #sidebar ul li h3 { margin: 0; font-size: 92%; } #sidebar ul li p { color: #dddddd; margin: 0; } #sidebar p { color: #dddddd; margin: 0; font-size: 92%; } .boxed { margin-bottom: 10px; background: #113c5c url('images/img10.gif') no-repeat left bottom; } .boxed .title { height: 30px; margin: 0; background: #000000 url('images/img08.jpg') no-repeat; font-size: 16px; font-weight: bold; color: #000000; padding-left:0px; padding-right:0; padding-top:10px; padding-bottom:0 } .boxed .content { padding: 15px; background: url('images/img09.gif') repeat-x; } .boxedPrintoftheMonth { margin-left: -790px; background: #113c5c url('images/img10PotM.gif') no-repeat left bottom; } .boxedPrintoftheMonth .title { height: 30px; margin: 0; background: #000000 url('images/img08PotM.jpg') no-repeat; font-size: 16px; font-weight: bold; color: #000000; padding-left:0px; padding-right:0; padding-top:10px; padding-bottom:0 } .boxedPrintoftheMonth .content { padding: 15px; background: url('images/img09.gif') repeat-x; } /* Footer */ #footer p { margin: 0; line-height: normal; font-size: 85%; color: #000000; } #footer a { color: #000000; } #footer a:hover { color: #666666; } This is the css for the rest of my pages: Code: body { padding: 0; background: #ffffff url('images/img01.jpg'); font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 13px; color: #333333; margin-left:0; margin-right:0; margin-top:20px; margin-bottom:0 } h1, h2, h3, h4 { margin: 0; font-weight: normal; color: #AD1112; } h1 { font-size: 250%; } h2 { font-size: 180%; } h3 { font-size: 140%; font-weight: bold; } h4 { font-size: 100%; font-weight: bold; } p, ol, ul { line-height: 180%; } p { } ol { } ul { } blockquote { margin: 0; padding-left: 20px; font-style: italic; } blockquote * { line-height: normal; } a { color: #1267bc; } a:hover { color: #999999; } img { border: none; } img.left { float: left; margin: 10px 15px 0 0; } img.right { float: right; margin: 0 0 0 15px; } img.left1 { float: left; margin: 0 70px 0 70px; } img.right1 { float: right; margin: 0 70px 0 70px; } img.left2 { float: left; margin: 20px 100px 20px 100px; } img.right2 { float: right; margin: 30px 120px 20px 120px; } img.left3 { float: left; margin: 0 110px 0 110px; } img.right3 { float: right; margin: 20px 60px 0 60px; } hr { display: none; } /* Header */ #header { width: 1030px; height: 260px; margin: 0 auto; background: url('images/img02.jpg') no-repeat right top; } /* Menu */ #menu { float: right; width: 1030px; height: 40px; padding: 220px 0 0 0; } #menu a { display: block; height: 32px; background: url('images/img06.gif') no-repeat; text-decoration: none; font-size: 13px; font-weight: bold; color: #FFFFFF; padding-left:12px; padding-right:13px; padding-top:8px; padding-bottom:0 } #menu ul { width: 1026px; height: 40px; margin: 0; padding: 0; background: #AD1011 url('images/img05.jpg') repeat-x; border-left: 2px solid #FFFFFF; border-right: 2px solid #FFFFFF; list-style-type:none } #menu li { margin: 0; padding: 0; list-style: none; float: left; } #menu li a:hover { color: #123456;} #menu div { position: absolute; visibility: hidden; margin: 0; padding: 0; background: #000000; } #menu div a { position: relative; display: block; margin: 0; padding: 3px 10px; width: auto; height: 20px; white-space: nowrap; text-align: left; background: #6c91c5; color: #ffffff;} #menu div a:hover { color: #123456;} /* Page */ #page { width: 1030px; margin: 0 auto; } /* Content */ #content { float: left; width: 990px; padding: 20px; background: #FFFFFF url('images/img07b.gif') no-repeat left bottom; } /* Footer */ #footer p { margin: 0; line-height: normal; font-size: 85%; color: #000000; } #footer a { color: #000000; } #footer a:hover { color: #666666; } I did a site recently and Im having trouble finding what is causing this weird error. If you go to this gallery using firefox: http://www.mmimageart.com/fineart4.html you will notice that the thumbnails under "saguaro" will display wrongly. IF you dont see the problem just keep refreshing the browser until you get the problem. you will get it. there are problems also in: http://www.mmimageart.com/fineart3.html (everglades) http://www.mmimageart.com/fineart.html (Atlantic Coast) What coding error in css can cause firefox to display the website wrong randomly ? Is this a well known error ? if not, then Ill post the code. Thanks in advanced!!! Hey guys i have some image layout problems with my images on safari and firefox on Mac only. Firefox and safari on PC seem fine but its only happening on Mac. The positioning of the images have moved dramatically. Not sure how to fix it CSS is validated and so is xhtml strict Website not showing how i want it to be on other PCs but when I open using my laptop everything appears fine. What is the problem? I redesigned a site, and it works fine in Explorer (Mac) and Safari but the stylesheet is not loading in Firefox or Camino. I am wondering if anyone could take a quick peek at it to figure out what might be wrong with it?!? The page is at http://aamr.org/Groups/div/RG/ Thanks! ( I guess it is nice to see that the site degrades nicely...) Hello, I'm new to CSS. The like script or css I have seem to work fine in IE but not in FireFox. Actually its not doing anything in FireFox. how can i code it or script it so that it works in both browsers equaly. this is what i have in a file called public.css .class1 A:link {text-decoration: none; color: white} .class1 A:visited {text-decoration: none; color: white} .class1 A:active {text-decoration: none; color: white} .class1 A:hover {text-decoration: underline; color: white} any help you can give me would be greatly appreciated Hey Guys, I made a website but I am having a problem with the CSS. http://www.gc69.com The website previews great in firefox. However, when I open it in IE, the navigation and header messes up so badly. Also, the footer is also spanning 100% accross the screen, but its meant to be just like the top navigation in firefox. Help please. Edit/Delete Message Hi! I have simple page, it has 600X400 no repeat static background, and 3 flash windows positioned over it correctly. In IE all shows fine. But Firefox completely ignores margin commands, and absolution position of third flash window, while in IE all show correctly, as well as in dreamweaver. Where the problem might be? Here is the full code: 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>Untitled Document</title> <style type="text/css"> <!-- body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; } .thrColEls #container { width: 600px; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */ background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #000000; text-align: left; /* this overrides the text-align: center on the body element. */ background-image: url(basic.png); background-repeat: no-repeat; height: 400px; } .flashtop{ margin-left: 224px; margin-top: 39px; }; .flashleft{ margin-left: 29px; margin-top: 20px; position: relative; }; .flashright{ position: absolute; left: 296px; top: 0px; }; .thrColEls #sidebar1 h3, .thrColEls #sidebar1 p, .thrColEls #sidebar2 p, .thrColEls #sidebar2 h3 { margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */ margin-right: 10px; } .thrColEls #mainContent { margin: 0 12em 0 12em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */ } /* Miscellaneous classes for reuse */ .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; margin-left: 8px; } .fltlft { /* this class can be used to float an element left in your page */ float: left; margin-right: 8px; } </style> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body class="thrColEls"> <div id="container"> <div class = "flashtop"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="149" height="50"> <param name="movie" value="radio/nativeradio.swf" /> <param name="quality" value="high" /> <embed src="radio/nativeradio.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="149" height="50"></embed> </object></div> <div class = "flashleft"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="245" height="245"> <param name="movie" value="radio/nativeradio.swf" /> <param name="quality" value="high" /> <embed src="radio/nativeradio.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="245" height="245"></embed> </object> <div class = "flashright"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="245" height="245"> <param name="movie" value="radio/nativeradio.swf" /> <param name="quality" value="high" /> <embed src="radio/nativeradio.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="245" height="245"></embed> </object> </div> </div> </div> </body> </html> I am using the following css, can someone please show me how to get it to work in firefox it works fine in IE. Thanks Tim PHP Code: body {margin: 0px;} #header {width:100%; height:65px; padding:0px; margin:0px; postion: absolute; top:0px; left:0px; text-align: center; background-image:url(greenback.gif)} #line {width:100%; height:2px; background-color:black; padding:0px; margin:0px; float:left;} #bbar { width: 98.5%; position: fixed; bottom: 0px; background: #000000; text-align: center; } td.tab {background-color: #D52031;} #frame {width: 960px; height: 400px; padding: 0px; margin: 0px; float: left} #line {width: 100%; height: 5px; background-color: #E1A63A; padding: 0px; margin:0px;} td.tab {background-color: #D52031;} #wrapper {width: 100%; height: 100%; padding: 2px; margin: 2px; float: left;} #ad1 {width: 200px; height: 60px; border: solid 1px black; float: left; background-color: #E1A63A; font-size: 8pt; font-family: tahoma; color: white; padding: 1px; margin: 1px;} #ads {width: 200px; height: 200px; border: solid 1px black; float: left; font-size: 8pt; font-family: tahoma; color: white; padding: 1px; margin: 1px; font-size: 10pt; color: black; font-family: tahoma;} #sidebar {width:200px; height: 100%; padding: 0px; margin: 0px; float: left;} #hspace {width: 20px; height: 400px; float: left; padding: 0px; margin: 0px;} #news {width: 500px; height: 100%; padding: 0px; margin: 0px; float: left;} #nheader {width: 100%; height: 18px; border: solid 1px black; background-color: #008000; font-size: 12pt; font-family: tahoma; color: white; padding: 2px; margin: 2px;} #nbox {width: 100%; height: 150px; border: solid 1px black; padding: 2px; margin: 2px;} #rbar {width: 220px; height: 100%; float: left;} #subscribe {width: 100%; border: solid 1px black;} #subhead {width: 100%; height:18px; border-bottom: solid 1px black; background-color:#B92422; padding: 0px; margin: 0px; font-size: 10pt; font-family: tahoma; color: white;} #subnews {width: 100%; height:55px; padding: 1px; margin: 1px; font-size: 10pt; font-family: tahoma; color: black; #nobox-inner {width: 100%; height: 100%; padding: 1px; margin: 1px; float: left;} #nobox-img {width: 150px; height: 100%; padding: 1px; margin: 1px; float: left;} #nobox-links {width: 350px; height: 100%; padding: 1px; margin: 1px; float: left;} #test1 {visibility: hidden;} a:link {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none} a:visited {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none}a:active {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none} a:hover {font-size: 8pt; font-family: tahoma; color: #000000; text-decoration: none} a.ad:link {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none} a.ad:visited {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none} a.ad:active {font-size: 8pt; font-family: tahoma; color: white; text-decoration: none} a.ad:hover {font-size: 8pt; font-family: tahoma; color: black; text-decoration: none} a.tab:link {font-size: 12pt; font-family: tahoma; color: white; text-decoration: none} a.tab:visited {font-size: 12pt; font-family: tahoma; color: white; text-decoration: none} a.tab:active {font-size: 12pt; font-family: tahoma; color: white; text-decoration: none} a.tab:hover {font-size: 12pt; font-family: tahoma; color: black; text-decoration: none} a.tab2:link {font-size: 8pt; font-family: tahoma; color: black; text-decoration: none} a.tab2:visited {font-size: 8pt; font-family: tahoma; color: black; text-decoration: none} a.tab2:active {font-size: 8pt; font-family: tahoma; color: black; text-decoration: none} a.tab2:hover {font-size: 8pt; font-family: tahoma; color: red; text-decoration: none} .mainframe {width:100%; height:400px; padding:0px; margin:0px; float: left;} .innerframe {width: 800px; height:300px; padding:0px; margin:0px; float: left;} font.head {font-size:12pt; font-family: tahoma; color: black;} font.head2 {font-size:12pt; font-family: tahoma; color: white;} font.copy {font-size:8pt; font-family:tahoma; color:white;} .subscribe {width: 180px; height: 100px; border: solid 2px black; position: absolute; right: 5px; top: 115px; font-size: 8pt; font-family: tahoma;} .business {width: 180px; height: 100px; border: solid 2px black; position: absolute; right: 5px; top: 235px;} .general {width: 180px; height: 100px; border: solid 2px black; position: absolute; right: 5px; top: 355px;} .subhead {width:180px; height:18px; background-color: black; padding: 0px; margin: 0px; float: left; font-size:10pt; font-family: tahoma; color: white;} .news1 {width: 470px; height: 75px; border: solid 2px black; padding:2px; margin: 2px;} .news2 {width: 470px; height: 75px; border: solid 2px black; position: absolute; top: 225px; left: 300px;} .news3 {width: 470px; height: 75px; border: solid 2px black; position: absolute; top: 330px; left: 300px;} .newshead {width:470px; height:18px; background-color: black; padding: 0px; margin: 0px; float: left; font-size:10pt; font-family: tahoma; color: white;} td {font-size: 8pt; font-family: tahoma;} input {font-size: 8pt; font-family: tahoma; color: black; border: solid 1px black;} textarea {font-size: 8pt; font-family: tahoma; color: black; border: solid 1px black;} Hi, everyone!! I am going crazy with my external stylesheet. I have 3 of them...the 2 "minor" stylesheets are functioning as expected. However, my "main" stylesheet is not working (unfortunately, I cannot post the site...it is hosted locally). The problem with the stylesheet: my dd classes are not working (indenting) in firefox. They do indent in IE. In firefox, I get a standard bullet all the way down, no indentions. I'm sure it's something silly, but my eyes are blurry by now...lol... Could someone please take a look at this code? Suggestions? body { overflow-x:hidden } a { text-decoration:none } img { border: none; } p { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 0ex; } dd { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 0ex; display: list-item; list-style-type: square; } d1 { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 2ex; display: list-item; list-style-type: none; } dd.2 { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 5ex; display: list-item; list-style-type: none; } dd.3 { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 7ex; display: list-item; list-style-type: square; } dd.4 { font-family: arial; font-style: normal; font-variant: normal; font-weight: lighter; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 9ex; display: list-item; list-style-type: none; } dt { font-family: arial; font-style: normal; font-variant: normal; font-weight: bold; font-size: x-small; word-spacing: normal; letter-spacing: normal; text-decoration: none; text-transform: none; text-align: left; text-indent: 0ex; } thanks in advance! ~Erin OK, I have NO hair left and a bruise on my forehead from banging my head against the wall. I'm creating my html in php, and sending it to a table for display. A cell looks like: <td><input id="usersalonrow" type="text" name="Title[]" value=' . '"' . $_SESSION['SalonEntryData'][$i]['Title'] . '"' . ' /></td>' . The CSS looks like: #usersalonrow { text-align:left; background-color:#ffffff; width:100%; color:#000; font-size:14px; border:0px; } This works FINE in IE8, Firefox, and Chrome..... I presume it'll work pretty much everywhere. BUT, in an error situation, I want to display the EXACT same line with a red background: <td><input id="errorusersalonrow" type="text" name="Title[]" value=' . '"' . $_SESSION['SalonEntryData'][$i]['Title'] . '"' . ' /></td>' . so I changed "usersalonrow" to "errorusersalonrow". That's the ONLY CHANGE.. And the CSS looks like: #errorusersalonrow { text-align:left; background-color:#ff0000; color:#000; width:100%; font-size:14px; border:0px; } Works FINE in Firefox. In IE I get no red background, my font changes to a smaller size, and there's a border around the entry....... BUT, if I TAKE the exact set of entries OUT OF THE CSS and embed them in the line: '<td><input style="text-align:left; background-color:#ff0000; color:#000; width:100%; font-size:14px; border:0px;" type="text" name="Title[]" value=' . '"' . $_POST['Title'][$i] . '"' . ' /></td>' . it AGAIN works fine in all the browsers... Red background and so on.. WHAT have I messed up THIS TIME? Gods I hate IE. I test this in IE6 and it comes out completely wrong. Here's the CSS: Code: body { font: 90% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; background-color: #FAFBFB; background-image: url(images/mainbackground.gif); } /* Tips for Elastic layouts 1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate. 2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this. 3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing. */ .twoColElsLtHdr #container { width: 100%; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */ background: #FFFFFF; margin: 0px; border: 0px; text-align: left; /* this overrides the text-align: center on the body element. */ background-image: url(images/mainbackground.gif) } .twoColElsLtHdr #header { background: #DDDDDD; padding: 0px; background-image:url(images/bg.jpg); width: 100%;} .twoColElsLtHdr #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } /* Tips for sidebar1: 1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly. 2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule. */ .twoColElsLtHdr #sidebar1 { float: left; width: 200px; background-image:url(images/bg.jpg); padding-left: 5px; /* top and bottom padding create visual space within this div */ height:400px; } .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p { margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */ margin-right: 10px; } /* Tips for mainContent: 1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs. 2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div. No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. 3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing. 4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur. */ .twoColElsLtHdr #mainContent { margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */ margin-top: 0px; margine-right: 400px; padding-top:0px; position:absolute; left: 50px; top: 145px; max-width: 700px; min-width: 700px; background-color:#d5d4b5; padding:10px; border-color: #420000; border-style:solid; border-size: 5px; min-height: 380px; } As you can see, I am mostly working off of modified DW scripts. If you can help me solve this problem, I will definitely appreciate it. The code: Code: <body class="twoColElsLtHdr"> <div id="container"> <div id="header"> <img src="images/banner.jpg" width="986" height="122" /> <table width="100%" height="26" border="0" cellspacing="0" cellpadding="0"> <tr> <td background="images/linething.gif"> </td> </tr> </table> <!-- end #header --></div> <div id="sidebar1"> <table width="200" border="0" cellpadding="0" cellspacing="0" background="images/bg.jpg"> <tr> <td><img src="images/home.gif" width="75" height="39" /></td> </tr> <tr> <td><img src="images/gallery.gif" width="91" height="43" /></td> </tr> <tr> <td><img src="images/Pricing.gif" width="98" height="42" /></td> </tr> <tr> <td><img src="images/request_quote.gif" width="179" height="45" /></td> </tr> <tr> <td><img src="images/care.gif" width="61" height="41" /></td> </tr> <tr> <td><img src="images/faq.gif" width="80" height="49" /></td> </tr> <tr> <td><img src="images/tutorials.gif" width="114" height="45" /></td> </tr> <tr> <td><img src="images/about_us.gif" width="116" height="47" /></td> </tr> <tr> <td><img src="images/contact.gif" width="125" height="41" /></td> </tr> </table> <h3> </h3> <!-- end #sidebar1 --></div> <div id="mainContent"> <p class="style1 style1 style1 style1 style1 style1">First and foremost, welcome. Here resides Valdyr Fenrisdottir, custom mascot and fursuit designer. It is my personal desire to help people obtain a wonderful costume and make dreams come true. It is with this desire that I have started Fenrir Productions, my contribution to the world of fursuit creation.</p> <p class="style2 style2 style2 style2 style2 style2">Whether you seek a mascot for your school or organization, a mask for an event or game, or a partial or full fursuit for yourself or a friend, I devote myself to making a high-quality product to fit your specific needs. I will even make smaller peices, like ears, paws, feetpaws, and tails for those interested in accessories for a cosplay or Halloween costume.</p> <p class="style3 style3 style3 style3 style3 style3">Please feel free to browse around the website, and be sure to check back for more updates. Questions and comments are always welcome, so if you need anything, please e-mail or contact me.<br /> <br /> </p> <div align="center"><span class="style4 style5 style5 style5 style5 style5"><strong>News and Updates:</strong></span> <!-- end #mainContent --> </div> </div> <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" /> <!-- end #container --> </div> </body> </html> And the website link, as I forgot it, so you may view the problem: http://fenrirproductions.com/anim/index.html I've started roughing out a redesign for my site, which is a very graphics-intensive, table-intensive site. I want to redo the whole thing in CSS, but I admit my CSS is quite rusty and I've been spending the last several days trying to go at it with some steel wool to remember how to do it. I haven't had to use much CSS since I worked at a dot-com back around 2000. I got the base design working the way I wanted in Firefox (my default browser) but then looked at it in IE and it's a mess. I spent awhile working on it until it was *mostly* there, but it still looks pretty bad in IE. I hope that perhaps someone can give me some pointers as to how I can fix this issue. It's at www. breedlist. com/personal/newsite/index.html (sorry, there is a rule about new posters not being able to create URLs, but I don't know how else to show the problem. This is an attempt to rework my site, breedlist). ...Barb I have been trying to create a page from my layout that uses an imaga gallery with on CSS using Ref Web page . When I try to use it on my page IE 6 works but Firefox doesn't. (The text below the image div doesn't stay in the conntent div. My Web Page Also, with the image gallery how do I keep Image text information (ie description/title of photo with the current one. It only displays when I use the mouse over, but I want both if possible (one hides when hovering) Any help would be great. Thanks Matt Hi there! My website (Yes.. I'm aware I use tables. Sue me. :P) has been driving me crazy CSS-wise. width:100% doesn't seem work right! Well, I know it does... but it hasn't been, and I have no idea why. As you can see in that page (and the forums too....) the black-bordered table underneath each subheader stretches too far in everything but Firefox. In Opera, not only does the black-bordered table stretch too far, but the subheading stretch... too little. O_o I am at a complete loss for words at this. Also, might I point out that when you visit a song on the site, the file type navigation (#sheetNav in the CSS file) works just fine? Any help would be GREATLY appreciated. For your convenience, here is the CSS file. Yes, it's something of a mess... forgive me. http://apollomix.com/master.css Thanks a lot! I'm new to this so probably made a horrible mistake, but somehow my CSS is FUBAR. The goal is to format a series of divs to replicate a table layout for my DB output in a manner that looks nice when printed out. In Firefox my layout looks correct, it is nearly identical to the version using tables. However when I try to print Firefox locks up! In IE it looks like ***. The first "column" is correct, the rest are not aligned correctly at all. It seems like this should be really simple (doesn't everything!) and yet I've managed to complete screw it up. Here is the CSS: Code: body { background-color: White; color: Black; } div.main { text-indent: 5px; font-weight: bold; border-bottom: 1px dashed Black; color: #000000; padding: 1px; float: left; clear: both; width: 500px; background-color: #FAF0E6; } div.sub { text-indent: 45px; border-bottom: 1px dashed Black; padding: 1px; background-color: #FAA0E6; width: 500px; float: left; clear: both; } div.tty { text-indent: 45px; border-bottom: 1px dashed Black; font-style: italic; float: left; clear: both; width: 500px; background-color: #FAFFE6; } div.subx2 { text-indent: 70px; border-bottom: 1px dashed Black; font-style: italic; float: left; clear: both; width: 450px; background-color: #FAF0A6; } div.email { color: #000000; padding: 1px; border-bottom: 1px dashed Black; width: 150px; float: left; background-color: #FAF006; } div.location { color: #000000; padding: 1px; border-bottom: 1px dashed Black; width: 150px; float: left; background-color: #AAF0E6; } div.mailstop { color: #000000; padding: 1px; border-bottom: 1px dashed Black; width: 150px; float: left; background-color: #FAAFE6; } div.phone { color: #000000; padding: 1px; border-bottom: 1px dashed Black; width: 150px; float: left; background-color: #FAF066; } Please note that a lot of that is in there for testing to make the divs more visible as I moved them around! (hence the godawful color scheme). Hey any idea why submit button at this page is not working??? http://www.ajilanyureq.com |