CSS - Ie Bug Killing Div Background
I have an annoying bug in a layout I did recently that is causing my DIV background not to show up in IE.
gthing.net/SUTFFS/vizad/ You can see the sidebar and feature area are contained within the "feature" div, which is supposed to have the gray background. Works in FF, but not in IE. I've played around with a few things trying to get it to work, but no luck. Any ideas? Thanks in advance (okay, I read the forum rules and this isn't a spam link that I'm trying to post, so what gives? I'm just looking for help) Similar TutorialsIf you look at this page: http://www.cambridge.org/elt/scandinavia/ At the top there are links called Catalogue and Resources. Both which have graphical arrows pointing to them. In any browser other than IE7 the links work. But in IE7 they're just like normal text. I've not coded the page but I'm trying to fix it. I think I've figured out what may be causing it. If I remove the CSS that places the top rounded corner graphics in that div then the links work in IE7 or if I adjust the padding to move the links above the rounded cap graphics then they work. This is the code: Code: .home #main-top { background-image: url("../rx_images/home-main-top-l.gif"); } .home #main-top-rcap { background-image: url("../rx_images/home-main-top-rcap.gif"); } I wouldn't have thought there is any reason this code in itself should cause a problem and because there are quite a few stylesheets, I'm not going to link to them all. What I was wondering, are there any known bugs that may be causing this and how it could be fixed? I have a div with a background color set, that I want to have slightly transparent. Inside that div, is essentially my entire website. Now if I apply the opacity to the main outer div, all the divs inside inherit that transparency. Any ways to get around this? The outer Div with the transparency is the "content_wrapper" div. It excludes the header and footer. So the only issue is correcting everything wrapped inside the "content_wrapper" and "content" div. I tried setting the "content" div to opacity: 1; but it had no effect whatsoever. http://www.area51entertainment.co/index.php?about The layout I have going is a bit difficult to explain. Here's a diagram.. The area of importance is the header. The content and main head area are centered. The area to the left and right of the header are a <div>. However, as you can see, the background image on the left is different than the one on the right. I'm having difficulty making this work. the images can be stretched horizontally without a problem, but the two sides must meet in the middle beneath the header. I hope this makes sense. What I've got to do, I think, is tell the background image of the underlying <div> to stretch to 100%, and make this image 300px wide or so including both sides of the image and a split. The split would hide behind the header. I can't find a method to stretch the background image, though. Does anybody know of a better way, or a way to achieve this method at all without getting into completely different layouts? Thanks in advance for any assistance/suggestions. So I have a design where the background is a large (1400x1100) image that fades into a vertical gradient at the edges. I've set up the css as follows: body { background: #000 url(gradient.jpg) repeat-x; margin: 0; } Here's where I run into my problem... I've created an empty DIV to hold the large image which will appear on top of the gradient and positioned it absolutely. <div id="bg_image"></div> #bg_image { width: 100%; height: 1100px; background: url(images/bg_image.jpg) no-repeat top center; margin: 0; position:absolute; } This works and the background looks like it should, however because the large image is inside a DIV, any time the browser window is smaller than that div (which will be the case for most users considering the image size) there will be scrollbars. This makes perfect sense of course I just can't come up with an alternative. If there was a way to extend a background image beyond the borders of a DIV that would work but overflow:visible; doesn't seem to work with background images only content. I wish I could set a repeating background AND a static background in the body style, because that is exactly the effect I'm trying to achieve. Any suggestions would be greatly appreciated! Thanks, Josh I have a table with a specified background color (specified in CSS). The content part of the table (a cell) uses information from a downloaded script (wordpress.com) to load information. I want the table background to shine through everything. How can I accomplish this (I suspect it is in the script CSS, but I don't know what). URL The 'home' page is how I want it (basically that background effect). But the other pages come out funny with no background. Could someone solve this, or alternatively reccommend another way. In short, I'm trying to get this one image to tile down the page to the bottom, underneath a static background image. Basically, it's a 2pixel high image that's ready to tile vertically, just having a tough time getting it to work. You can clearly see the problem here, a gap at the bottom: http://www.groundedgroup.com/clients/NWR/ Here's the relevant css: http://www.groundedgroup.com/client...WR-GG/style.css I've googled and subsequently tried out some solutions, but no luck. Got any ideas? Thanks in advance. PS - Is there a way to keep the spiders from indexing my links above? The site is on a test server, so I don't want the url indexed. I have background image for bullet. However, in Firefox it tries to display several of them for one line, and in IE it is like it should - one background image per line. Ive set background to no-repeat, and it still doesn't work in FF. Help plz. See the problem here http://www.armedassault.org/wp/ I want to make a webpage with ah gradient border on the left and right side of the page. The gradients will be "fading out" towards the middle. How should I do this? I know how to get one side to show up, but not both. Can I use two different backgrounds in one CSS element? (probably not) Or should I use two different <div> tags with backgrounds set with what I want and are as big as the page? Thanks. Is it just IE that using a gif as a background url not work... or is that one of the standards.. I know jpgs work.. but why not gifs? someone know how to make a web with background like this... http://netcodigo.webinfo.es/ I tried, but I can't do it. pd: Sorry for my bad english. Hello, How can add a background color to each table cell in a table header and also add a small image on the bottom right corner of each of those cells? Thanks, Miguel whats wrong with this? body { font-family:arial; font-color:#000000; background:url(background/bg.jpg); } its the background bit that isnt working it works when the css is included on the page but when i put it on a seperate stylesheet it hasnt worked Hi all. I'm having a small but very annoying problem with my new design. I'm using backgrounds for my divs but somehow Internet Explorer manages to push them one pixel upwards and to the left. I can't find out why and after trying things for three hours I don't know what to try anymore. In both Firefox and Opera it works fine! Here is a screenshot where you can clearly see what goes wrong. The one on the top is Internet Explorer, the one on the bottom is made in Firefox and is how it is supposed to be. URL Site: URL CSS: URL I also found out that the footer of my page doesn't go to the bottom correctly in Opera. If anybody knows how what the problem is there and how to fix it I will be the happiest person on earth Thx in advance. Greetings, Sjoerd Hi, I'm building a website for my work and got in a little trouble. I do not know if it is just the browser or the code. I'm new to this CSS and HTML so i'm not 100% sure. I needed my background fixed which i had done, and on my home computer the main stuff on my page just floats above the background. On my work computer the main information is when you scroll down, after the background image. I'm confsued and wondering if anyone could help, thanks. Here is also a link to the page so you can see what the problem is, http://www24.brinkster.com/mattphat/ymca2.html Code: <html> <head> <TITLE>Northwest Connecticut YMCA | We build strong kids, strong families, strong communities.</TITLE> <style type="text/css"> html {height:100%;}body {height:100%; margin:0; padding:0;} #bg {position:fixed; top:0; left:0; width:100%; height:100%;} #content {position:relative; z-index:1;} </style> <!--[if IE 6]> <style type="text/css"> html { overflow-y: hidden; } body { overflow-y: auto; } #bg { position:absolute; z-index:-1; } #content { position:static; } </style> <![endif]--> </head> <body> <! --- --- BACKGROUND IMAGE --- ---> <div id="bg"> <img src="YMCA/graudal1.jpg" width="100%" height="100%"> </div> <! --- --- DONE BACKGROUND IMAGE --- ---> <! --- --- MAIN PAGE BORDER--- ---> <div id="content"> <div align="center"> <table width="727" border="1" color="#736F6E" cellspacing="0" cellpadding="0"> <! --- --- DONE MAIN PAGE BORDER--- ---> <!--- --- MAIN PAGE POSITION STAY --- ---> <td align="left" valign="top" bgcolor="#FFFFFF"> </td> <td rowspan="2" align="left" valign="middle" background="" bgcolor="#000000"> <form id="search" name="search" method="get" action="search_results.asp"> <table width="383" border="0" cellspacing="0" cellpadding="0"> <!--- --- DONE MAIN PAGE POSITION STAY --- ---> <!--- --- NWCTYMCA LOGO --- ---> <td align="left" valign="top" bgcolor="#FFFFFF"> <img src="YMCA/NWLOGO2.JPG" width="727" height="289" border="none" usemap="#Map"> </td> <tr> <td colspan="2" bgcolor="#FFFFFF"> </td> </tr> <!--- --- DONE NWCTYMCA LOGO --- ---> <!--- --- BARS ABOVE LINKS --- ---> <!--- BLACK BAR ---> <tr> <td colspan="2"> <img src="images/clear_spacer.gif" width="727" height="0"> </td> </tr> <!--- RED BAR ---> <tr align="left" bgcolor="#A93333"> <td colspan="2"> <img src="images/clear_spacer.gif" width="727" height="0"> </td> </tr> <!--- STRONG KIDS BAR ---> <tr align="center" bgcolor="#FFFFFF"> <td colspan="2"> <img src="http://www.ymcadc.org/PublishingImages/webuild_tagline.gif" width="360" height="15"> </tr> </td> <!--- --- DONE BARS ABOVE LINKS --- ---> <!--- --- LINKS --- ---> <tr bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0"> <td colspan="2"> <div align="left"> <img src="ymca/miniY.jpg"></img> <!-HOME-> <a href="http://www24.brinkster.com/mattphat/YMCA2.html" ONMOUSEOVER=rollover.src="YMCA/homelink2.jpg" ONMOUSEOUT=rollover.src="YMCA/homelink.jpg"> <img src="YMCA/homelink.jpg" name="rollover" width="89" height="28" border="0"></a> <img src="images/nav_line.gif" width="1" height="25"> <!-TORRINGTON-> <a href="http://www24.brinkster.com/mattphat/ymcatorrington.html" ONMOUSEOVER=rollover2.src="YMCA/Torringtonlink2.jpg" ONMOUSEOUT=rollover2.src="YMCA/Torringtonlink.jpg"> <img src="YMCA/torringtonlink.jpg" name="rollover2" width="140" height="28" border="0"></a> <img src="images/nav_line.gif" width="1" height="25"> <!-WINSTED-> <a href="http://www24.brinkster.com/mattphat/ymcawinsted.html" ONMOUSEOVER=rollover3.src="YMCA/winstedlink2.jpg" ONMOUSEOUT=rollover3.src="YMCA/winstedlink.jpg"> <img src="ymca/winstedlink.jpg" name="rollover3" width="109" height="28" border="0"></a> <img src="images/nav_line.gif" width="1" height="25"> <!-CANNAN-> <a href="http://www24.brinkster.com/mattphat/ymcacannan.html" ONMOUSEOVER=rollover4.src="YMCA/cannanlink2.jpg" ONMOUSEOUT=rollover4.src="YMCA/cannanlink.jpg"> <img src="ymca/cannanlink.jpg" name="rollover4" width="93" height="28" border="0"></a> <img src="images/nav_line.gif" width="1" height="25"> <!-GIVING-> <a href="http://www24.brinkster.com/mattphat/ymcagiving.html" ONMOUSEOVER=rollover5.src="YMCA/givinglink2.jpg" ONMOUSEOUT=rollover5.src="YMCA/givinglink.jpg"> <img src="ymca/givinglink.jpg" name="rollover5" width="86" height="28" border="0"></a> <img src="images/nav_line.gif" width="1" height="25"> <!-ABOUT US-> <a href="http://www24.brinkster.com/mattphat/ymcaaboutus.html" ONMOUSEOVER=rollover6.src="YMCA/aboutuslinks2.jpg" ONMOUSEOUT=rollover6.src="YMCA/aboutuslinks.jpg"> <img src="ymca/aboutuslinks.jpg" name="rollover6" width="104" height="28" border="0"></a> <img src="ymca/miniY.jpg"></img> </div> </td> </tr> <!--- --- DONE LINKS --- ---> <!--- --- BOTTOM RED BAR --- ---> <tr align="left" valign="top" bgcolor="#A93333"> <td colspan="2"> <img src="images/clear_spacer.gif" width="727" height="3"> </td> </tr> <!--- --- DONE BOTTOM RED BAR --- ---> <!--- --- BODY TEXT SECTION --- ---> <td align="left" valign="top" bgcolor="#FFFFFF"> <center> <P>YMCA YMCA YMCA YMCA YMCA YMCA <P>YMCA YMCA YMCA YMCA YMCA YMCA <P><s>FIX BACKGROUND *DONE*</s> <P>NEW STRONG KDIS .GIF <P><s>TOP BAR LINK IMAGES *DONE*</s> <P><s>NEW LOGO / HEADER BAR *DONE*</s> <P>SEE ABOUT NEW COLORS FOR LINK ROLLOVERS <P>LEFT SIDE LINKS FOR EACH PAGE <P>COPYRIGHT INFO AND REGULAR LINKS AT BOTTOM OF PAGE <P>YMCA YMCA YMCA YMCA YMCA YMCA <P>YMCA YMCA YMCA YMCA YMCA YMCA </center> <br> <br> <center> <a href="">Home</a> | <a href="">Torrington</a> | <a href="">Winsted</a> | <a href="">Cannan</a> | <a href="">Giving</a> | <a href="">About Us</a> <br> 2009 Northwest Connecticut YMCA. <br> The YMCA is a 501(c)(3) not-for-profit social services organization dedicated to <br> building strong kids, strong families and strong communities. </center> <!--- --- DONE BODY TEXT SECTION --- ---> </div> </body> </html> I have a div box with a 100% width and a repeating background image on it. Everything works great except when the window is smaller then the actual site. If I resize my window so that the horizontal scrollbar appears, as if I had a 15" monitor, the background image does not go all the way to the edge. Instead it is only the width of the browser window, although the content of that box displays fine. Anyone know how to fix that? Am design a site just now this is the image of the site here The problem is the blue background what is the best way to do this just now i have it like this by use a repeat of part of the image but want the cloud part at the top left too. Hi Hoping someone might be able to help me. I'm working on a site but i can't for the life of me figure out how to get the background color to show. They sent me the index page and the two css style sheets for it. I can get the menu to do anything i want except the red background bar to show up. Hope someone can point me in the right direction. Thanks in advance for any help MsKazza This is the menu on the index page Code: <div id="menu"> <ul> <li class="active"><a href="index.html">home</a></li> <li><a href="design.html">design</a></li> <li><a href="printing.html">printing</a></li> <li><a href="websites.html">websites</a></li> <li><a href="marketing.html">marketing</a></li> <li><a href="prepress.html">prepress</a></li> <li><a href="contact.asp">contact</a></li> <li><a href="clients.html">clients</a></li> <li><a href="links.html">links</a></li> <li><a href="login.html">login</a></li> </ul> </div> this is the related css: Code: /* Menu */ #menu { width: 802px; height: 45px; margin: 0 auto; border-right: 1px solid #EDEBD5; } #menu ul { margin: 0; padding: 0; list-style: none; } #menu li { display: inline; } #menu a { display: block; float: left; width: 79px; height: 28px; border-left: 1px solid #EDEBD5; text-transform: lowercase; text-decoration: none; text-align: center; font-size: 1.2em; color: #FFFFFF; vertical-align: middle; font-family: Geneva, Arial, Helvetica, sans-serif; padding-top: 15px; padding-right: 0; padding-bottom: 0; padding-left: 0; } #menu a:hover { background: #F7F7F4; color: #990000; } #menu .active a { color: #FFFFFF; background-color: #600000; } Hello, I have been struggling for several days with a very strange issue that appears ONLY in IE 8 and 9. Google searches revealed nothing. Here is what my page is SUPPOSED to look like: And here is how IE 8 and 9 render it: As you can see, the background in the container div duplicates. Here is the css: Code: .header { height: 45px; width: 300px; position: absolute; left: 0px; top: 0px; font-family: Trebuchet MS Bold; color: #000000; text-decoration: none; word-spacing: normal; letter-spacing: 0; font-size: 26px; font-weight: bold; z-index: 5; } .headwrapIE { z-index: -1; } .headerghost { background: #FFFFFF; width: auto; height: 100px; position: absolute; left: 0px; top: 0px; z-index:4; } .headerbg { background: #FFFFFF; width: 100%; height: 100px; position: absolute; left: 0px; top: 0px; z-index:0.5; } .searchcontainer { z-index: 7; margin-top: 5px; margin-right: 5px; position: absolute; float:right; text-align: right; top: 5px; right: 0px; } .iefix { z-index: 9999; } .container { border-left: 1px solid #000000; padding-left: 5px; margin-left: 163px; position: relative; top: 155px; background: url(gbmountains.png) left bottom repeat-x; font-family: Trebuchet MS Bold; color: #000000; text-decoration: none; word-spacing: normal; letter-spacing: 0; font-size: 13px; height: 100%; padding-bottom: 90px; z-index:-1; } a.side:link { text-decoration: none; color:#777777; } a.side:visited { text-decoration: none; color:#555555; } a.side:hover { text-decoration: none; color: #66CCFF; } a.side:active { text-decoration: none; color:#777777; } .heading { font-size: 14px; color: #3399CC; text-decoration: underline; font-weight: bold; } .imagecaption { font-size: 10px; color: #777777; text-align: center; width: 250px; margin-bottom: 10px; } .slogan { font-size: 13px; font-style: italic; } .sidehead { color: #000000; text-decoration: underline; } .SIDEBG { position: absolute; top: 0px; left: 0px; height: 100%; width: 200px; float: left; z-index: -100; background:#fff url(sidebar.png) repeat-y; } .AllContain { position: absolute; top: 0px; left: 0px; padding-bottom: 155px; width: 100%; z-index: 0; } .AllContainhome { position: absolute; top: 0px; left: 0px; padding-bottom: 505px; width: 100%; z-index: 0; } .sidebar { margin-right: 10px; border-right: 1px solid #000000; z-index: 3; padding-top: 5px; width: 150px; text-align: right; padding-right: 13px; position: absolute; left: 0px; top: 0px; padding-top: 150px; font-family: Trebuchet MS Bold; color: #000000; text-decoration: none; word-spacing: normal; letter-spacing: 0; font-size: 11px; font-weight: bold; } .sidecontents { margin-right: 10px; z-index: 3; padding-top: 5px; width: 150px; text-align: right; padding-right: 13px; position: absolute; left: 0px; top: 0px; padding-top: 150px; font-family: Trebuchet MS Bold; color: #000000; text-decoration: none; word-spacing: normal; letter-spacing: 0; font-size: 11px; font-weight: bold; margin-top: 15px; } .footer { border-top: 1px solid #000000; position: absolute; left: 0px; text-align: right; padding-top: 5px; padding-right: 5px; margin-left: -5px; font-size: 11px; background: #777777; height: 20px; margin-top: 155px; left: 0px; width: 100%; } .foothome { border-top: 1px solid #000000; position: absolute; left: 0px; text-align: right; padding-top: 5px; padding-right: 5px; margin-left: -5px; font-size: 11px; background: #777777; height: 20px; margin-top: 505px; left: 0px; width: 100%; } #nav-menu ul { list-style: none; padding: 0; margin: 0; } #nav-menu li { float: left; margin: 0 0.15em; } #nav-menu li a { background: url(background.gif) #fff bottom left repeat-x; height: 2em; line-height: 2em; float: left; width: 9em; display: block; border: 0.1em solid #dcdce9; color: #0d2474; text-decoration: none; text-align: center; } /* Hide from IE5-Mac \*/ #nav-menu li a { float: none } /* End hide */ #nav-menu { width:30em } And the page: Code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/main.css" type="text/css" media=screen /> <link rel="stylesheet" href="menu/menu_style.css" type="text/css" /> <link rel="Stylesheet" type="text/css" href="css/blinds.css" /> <script src="tools/jquery.tools.min.js"></script> <link rel="stylesheet" type="text/css" href="css/tabs-slideshow.css"/> <title> <?php echo $title ?> - Nortrat Consulting </title> </head> <body> <div class="AllContain"> <div class="SIDEBG"></div> <div class="headwrapIE"> <div class='header'> <a href="?page=home"><img style="border:none;" src="images/norstratlogo.png" alt="NORSTRAT Consulting" height="100px" /></a> </div> </div> <div class="headerbg"><div class="searchcontainer"></div></div> <div class="headerghost"> <div style="z-index:4000;"> <div style="z-index:3000;"> <ul class="menu"> <li class="top"><a href="?page=Home" target="_self" class="top_link"><span>Home</span></a> </li> <li class="top"><a href="?page=Cnorth" target="_self" class="top_link"><span>Our Changing North</span></a> <ul class="sub"> <li><a href="?page=Nstrat" target="_self">Northern Strategy</a></li> <li><a href="?page=Challenges" target="_self">Challenges</a></li> <li><a href="?page=Projects" target="_self">Projects</a></li> <li><a href="?page=News" target="_self">News</a></li> </ul> </li> <li class="top"><a href="?page=About" target="_self" class="top_link"><span>NORSTRAT Consulting</span></a> <ul class="sub"> <li><a href="?page=Services" target="_self">Services</a></li> <li><a href="?page=FirstStep" target="_self">First Step</a></li> <li><a href="?page=LeeCarson" target="_self">Lee Carson</a></li> <li><a href="?page=Partners" target="_self">Partners</a></li> </ul> </li> <li class="top"><a href="?page=Contact" target="_self" class="top_link"><span>Contact</span></a> </li> </ul> </div> </div> </div> <div class="headwrapIE"> <div class="sidebar"> <div class="sidehead">Sections</div> <div class="sidecontents"> <?php //Display all headings $posts = array_reverse($posts); foreach ($posts as $post) { $POST_id = $post["ID"]; $POST_SHeading = $post["SHeading"]; echo '<a class="side" href="#POST' . $POST_id . '">' . $POST_SHeading . '<a/><br/>'; } ?> </div> </div> </div> <div class="menughost"></div> <div class="iefix"> <div class="container"> <?php //Display all posts foreach ($posts as $post) { $POST_id = $post["ID"]; $POST_pID = $post["pID"]; $POST_Heading = $post["Heading"]; $POST_SHeading = $post["SHeading"]; $POST_Text = $post["Text"]; $POST_ImageURL = $post["ImageURL"]; $POST_ImageALT = $post["ImageALT"]; $POST_ImageCAP = $post["ImageCAP"]; echo '<a name="POST' . $POST_id . '"><div class="heading">' . $POST_Heading . '</div></a>'; echo $POST_Text; if ($POST_ImageURL != "" && $POST_ImageURL[strlen($POST_ImageURL)-3] == '.') { echo '<div class="imagecaption">'; echo '<img src="' . $POST_ImageURL . '" alt="' . $POST_ImageALT . '" width="250"/><br/>'; echo $POST_ImageCAP; echo '</div>'; } } ?> </div> </div> <div class="footer"> Copyright 2010, NORSTRAT Consulting </div> </div> </body> </html> Thanks in advance, Richard Carson Hi there, I am trying to place a fixed backgroung image to a div, which is to be position to the bottom right of the screen. The code I have so far: Code: body#fixed { background-image: url(../images/fixed-bg.png); background-position: bottom right; background-repeat: no-repeat; background-attachment: fixed; } using <div id="fixed"></div> However it doesn't seem to work. I can't add the bg image to the body style as I already have another background image specified for the entire document. Any ideas? hey guys i have wrote this up so i can display 2 background images on my page but nothing shows up at all any idea why? Code: <style type="text/css"> <!-- html { background-image: #FFFFFF url((URL address blocked: See forum rules)); background-repeat: repeat-y; background-position:0px 155px;} body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; } body { background-image: transparent url((URL address blocked: See forum rules)); background-repeat: repeat-y; background-position:15px 0px; } --> </style> |