CSS - Explorer Problems
I am learning css and as many people do, have used code given gratefully by someone else,
Code: ul { margin: 0; padding: 0; list-style: none; width: 150px; } ul li { position: relative; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000; margin-bottom: 0px; } li ul { position: absolute; left: 149px; top: 0; display: none; float: left; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #6290B2 margin-bottom: 0px; } ul li a { display: block; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #6290B2; background: #FFF; padding: 5px; border: 1px solid #ccc; margin-bottom: 0px; } li:hover ul, li.over ul { display: block; } www.indigochilli.co.uk/eheating now im sure it works fine(with no spaces between the boxes) for all using firefox or something similar, however I need it to work for exmplorer, which it doesnt, because it is a drop down(well sideways) menu, (which btw you cant see because your not logged in) the spaces mess up the functionability of it. Now I have messed around with heights, margins alsorts but explorer isnt cooprtating, is this a problem explorer often has? Similar TutorialsHi i was wondering if i could get a hand with some css i have, its working properly on firefox but its not working with explorer ( i have the ie7 patch)... Ive included the css i think its #header3b1 causing the problem... Code: @charset "UTF-8"; /* CSS Document */ /* CSS Document */ body { background-color:#F5E9D9; margin:0; color:#4D4747; } img { border:none; } div, h2, a, img, p { margin:0; padding:0; } .spacer { line-height:0; font-size:0; clear:both; } #frame { width:761px; height:895px; background-color:#F5E9D9; margin:auto; color:#4D4747; } #container1 { width:751px; height:142px; padding-left:5px; padding-right:5px; float:left; background-color:#F5E9D9; color:#4D4747; } #header1 { width:185px; height:142px; background-color:#551001; float:left; color:#4D4747; } #header2 { width:280px; height:102px; float:left; padding-left:24px; padding-top:40px; } #header3 { width:262px; height:142px; float:right; } #header3a { width:240px; height:43px; background-color:#F5E9D9; float:right; padding-top:67px; padding-right:22px; text-align:right; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#AA8780; } .nav a{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#AA8780; background-color:inherit; font-weight:normal; text-decoration:none; } .nav:hover{ color:#6D2517; background-color:inherit; } #header3b { width:262px; height:32px; } #header3b1 { float: left; width:185px; height:350px; background-color:#551001; display: block; } #header3b2 { width:50px; height:32px; background-repeat:no-repeat; background-position:top right; } #container2 { width:751px; height:195px; padding-left:5px; padding-right:5px; } #container2a { width:489px; height:195px; float:left; } #container2b { width:260px; height:193px; border:1px solid #F2DBBA; float:right; } #container2b1 { width:220px; height:Auto; margin:auto; padding-top:14px; font-family:Arial, Helvetica, sans-serif; font-size:12px; text-align:justify; } .container2b2 { width:200px; height:22px; padding-left:20px; margin:auto; } .links { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#551001; background-color:inherit; font-weight:bold; text-decoration:none; } .links:hover { color:#C15740;background-color:inherit; } #container3 { width:751px; height:350px; padding-left:5px; padding-right:5px; } #container3a { width:151px; height:498px; background-color:#551001; float:left; color:#4D4747; padding-left:34px; } .container3a1 { width:121px; height:24px; border-top:1px solid #AA8880; padding-left:22px; padding-top:7px; } #container3b { width:304px; height:495px; float:left; margin:0 0 12px; overflow: hidden; } #container3bb { width:550px; height:495px; float:left; margin:0 0 12px; } #container3b1 { width:240px; height:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#4D4747; font-weight:normal; text-decoration:none; margin:16px 32px 0px 32px; text-align:justify; line-height:14px; background-color:inherit; } #container3b1 h2 { height:33px; text-indent:-2000px; background:url(images/welcome.gif) 0 10px no-repeat; } .container3b2 { width:240px; height:28px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000; font-weight:normal; text-decoration:none; margin:0px 0px 0px 32px; text-align:right; background-color:inherit; } .container3b2:hover { color:#830202; background-color:inherit; } #container3b3 { width:227px; height:28px; padding-left:13px; padding-top:9px; margin:0px 32px 0px 32px; text-indent:-2000px; } #container3b4 { width:238px; height:202px; margin:0px 32px 0px 32px; background-repeat:no-repeat; background-position:top right; } #container3b4a { width:100px; height:176px; font-family:Arial, Helvetica, sans-serif; font-size:12px; line-height:14px; padding-left:10px; padding-top:15px; } .brown { font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#7E1A02; background-color:inherit; text-decoration:none; font-weight:normal; } .brown:hover { color:#3B0B00; background-color:inherit; text-decoration:underline; } #container3c { width:262px; height:490px; float:left; margin:0 0 12px; } .container3c1 { width:231px; height:30px; background-color:#AC3A02; color:#4D4747; padding-top:7px; padding-left:9px; margin-top:22px; } .container3c1 h2 { background:url(images/specials.gif) 0 0 no-repeat; text-indent:-2000px; } .container3c11 { width:231px; height:30px; background-color:#AC3A02; color:#4D4747; padding-top:4px; padding-left:9px; margin-top:22px; } .container3c11 h2 { background:url(images/gallery_side.gif) 0 0 no-repeat; text-indent:-2000px; } .special { margin-top:55px; } .special h2 { background:url(images/some_specials.gif) 0 0 no-repeat; text-indent:-2000px; } #container3c2 { width:233px; height:350px; font-family:Arial, Helvetica, sans-serif; font-size:12px; background-image:url(images/special.jpg); border-bottom:1px solid #F2DBBA; border-left:1px solid #F2DBBA; border-right:1px solid #F2DBBA; background-repeat:no-repeat; background-position:bottom left; } #container3c22 { width:233px; height:170px; font-family:Arial, Helvetica, sans-serif; font-size:12px; background-color:#F2DBBA; border-bottom:1px solid #F2DBBA; border-left:1px solid #F2DBBA; border-right:1px solid #F2DBBA; background-repeat:no-repeat; background-position:bottom left; } #container3c2a { width:104px; height:350px; float:right; padding-right:14px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#7E1A02; background-color:inherit; text-decoration:none; font-weight:normal; line-height:12px; } #container3c2a1 { width:80px; height:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; text-decoration:none; font-weight:normal; text-align:justify; float:right; padding-left:24px; } .container3c2a2 { width:188px; color:#4D4747; height:179px; background-color:#F5E9D9; border-bottom:1px solid #F2DBBA; border-left:1px solid #F2DBBA; border-right:1px solid #F2DBBA; padding-left:25px; padding-right:25px; padding-top:22px; } .img { width:99px; height:86px; float:left; } .img1 { width:99px; height:79px; float:left; } .text { width:80px; height:78px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#7E1A02; background-color:inherit; line-height:12px; float:right; text-align:justify; } .dummy { clear:both; } a { font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#7E1A02; background-color:inherit; text-decoration:none; font-weight:normal; text-align:right; } a:hover { color:#B25B46; background-color:inherit; text-decoration:underline; text-align:right; } .blank { width:186px; height:86px; } #container4 { width:751px; padding-left:5px; padding-right:5px; background-color:#F5E9D9; color:#4D4747; margin:0px 0px 0 0px; } #container4a { width:489px; height:22px; background-color:#E0E0E0; color:#4D4747; float:left; padding-top:10px; } #container4b { width:262px; height:22px; background-color:#551001; float:right; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#FFFFFF; padding-top:10px; } #container4 p { text-align:center; clear:both; padding:15px 0; font:12px/18px Arial, Helvetica, sans-serif; } .scroller { overflow-y: auto; overflow-x: hidden; } any ideas, thanks Hi guys, On the following page http://www.thekhans.me.uk/origami.php Internet Explorer only displays the image below the content on the right hand side; This glitch is only apparent in IE, Firefox and Opera render the page correctly, like below: Any work arounds? Hi I have been working on this all day, and am starting to see double This site plays nice on all browsers except IE , the top menu that is lastchancemusic.gr/testing/ could anyone please help Hi, I would really appreciate some help sorting out an error that seems to only crop up on IE. http://www.formulation.org.uk/redesign Is fine on mac browsers (Safari/Camino/Firefox etc.). and fine on windows firefox. the problem appears to be with content wrap. It covers a majority of the banner and navigation bar background. I did manage to fix this with fixed positioning - however this caused adverse effects to the footer. Thanks in advance, Tom Hi, I'm studyng php for content management system. The php is ok. I used an external stylesheet, when i see it in Firefox is ok. But when i see it in Explorer it's not ok. The problem is on the left colum, the lists don't work well in Explorer. It seems to be difference between how Explorer and Firefox works with Stylesheets. If can anyone help to make this css code compatible for the two browsers. Here's the code of my css : /* Site Colors: #1A446C - blue grey #689DC1 - light blue #D4E6F4 - very light blue #EEE4B9 - light tan #8D0D19 - burgundy */ html { height: 100%; width: 100%; } body { width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; background: #D4E6F4; font-size: 13px; line-height: 15px; } img { border: none; } table, tr, td { border-collapse: collapse; vertical-align: top; font-size: 13px; line-height: 15px;} a { color: #8D0D19;} #header { height: 70px; margin: 0px; padding: 0px; text-align: left; background: #1A446C; color: #D4E6F4; } #header h1 { padding: 1em; margin: 0px;} #main { margin: 0px; padding: 0px; height: 600px; width: 100%; background: #EEE4B9; } #structure { height: 600px; width: 100%; } #footer { height: 2em; margin: 0px; padding: 1em; text-align: center; background: #1A446C; color: #D4E6F4; } /* Navigation */ #navigation { width: 150px; padding: 1em 2em; color: #D4E6F4; background: #8D0D19; } #navigation a { color: #D4E6F4; text-decoration: none; } ul.subjects { padding-left: 0; list-style: none; } ul.pages { padding-left: 2em; list-style: square; } .selected { font-weight: bold; } /* Page Content */ #page { padding-left: 2em; vertical-align: top; background: #EEE4B9; } #page h2 { color: #8D0D19; margin-top: 1em;} #page h3 { color: #8D0D19; } Thanks for yout time. Hey guys, I'm trying to use div classes and z positioning to make a background that will stretch to the size of the browser window. The following code works fine in Firefox but the dimensions are wrong when viewed in IE. .bg_image { width: 100%; height: 100%; left: 0px; top: 0px; position: fixed; z-index: 0; } <div class="bg_image"> <img src="image_link.extension" width="100%" height="100%"> </div> My solution so far has just been to use the following to ensure that if it doesn't load properly that at least something loads- *html .bg_image { width: 1600; height: 2150; left: 0px; top: 0px; position: absolute; z-index: 0; } Is there any way I can get IE to recognize the 100% for height and width? Hey guys, I'm in need of some help here. Okay, so. My site looks the way I want so far on google chrome and safari (mac). And right now I'm at the stage of getting it to display like the two. If anyone who decides to help doesn't have access to certain browsers, I'll further explain, but I think it's easiest said to see for yourself. Right now I'm focusing on ie6, ie7, ff3. The markup in some areas is whacky, I know, but I decided to pick up where I left off on this project (which I first began building awhile ago) instead of starting completely over with a good template. http://thecheckoutplace.com/compute...eOneNetbook.php If anyone can offer a hand, it means a lot. Cheers guys. I am developing a web site, panopticinsight dot com. The header/banner looks fine in Firefox. In IE7 and Opera, the H2 subtitle is left aligned over the globe image. In IE6 content jumps outside of container. Anyone know why there is a shift, and what I can do about it? Style sheet code pasted below: Code: body { width:800px; font:0.83em/1.4em Tahoma, Geneva, sans-serif; color:#CBD4E3; background:#000 url(images/body_bg.gif) repeat-y top center; letter-spacing:1px; margin:0 auto; } h1,h2,h3,h4,h5,h6 { font-family:"Times New Roman", Times, serif; font-style:italic; font-weight:bold; color:#e9df55; background-color:#000; } h2 { font-size:2em; } h3 { font-size:1.5em; } h4 { font-size:1.25em; } a:link { color:#8090AC; text-decoration:none; } a:visited { color:#B17F6C; text-decoration:none; } a:hover { color:#E9DF55; text-decoration:underline; } a:active { color:#E9DF55; text-decoration:none; } #container { width:760px; margin:0 auto; } #header { height:200px; width:760px; margin:0; padding:0; } #banner { height:100%; width:100%; color:#cbd4e3; background:#000 url(images/header_bg.jpg) no-repeat top left; margin:0 auto; padding:0; } #banner h1 { font-size:400%; color:#CBD4E3; background-color:transparent; float:left; display:inline; margin:0; padding:70px 0 70px 280px; } #banner h2 { font-size: 12pt; color: #e9df55; background-color:transparent; text-indent: 200pt; vertical-align: text-bottom; } navigate{ color : #105BAC; background-color : transparent; height : 20px; font-size: 100%; border-top : 1px solid #999999; } #navigate ul { list-style-type: none; margin-top: 0px; margin-bottom: 0px; margin-left: 150px; margin-right: 0px; padding: 2px 0 0 0; } #navigate ul li { display: inline; } td { font-family: Arial, Helvetica, sans-serif; } th { font-family: Arial, Helvetica, sans-serif; } p { font-size: 14px; color: #FFFFFF; left: 50px; right: 50px; } #main { width: 660px; padding-right: 50px; padding-left: 50px; } #footer { font-family: "Times New Roman", Times, serif; font-size: 9px; color: #666666; height: 100px; width: 760px; vertical-align: text-bottom; text-align: center; } #SplashImage { float: left; } .image-left { clear: none; margin-bottom: 10px; float: left; margin-right: 20px; margin-left: 10px; } .image-right { clear: none; margin-bottom: 10px; margin-left: 10px; float: right; } Hi, I thought I fixed this problem before. In the videos playlist at the bottom, video description (background black). It needs to be positioned 20 pixels down. You will understand it better if you view it in Firefox. http://pangeaadvisors.org/default.asp Code: #content #videos .playlist { float:left; width:442px; height:292px; margin:10px 0; background:#FFFFFF url(images/bg_videoplaylist.gif) repeat-x; background-position:-1px 0; border:1px solid #083684; position:relative; overflow:hidden; } #content #videos .playlist .entries { position:absolute; width:10000em; height:60px; } #content #videos .playlist .entries .video { float:left; width:422px; height:60px; font-size:14px; font-weight:bold; text-decoration:none; padding:20px; background:transparent url(images/player_entry.gif) 0 0 no-repeat; } #content #videos .playlist .entries .playing { background-position:0px -80px; } #content #videos .playlist .entries .paused { background-position:-432px -80px; } #content #videos .playlist .entries .progress { opacity:0.8; } #content #videos .playlist .entries em { float:right; color:red; font-style:normal; margin:14px; } #content #videos .playlist .entries .description { float:right; width:442px; height:212px; background:#000 url(http://flowplayer.org/img/player/btn/play_large.png) right bottom no-repeat; } #content #videos .playlist .entries .description p { color:#FFF; width:422px; height:192px; font-size:12px; font-weight:none; text-decoration:none; padding:10px; position:absolute; } My website, currently http://12.214.26.185 does not render correctly in IE. It renders in Mozilla and Konqueror. I am posting my css file. Any advice would be greatly appreciated. Hey people. i have created a "fixed" toolbar for my website and runs fine in both safari and firefox... however in IE 6 and 7 the toolbar gets stuck and does not flow with the page. i used a fix which makes it apear in the right place this can be found he http://tagsoup.com/cookbook/css/fixed/ here is the website so far, try opening it in both IE and another brouser too see the difference. http://people.brunel.ac.uk/~dt08ajm/playgroundtest/ any ideas on how i can fix it? i can post the code if needed. thanks in advance. Hi All; I generated this page : www.lilahd.com/bevi In webgen and cannot view it correctly on IE . Please view the page in IE and then in Firefox . Why does that happen . i have a div on a page that i want to be centered. i am using in css as Code: margin: 0 auto that works fine and is centered in firefox, but is left aligned in internet explorer. how to accompalish it in iexplorer ?? Hey guys, sorry if I'm asking something that's been addressed before, but just couldn't find an answer anywhere, and thought one of you genii might be able to help.... Anyway, I'm tackling my first CSS layout, and it's going pretty well so far. Cross-browser testing hasn't gone nearly as bad as I expected. asiabackpacker.com/ai-resource/ But there's one problem I just can't figure out. Here's a screenshot: asiabackpacker.com/ai-resource/images/14015507.jpg In Internet Explorer 6 on Windows XP, my header Div appears one pixel to the left. It looks fine on IE6 on any other OS, and even in IE 7 on Windows XP, but for some reason the IE6 + Windows XP combo is producing this weird result. Is this a known bug that anyone's aware of, and is there any solution? (btw, the forum rules made me strip the http's out of my urls....sorry bout that) Hey guys. I found some CSS code that will causes the latest IE 6 browsers to display an error reporting window if the service is running and close IE. It works on two computers. A celeron 1.2GHz and an Athlon 2600+. Here is the original code that IE works fine with. Code: /*nav.css*/ #nav *{font: small-caps normal 98%/1em sans-serif;display:block;} #nav * a{color:#9fb594;display:block;} #nav_list,#nav,#nav_main{float:left;clear:none;} #nav_main{background-image:url('../image/nav_bg.png');background-repeat:repeat-y;width:122px;} #nav_foot{background-image:url('../image/nav_foot.png');background-repeat:no-repeat;height:177px;width:122px;} #nav_foot{font: small-caps normal .6em/1em sans-serif;} #nav_foot a{width:105px;margin-top:2px;vertical-align:bottom;} #nav * ul{list-style-type:none;padding:0;margin:0;} #sub_nav_list{background-color:#000;text-align:right;} .nav_item,.sub_nav_item,.selected,.sub_nav_item a{width:105px;} .nav_item,.sub_nav_item,.selected,.sub_nav_item a,#sub_nav_list,#nav_foot{float:left;clear:both;} .nav_item{height:2.2em;} .sub_nav_item a{padding-bottom:.5em;min-height:1em;} .selected a.nav_hlink{font:normal small-caps 900 98%/1em sans-serif;} #nav_main * a:hover{background-color:#333;} The last item, the hover, is what is changed. Code: /*nav.css*/ #nav *{font: small-caps normal 98%/1em sans-serif;display:block;} #nav * a{color:#9fb594;display:block;} #nav_list,#nav,#nav_main{float:left;clear:none;} #nav_main{background-image:url('../image/nav_bg.png');background-repeat:repeat-y;width:122px;} #nav_foot{background-image:url('../image/nav_foot.png');background-repeat:no-repeat;height:177px;width:122px;} #nav_foot{font: small-caps normal .6em/1em sans-serif;} #nav_foot a{width:105px;margin-top:2px;vertical-align:bottom;} #nav * ul{list-style-type:none;padding:0;margin:0;} #sub_nav_list{background-color:#000;text-align:right;} .nav_item,.sub_nav_item,.selected,.sub_nav_item a{width:105px;} .nav_item,.sub_nav_item,.selected,.sub_nav_item a,#sub_nav_list,#nav_foot{float:left;clear:both;} .nav_item{height:2.2em;} .sub_nav_item a{padding-bottom:.5em;min-height:1em;} .selected a.nav_hlink{font:normal small-caps 900 98%/1em sans-serif;} #nav_main * a:hover{background-color:#333; width:80%;margin:auto; } This works fine in Firefox, doesn't look too good. I'm trying to figure something out so that when it's actived it looks kinda like the buttons used in a lot of linux console setup programs. Like the nvidia driver installer and the slackware setup buttons. Trying to figure out how to make this crapy looking site look better. I guess stupid "animations" based on linux console isn't the best way to go :P Let me guide you to a page I just wrote on this subject. http://www.freewebs.com/desertowl/textblink Hi everyone! I'm pulling my hair out on this one. I must confess I'm a bit green when it comes to css, but I've been playing around with this page and was finally able to get it looking the way I want in IE. If you look at it in Firefox or Netscape, the container doesn't expand at the bottom, and the links just spill out. Any ideas on how I can get this to expand like it does in IE? http://www.gotop100.com/test.html Thanks! I am trying to see what is the problem at my css with internet explorer 6.0, all text is put at the bottom of the page, however in firefox, safari or opera it works fine. Please check it he ucables.com/search/iphone css style used is he ucables.com/account/styles/ucables.css Please can you help me to find what is the problem i dont know what internet explorer bug is causing this problem THank you in advance |