CSS - Fire Fox And Div Height
I am having a problem with firefox adusting the height of two of the divs that act as containers for the inner most colums.
I have the outer most container (wrapper) and an inner container (contentbox) that will not expand to the height of the inner divs. See attachment Any suggestions Here is the CSS Code: /* -------------------------- CSS Document :: NGIT NS LAYOUT -------------------- */ .wrapper { border: 1px solid #000000; background-color: #b94b12; height:auto; width: 800px; margin-left:80px; margin-right:auto; left: auto; top: auto; } img { border: 0px; } body { background-color: 999999; margin-top: 10px; } .navbar { background-color: #b94b12; position: relative; height:auto; width: 20%; float: left; clear: right; } .leftcolumn { background-color: #FFFFCC; height:auto; width: 260px; float: left; clear: right; } .rightcolumn { background-color: #FFFFCC; height:auto; width: 244px; float: left; clear: right; } .fullcolumn { background-color: #b94b12; width: 100%; } .contBox { height:auto; width: 800px; margin-left: auto; padding-top: 12px; padding-right: 14px; padding-bottom: 16px; padding-left: 16px; } .content { background-color: #FFFFCC; height:auto; width: 90%; padding-top: 12px; padding-right: 14px; padding-bottom: 16px; padding-left: 16px; } Similar TutorialsHi gang, I am working on a website that is 95% complete - but I am running into one bug. The CSS code that allows the thumbnails to have an information balloon pop-up is not working on Fire Fox or Safari. I have tried everything to the best of my knowledge - but I believe it needs an expert at this point. Any suggestions you can provide would be greatly appreciated. The site is (URL address blocked: See forum rules) and the CSS file can be found at (URL address blocked: See forum rules) The clothing thumbnails on the homepage will give you an example of what is happening. Basically - the column that the thumbnail appears in expands beyond its 125 pixel constraint and blows everything to the right. How it looks in IE is how it should look in Fire Fox and Safari as well. Thanks for your time. Aloha, Ka'o The top image on my site lines up perfectly with the buttons in firefox but is off by a pixle in internet explorer! please help! my site is on digitalplus.webs.com I am trying to make a site for a program I am working on and every time I program the curved box threw Fire Fox it looks good. But when IE looks at it and messes it up! Here is the site: www.bf2editor.org/Doom3Scripter Here is the CSS code: Code: alink {color: blue;} ahover {color: red} avisisted {color: blue} body {background-color: black} .curved-box { width: 400px; margin: 10px; background-color: #898989; } .curved-box b { background: #898989 url(bevel1.jpg) no-repeat left top; color: white; padding: 10px 20px 30px 343px; } .curved-box p { background: #898989 url(bevel2.jpg) no-repeat left bottom; margin: 0px; height: 20px; padding: 1px 1px 1px 0px; text-align: left; } .logo {margin-left: 6cm;} I'm trying to make a simple style sheet that will work with firefox, I can get one to work in Internet Explorer but not in firefox. I have split up the stylesheet and tried to import it through php but when it came up, things like repeating-x or y factors didn't show up. I need some help and heres an example of my style rather simple. Code: BODY { font-size: small; margin: 5px; color: black; font-family: Courier New; background-color: #f1f1f1; } .lcolumnt { background-position: right top; background: white url(images/css_bg_lcoumn.gif) no-repeat; font-size: small; } .lcum { background-position: right center; background: white url(images/bg_lcoumn.gif) repeat-y; } TABLE { font-size: 11.5px; COLOR: #000000; font-family: Courier New; } INPUT { border-right: #a4a4a4 1px solid; border-top: #a4a4a4 1px solid; font-size: x-small; border-left: #a4a4a4 1px solid; color: #585858; border-bottom: #a4a4a4 1px solid; font-family: Courier New; background-color: #f4f4f4; } .contentheader { background-position: left center; background: url(images/main_content_header.gif) no-repeat; } .mctop { background-position: left top; background: url(images/mc_bg_top.gif) repeat-y; } .mcbg { background-position: 0% 50%; background: url(images/mc_main_bg.gif) repeat-y; } A:link { font-size: small; COLOR: black; font-family: 'Courier New'; text-decoration: none; } A:visited { font-size: small; COLOR: gray; font-family: 'Courier New'; text-decoration: none; } A:hover { font-weight: bold; text-decoration: underline; } Ok look i want to make a dedicate for me and 5 of my freind we are in the same block. and we want a private server for 5 of our friends. so what is the command to do the ak rapid fire. tyvm. http://www.hybridillusions.com/wordpress/ As you see, the top menu s having issues... One Firefox is displays fine, but on IE7, it is a mess! What could be wrong? here is the location of the CSS file. I'm willing to compensate with the sell of this design, for any help on this issue. thank you. (#top-menu CSS is controlling the parts that I'm havign issues with) I have this proplem on my site where it looks perfect in IE but in Fire Fox it looks like cr@p. http://www.bf2editor.org/ I want my CSS to look the same way on Fire Fox how can I fix this? This is my CSS doc Code: a:link {color: black; text-decoration: underline} a:visited {color: black; text-decoration: underline} input {font-size: 12px; font-weight: bold;} body { background-color: 000000; margin:0; padding:0; line-height: 1.5em; } hr {color: black} .top{ clear: left; width: 100%; background-image: url('bar2.png'); background-repeat: repeat-x color: #FFF; text-align: center; font-style: arial; font-family: arial; } .top2{ clear: left; width: 100%; background-image: url('bar2.png'); background-repeat: repeat-x color: #FFF; text-align: center; font-style: arial; font-family: arial; } .top3{ clear: left; width: 100%; background-image: url('bar2.png'); background-repeat: repeat-x color: #FFF; text-align: center; font-style: arial; font-family: arial; margin-top: -48; } div#news { background-color: E5E5E5; width: 140px; margin-top: 30; margin-left: 22; } div#login { background-color: E5E5E5; width: 140px; margin-left: 22; margin-top: 2; } div#about { background-color: #CCCCCC; width: 797px; height: 500; margin-top: -2; margin-left: 52; } div#who { background-color: E5E5E5; width: 140px; margin-left: 22; margin-top: 2; } } div#info { background-color: 898989; width: 600px; margin-top: 1cm; margin-left: 4cm; } div#info h2 { background: url( bar.png ); color: #ffffff; background-repeat: repeat-x; } div#p { } /*Page Layout*/ #maincontainer{ width: 969px; /*Width of main container*/ margin: 0 auto; /*Center container on page*/ } #contentwrapper{ float: left; width: 100%; } #contentcolumn{ margin-left: 100px; /*Set left margin to LeftColumnWidth*/ } #leftcolumn{ float: left; width: 160px; /*Width of left column*/ height: 836px; margin-left: -990px; /*Set left margin to -(MainContainerWidth)*/ background: #898989; } .innertube{ margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/ margin-top: 0; } For a project I'm working on, for whatever reason, I cannot get that left side at the top. It appears fine in Opera 6, but in that browser, the content is far to the right. I've been dealing with this all day. Usually, I do have minor problems with getting the float right, but I usually figure it out. For the life of me, though, I cannot figure out what I'm missing. Any ideas out there? I appreciate it. Tim Trice Thanks for taking the time to read my question. I am having problems with my #MenuItem a:hover in IE. I really don't know why. It refers to the left nav on the page. In IE the links at the bottm of the left nav list act funny. Place the mouse around the area between the text (the line separating the two boxes) It seems that IE is not sure which one to activate for the hover event. If that makes no sense, just move you mouse over all the links in the left nav from top to bottom and hopefully you'll see what I mean. It works fine in Fire Fox.... ya I know typical. Any suggestions? Brad Pierced is my band name. I don't have any other URL to post this under for people to view. http://www.pierced.ca/FeedProductionRecordsHelp.htm http://www.pierced.ca/FeedProductionRecordsHelp.css This is one of Many issues I have with fire fox, Basically I want a list of hyperlinks with no bullets. Normally I would set list-style-type = "none" for the <uL> tag and that would be it. In fire fox, the list disappears. Also it appears that FF has issues with hyperlink in a list because even with out the style type set, the list disapears. CSS Code: a:link { font-family: "Bradley Hand ITC", "Monotype Corsiva"; color: #999999; } ul{ margin:10px; padding: 10px; list-style-type: none; } li { font-family: "Bradley Hand ITC", "Monotype Corsiva"; color: #999999; } html Code: <div id="projects"> <h1>Projects</h1> <P> <ul> <li><a href="#">1</a></li> <li><a href="#">1</a></li> <li><a href="#">1</a></li> <li><a href="#">1</a></li> </ul></p> </div> Hi all, I am trying to automate everything on my test website and I have one more angle to cover. In effect, I want to adjust the line-height property (which I can do) based on the number of files within a specific folder (PHP and already done). The more files in the folder, the lower the line-height value must be. This is to ensure if I copy additional files into the folder, then the navigation menu (which is PHP reading files in this particular folder) will alter the CSS line-height property accordingly to ensure it can never exceed a certain height. Sounds wierd? go to www.re3.org.uk (next to the RE3 image, I have a list of hyperlinks which are obtained from files within the folder) My problem, when adjusting the CSS property (which is set as cm in *.css file) in javascript, it doesn't correspond correctly, the line-height property in javascript doesn't appear to be work in cm but some other measurement. Does anyone know how to change what unit of measurement Javascript works in? Or does anyone know what unit of measurement javascript uses when adjusting line-height / line-width values? I want to create a mini-algorithm that works out the appropriate line-height based on the image height (got that already) and the number of files in the folder (got that too) so the menu automatically adjusts to fit. Whew! Hello Just recently I had an idea for a page I wanted to make, the design is basically a 3-column layout with no traditional header or footer, the height of all three columns should run the length of the window/page height the left and rightmost column would have a fixed width or a width in em, the center column width should fill the space in between. If the content is short all columns should extend to the height of the page window, but if the content in any of the columns is longer than the window height they should all extend to reach the bottom of the page and accommodate the content length In my first attempt things didn't go so well, results varied wildly across browsers so I decided to start from scratch bit by bit Bellow is the point at which I reach consistent but undesired behaviour, I have validated and tested the code in Firefox 3/Pale Moon, Internet Explorer 8, Chromium 9, and Opera 11 I would like the end result to work in the above browsers as well as IE7 if possible I should point out now that im not interested in using faux-columns, the layout should not require images, I also wish to have absolute-positioned elements in the columns some time later Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Three Columns</title> <style type="text/css"> *, html, body { margin: 0; padding: 0; font-size: 100%; } html, body { width: 100%; height: 100%; } #maincontainer { position: relative; height: 100%; background: #eee; } #left { position: absolute; top: 0px; left: 0px; width: 200px; background: #fbb; height: 100%; } #mid { position: relative; margin: 0 200px 0 200px; background: #efe; height: 100%; } #right { position: absolute; top: 0px; right: 0px; width: 200px; background: #bbf; height: 100%; } </style> </head> <body> <div id="maincontainer"> <div id="left"> left start<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left end<br /> </div> <div id="mid"> mid start<br /> mid<br /> mid<br /> mid<br /> mid<br /> mid<br /> mid end<br /> </div> <div id="right"> right start<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right end<br /> </div> </div> </body> </html> In the above example it works as long as the content within the columns is shorter than the window height, but if you re-size the window so that the text in the right or left column goes beyond the page, and then scroll to the bottom, the columns do not extend to the bottom of the page so there is a large gap where the content overflows beyond the column What I would like to do from this point is make the columns extend to the bottom of the page when this happens, but I'm not sure how best to proceed I also have a version of the above code which uses floated left and right columns instead of absolute positioned ones, would it be better to work from that? or does it not really matter Thanks in advance It seem that everytime I added the image tag, the div'x area get bigger in IE but not in Mozilla/Firefox browser. So, I thought by added the "margin-bottom:-360px;" to the div would fix it but it had an opposite effect. Meaning it worked in IE but Mozilla show a vertical scrollbar. So, does anyone know how can I make the <img> overlap one another without being stacked on one after another in height for IE if I take out the "margin-bottom: -360px;"? Thanks... Code: div.divBox1 { width: 286px; height: 359px; float: left; } div.divClearFloat { clear: both; height: 0px; /* For IE Stupidity (it added some spaces after clearing the float) */ font-size: 1pt; /* For IE Stupidity (minimum height only work with current font-size somewhere) */ } div.divDottedLineAdvertisementSeperator1 { width: 575px; height: 3px; background-color: #ff0000; font-size: 1pt; /* For IE Stupidity (minimum height only work with current font-size somewhere) */ } Code: <div class="divBox1"> <div style="margin-bottom:-360px;"> <img src="images/doctor.jpg" style="position:relative;top:0px;left:0px;z-index:2;"> <img src="images/we_help.jpg" style="position:relative;top:-360px;left:0px;z-index:1;"> </div> </div> <div class="divClearFloat"></div> <div class="divDottedLineAdvertisementSeperator1"></div> I've never done much CSS work, but I know this has to be an easy fix. Each DIV appears to be 10px higher when viewed in IE. I want them to be 8px high and they end up being 18px high. In Firefox, Netscape, and Opera it works fine. Anyone mind correcting this imbarrassing little problem? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title>IE 10px Padding Problem</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body { margin:0px; } #container { position:relative; margin:auto; width:730px; } #header { height:110px; } .textualtop { border:1px solid #000000; height:8px; } .textualbottom { border:1px solid #000000; height:8px; } </style> </head> <body> <div id="container"> <div id="header"></div> <div class="textualtop"></div> <div class="textualbottom"></div> <div class="textualtop"></div> <div class="textualbottom"></div> <p>Notice how in IE6 each DIV is 10px higher then in FF. Why is it doing this?</p> </div> </body> </html> Hello everybody! I have been having a big problem with my webpage for a long time now and hope I can find an answer to my problem with your help. I want a div that contains the content of my pages (which varies in length depending on the individual page) to stretch the length of my page, but it only stretches the length of the window. Here's the HTML and CSS: HTML (I only included the very basic structure): <html> <body> <div class="container"> <div id="content"> <div id="..."></div> <div id="..."></div> <div id="..."></div> <div id="..."></div> </div> </div> </body> </html>` CSS: html, body { height: 100%; font-family: Arial; font-size: 10px; color: #000000; background: #FFF url(../../images/body.png) no-repeat center 40px; margin: 0; position: relative;} .container { height: 100%; width: 960px; margin-right: auto; margin-left: auto; position: relative;} #content { width: 939px; min-height: 100%; position: relative; top: 210px; left: 6px; box-shadow: 0px 0px 8px #666; -moz-box-shadow: 0px 0px 8px #666; -webkit-box-shadow: 0px 0px 8px #666; background-color: #FFF;} I tried to set the content div to overflow: auto, but that includes a scroll bar for the content div that I do not want. It does, however, create the desired effect of the shadow and background of the #content div all the way to the end of the page. Am I missing anything? I thought min-height would work, but it doesn't! It only stretches the content div to page height and everything else is overflow, but without the content div's background color and shadow. Does anybody maybe see where the problem lies? Thank you so much in advance for your help. If you look at the bottom of the page at www.res-technologies_DOT_com/index.php?jos_change_template=restech2 in both IE and FF, you will see that it looks fine in IE, but in FF the page length is extended by exactly the height of the header image at the top of the page. Trying to figure out what's causing this is driving me nuts! Can anyone help? thx dh My web page has a display bug in IE 5+ on Windows. Specifically, I have a DIV within which I wish to place two images. The two images are the same height and width, and I want to layer them (the top one is a PNG with transparency, but I have already solved that problem, this is a positioning problem) exactly on top of each other. I have done this by positioning them relatively within the DIV. The first image is top:0;left:0 and the second is top:-150;left:0 (the images are 150 px tall). They layer fine, but the DIV is twice the height (as if the second image were still following the first, making he DIV 300 px tall). I have tried many things and am stumped. Here is the site: URL Here is the relevant CSS: Code: #bannerPhoto { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #000000; height: 150px; width: 750px; } #bannerPic { position: relative; z-index: 1; left: 0px; top: 0px; } #bannerText { position: relative; z-index: 2; left: 0px; top: -150px; } And the HTML: Code: <div id="bannerPhoto"> <div id="bannerPic"><img src="../images/bannerPhotos/image.jpg" height="150" width="750" /></div> <div id="bannerText"><img src="../images/text-cover.png" height="150" width="750" /></div> </div> Anyone? Thanks, Denver. I am having a problem trying to get one column match the height of another. Within a large DIV box, I created two columns separated by about 20 px. I floated one to the left, then pushed one over to the right. Both boxes will expand depending on the amount of content, but I would like them to match the same height. The boxes will be used throughout the entire website, so it would not make sense to create a background image to try and trick it into being the same height.. or actually specifying the height. Is there any way to tell the left box to be the same height as the right box?? I tried to link to my site but it won't let a new member link to a website. i came across a solution for this a while ago and can't repeat the result i have 3 columns, div format with a left left right float. 1 2 3 #2 contains content that varies with the page, #1 and #3 contain background elements. i need 1 and 3 to extend the full height of 2, even tho the actual content is much less. thanks for the help! Hi Guys, Consider the following box: PHP Code: <div style=border: 1mm black Solid; width: 148mm; height: 98mm;'> </div> 148mm + 1mm + 1mm = width of 150mm 98mm + 1mm + 1mm = width of 100mm Now why does neither firefox or ie manage to get it? Firefox is about 2mm out and ie is about 3mm out? Any ideas or is it some quirk? Charlie |