CSS - Strange Ie Problem (again)
Hey,
Check out the attachment. (I had to spray paint out the important parts that would highly violate the NDA) Here is some of the CSS: Code: .currentprojects{ margin-top:10px; margin-left:8px; width:245px; } .currentprojects .proj_heading{ font-weight:bold; padding-left:8px; color:#005e9d; font-family:Verdana, Arial, Helvetica, sans-serif; background-image:url(../images/leftside_midsect_mid.gif); font-size:18px; padding-bottom:5px; } .currentprojects .proj_content{ padding-left:8px; background-image:url(../images/leftside_midsect_mid.gif); } .rssfeeds{ margin-top:10px; background-image:url(../images/leftside_midsect_mid.gif); margin-left:8px; width:245px; } .rssfeeds .rss_heading{ font-weight:bold; padding-left:8px; color:#005e9d; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; padding-bottom:5px; } .rssfeeds .rss_content{ padding-left:8px; color:#000000; } img{ margin-bottom:0; vertical-align:text-bottom; } Now, the projects one is the top. And the rss is the bottom. Here is the HTML code Code: <div class="currentprojects"> <img src="images/leftside_midsect_top.gif" /> <div class="proj_heading"> Heading </div> <img src="images/leftside_midsect_midsplit.gif" /> <div class="proj_content"> stuff </div> <img src="images/leftside_midsect_bot.gif" /> </div> <div class="rssfeeds"> <img src="images/leftside_midsect_top.gif" /> <div class="rss_heading"> Heading </div> <div class="rss_content"> stuff </div> <img src="images/leftside_midsect_bot.gif" /> </div> Does anyone have any idea why this is doing that in IE? FF it works fine (like that's really a surprise anymore). Similar TutorialsI'm currently making some site about webmaster resources, etc... The site displays fine in firefox, but looks really fu/cked up in IE. Can someone help me fix this? I was trying to make all 3 column to have equal height, and i found some way which works only in FF&Opera. Still, i have problem when i have too much text. Hi all, Please see http://www.jaysonsgroup.com/ztest/ntc/zcontact.html It's full of tests, but here's the problem.. The "Do you need more than one NTC Card" text at the bottom, needs to be followed by the text "(To share the Modem with friends)?*" IMMEDIATELY below it... Unfortunately, in IE, there is a spacing problem - see the link below for 2 screenshots for what I mean: http://www.jaysonsgroup.com/ztest/ntc/zie.gif The code is simple: Code: <div class="fieldname_long">Do you need more than one NTC Card</div> <div class="fieldvalue">(input field will come here)</div> <div class='spacer_1px'> </div> <div class='fieldname_text'>(To share the Modem with friends)?*</div> The CSS: Code: .spacer_1px { clear: both; height: 1px; overflow:hidden; background: blue; } .fieldvalue { float: left; background: #ccc; display: inline; margin: 0; } .fieldname_long { float: left; width: 120px; line-height: 13px; padding-right: 15px; color: #B30000; font-weight: bold; background: #eee; display: inline; margin: 0; } .fieldname_text { color: #B30000; font-weight: bold; } Note - I justr added "display:inline" and "margin:0" above to 'fieldname_long' and 'fieldvalue' but it doesn't fix anything in IE In the test link above, you can see that the blue line is the spacer_1px and that line should be touching the fieldname_long (light grey box). This happens in Firefox. But in IE, there's a gap which I need to remove. Sorry this is a really small thing but I just can't figure it out! Any ideas? Many thanks! Hi, I've done an English site which works but now I'm doing the language versions..in particular, Arabic, which is read from right-to-left (direction: rtl) http://www.ntcjapan.com/languages/arabic/dindex.html On IE, the page looks fine. On Firefox, however, the <UL> tags (see light blue and normal blue text in middle of page) are being aligned to the right, overlapping the <div id="main"> which is supposed to contain it. Code: #main { width: 590px; padding-top: 115px; padding-left: 4px; padding-right: 5px; background: url(../../../images/0_logo.gif) no-repeat; float: left; margin: 0px 3px 0px 0px; } I do want everything aligned to the right, since Arabic is apparently read that way, but I need the effect as shown on IE. Any ideas how to make this work? Also, if anyone has any recommendations on what I could do to fix the W3C validation errors , please let me know. Thanks very much in advance! Is it possible to pickup a browser worm by visiting a .php webpage? The symptoms are that when I view htm pages from either of the 2 websites I work on - or I visit Microsoft website - the print is all tiny and screwed up. This happens whether I view the htm files on the web or located on any computer in my home/office network. If I view the same files from any other browser/computer - they are perfectly OK. So it's just this browser on this computer - which incidentally views any other website or file perfectly. The page I am suspicious of is http://www.w6dek.com/w6dek10.php. This link was sent to me as a location to do a link exchange. I was suspicious because the email had an attachment - one of those ATTxxxxx.txt types - so I suspected a virus and didn't open it. However, I checked out the http://www.w6dek.com homepage URL and it seemed like a legit site, so I was curious about that page and visited it thinking that just arriving at a php page would not activate anything. But then I got the problem. I've scanned with Norton 2005 with latest updates and got nothing, and I'm right up-to-date with windows security updates too. But I've still got this weird problem. I've also deleted all cached files and cookies etc.. Any ideas! I know there's a really good group in Switzerland that are all over this stuff, but I can't remember the address. Has anyone got a resource? Or an idea? If you take a look at the following site... http://www.impulsive-solutions.co.uk/test/test.htm In the central column you will see a grey border. On the left of that border there is a gap between the left border and the connecting top and bottom bits. Why is this happening? and secondly why is it only happening on the left hand side. Furthermore, in firefox it works fine, there is no gap. Andy check out parrisstudios(dot)com/mirage_framing In firefox it is normal, but in ie 6 when you hover over one of the links it gives you a weird drop down box type thing, but it wont go away until you refresh. I wan't to say it is like that peek-a-boo bug but backwards.... Code: ul{ margin: 0; padding: 0; list-style:none; width: 410px; float:left; position:relative; line-height:20px; } ul a{ line-height:10px; float:left; display:block; padding: 0 12px; text-decoration:none; color: #C0AEA0; position:relative; } li a:hover { margin: 0; padding: 0 12px; float:left; position:relative; background-color:#EADED2; line-height:20px; } ul li{ float: left; background-color:#ffffff; position:relative; line-height:20px; } li a{ display:block; text-decoration:none; color: #C0AEA0; float:left; position:relative; line-height:20px; } THANKS! Help! I've been holding my head on this one for a couple days. I have a wordpress theme that works fine in IE7, but in Firefox the header and navigation aligns left instead of center. I have not tested in IE6 yet. I can't, for the life of me, figure out what's causing it. Any help would be greatly appreciated! www dot sccustomfacade dot com slash site Thank you! Hey guys. I'm still learning css so excuse some crude styles. I don't know how to explain this so grap IE 6 and click here. Scroll down the links on the left until you get to the last one "Printable Pics." As you can see for some reason the last two links jump down the page and a big blank spot appears in it's place when you hover your mouse over it. It doesn't do that in firefox or opera so I don't know whats' going on. Heres my CSS: Code: body { text-align: center; height: 100%; background-image: url(images/bg_title.gif); } img { border: none; } #wrapper { width: 780px; height: 100%; margin: 0 auto; text-align: left; position: relative; background-color: #FFFF7D; color: #000000; border: solid 2px #0000ff; } #header { width: 780px; height: 143px; margin-bottom: 3px; } #headerImage { width:200px; float: left; margin-right: 2px; } #headerImage img { margin: 0px; } #headerLogo { width: 577px; float: left; margin: 0px; } #headerLogo img { margin: 0px; } #navagation { width: 204px; margin-bottom: 1px; float: left; margin-right: 1px; } .navIcon { float: left; margin-right: 2px; margin-bottom: 1px; padding: 0px; } .navButton { float: left; margin-bottom:1px; padding: 0px; } a.navButton:link { border: none; } a.navButton:visited { border: none; } a.navButton:hover { border: 1px solid #000000; } #mainContentArea { float: left; width: 570px; height: 711px; border: solid 1px #000000; background-color: #ffffff; margin-bottom: 3px; } #footer { height: 1px; margin-top: -1px; clear: both; overflow: hidden; } Thanks in advance! -Tim I have a problem with a site, first mistake i made was i built it to firefox, without testing along the way (please dont hurt me im new to web design) so i found a lot of problems in ie. So i fixed for ie7,8,9 but in 6 i get some two divs from the content area stacked one on the other at the top of the screen but when a link inside the problem div(s) is hovered they go to where they should be. any ideas about that? I am working on a site right now. I have two adjacent divs, one on top of the other. Both are styled with margins and padding set to "0." I want the second div to be directly below the first with no spacing. If I include a single-pixel border on the second div, the elements touch with the border being the only thing between the first and second div. Without the border, there is a space of what I believe to be 20 pixels. I don't want to actually use the border so I'm not sure what to do. I don't understand why the page is behaving this way. Feel free to check it out at kellyshipe.com. I would have linked but forum rules evidently prevent it. http://www.wwu.edu/~swing/newswingsite/index.html I'm relatively new at this, but I've been trying my hardest to learn how to do all of this while conforming to web standards. I've got my page looking almost (see below) like I want it to in Firefox, but in IE I get these ugly gaps. I used to get them in the inset box too, but I figured out a way to make them go away. I can't figure out how to make it go away in the header though. So my questions, so that I can actually learn something here, are these: What causes that big gap? How do I get rid of it? Is there a better/cleaner/simpler way to style the inset box so as to avoid the gaps? Also, you can see that there's one pixel missing in the gold border. That's from the blue top border so as to blend the rounded top border gif. Is there an easier way to add the rounded top? When I simply had no top border, things got screwy. Thank's for any help/insight you can give! I have learned a lesson, To look in F.F as well as I.E6 to make sure all layout is showing as it should be, it is to a point. I had three errors when I looked in validator. Learned also yesterday that there is also CSS validator heaven forbid. I had this random image script that shows all images in posts. The link colors are what were different in F.F. Right color iin I.E. I have took that out now because when it showed images from the posts and the sidebar randomly the image over shot the sidebar when it shows both same images as the script found the posted images. I may have the answer to that by another random image to pull from a directory instead. On the F.F last year I had a site that had 100 errors lol so I wanted to check everything as I go this time around. If anyone has Opera please could they check out my Wordpress please? My link is in my profile as I saw yesterday there are rules about links with good reason. S how come the border was different color in F.F thats my question? Thanks! i have the following CSS Code: #logoOuter{ width:155px; height:90px; background-color:#336699; position:relative; float:left; } #logo{ bottom:0px; position:absolute; } html>body #logo{ margin-bottom:-5px; } #globalNavOuter{ margin-left:155px; background-color:#00CC99; } #globalNavTop{ height:19px; } #globalNavBottom{ height:71px; } and this XHTML Code: <div id="header" > <div id="logoOuter"> <div id="logo"> <img src="images/logo.gif" border="0" /> </div> </div> <div id="globalNavOuter"> <div id="globalNavTop">globla Nav Top</div> <div id="globalNavBottom">global nav bottom</div> </div> </div> The problem is there was a 5px gap at the bottom of the image in moz/FF and in IE when i took the whitespace out (the CR's) of the html the space went away in IE bot not MOZ/FF so i added a -5px margin to the bottom of that div and that did the trick in FF but it over did it in IE thus the sub selector > hack. [EDIT] I just took the image away and that fixes it. So it looks like it's the image causing it. doing a - vertical alignment seems to fix it but I still dont understand why... Gary perhaps you can explain this to me...i just dont get it Some days tables just seem so much easier........ Hi, i have just noticed a very strange cross browser issue. On several of my sites, i have applied simple css styling to my select boxes / drop down menus... some of this styling has been simply changing the color of the text in the drop down menu. The styling is fine in IE7+, FF (PC), Opera (PC), Chrome (PC), FF (Mac), Safari (Mac), Opera (Mac) BUT NOT ON Chrome (Mac) I can't understand how you can't apply simple css such as text color to Chrome on a Mac Has anyone else noticed this or found a solution to this... thanks in advance for your help The situation is very simple. Just test the following code in IE7 or Mozilla, and then in IE6. You will note that in IE6 there's a gap below the two divs. HOw can I fix this ? Code: <style> .fontBold,.fontBoldLink{ font-family:tahoma; font-size:14px; font-weight:bold; color:#333333;} .fontTitle { font-size:16px;} .fontBoldLink { text-decoration:underline; cursor:pointer;} </style> <div style="overflow:auto; margin-top:20px; margin-bottom:0px; border:0px #000000 solid"> <div class="fontBold" style="width:150px; float:left; text-align:center; padding-top:3px; border:1px #999999 dashed ; border-bottom:0px; background-color:#EFEFEF; height:20px;">Left Padding</div> <div class="fontBoldLink" style="float:right;padding-left:20px; background-repeat:no-repeat">Right Padding</div> </div> <div style=" background-color:#EFEFEF; clear:both; border:1px #999999 dashed; padding:10px; height:60px; margin-bottom:10px; margin-top:0px "></div> On my test website that i make designs on I am having a very strange problem with the styles of my links. i am trying to change the style of the title for the posts to have a blue color and the turn light blue on hover. however i have this problem where I change the style on the title, and there are also random links in the sidebar that follow that style as well. i dont know if it is bug or what, but is begining to give me a headache. Right now i colored the links pink so that are easy to see. This happens in both opera and firefox for me. the url is nverted.net I have a DIV on my page with the style 'bottom' applied to it. It is coloured red so you can see it. I would like it at the bottom outside of all the other divs/containers. The DIV with the red background should be at the very bottom of the page, under the large DIV. This is the HTML placing it on the page: HTML Code: Code: <!-- InstanceEndEditable --></div> <div class="bottom">bottom</div> </body> You can see it is the last DIV on the page. Yes I am using Dreamweaver templates. Here is the CSS for the bottom class: Code: Code: .bottom { margin: 0px; padding: 0px; background-color: red; border: 0px solid #999999; height: 20px; width: 100%; } It appres in different places on different pages. 'bottom' DIV at the top of the page: http://www.jfwebdesign.co.uk/photog/ 'bottom' DIV almost at the bottom of the page: http://www.jfwebdesign.co.uk/photog/about.php 'bottom' DIV at the top of the page: http://www.jfwebdesign.co.uk/photog/work.php 'bottom' DIV at the top of the page: http://www.jfwebdesign.co.uk/photog/contact.php Here is a link to the CSS file: http://www.jfwebdesign.co.uk/photog/styles.css Can anyone explain why? Many thanks. I have been designing for a few years now, and never come across this error when I use w3c CSS validation, but when I attempted to validate my CSS for a wordpress theme I've created, I received the following error: Quote: Parse Error Lexical error at line 1, column 3. Encountered: "D" (68), after : "<!" My CSS is valid, as I keep it really simple, but from a quick Google search, it would seem that w3c CSS validation is attempting to validate my XHTML before my CSS? Does anyone have any suggestions (aside from pasting the CSS directly into the validation page)? Here is my CSS: Code: body { background : #003 url(images/bground.png) repeat-x; color : #fff; font-family : Arial, Helvetica, Georgia, Sans-serif; font-size : 11px; margin : 0; padding : 0; text-align : center; } a { color : #66f; text-decoration : none; } p { line-height : 14px; margin : 0; padding : 0 0 8px 0; } h1 { background : url(images/h1-logo.png) no-repeat; color : #300; font-family : Arial, Helvetica, Georgia, Sans-serif; font-size : 48px; height : 48px; margin : 0; padding : 0 0 0 56px; } #index-header { height : 48px; margin : 0; padding : 24px; text-align : left; } #index-header h1 a, #index-header a { color : #300; text-decoration : none; } .hdr1 { float : left; } .hdr2 { float : right; } .hdr2 ul { font-size : 12px; font-weight : bold; list-style : none; } #navigation { background : url(images/navbar.png) repeat-x; height : 32px; } .nb { float : left; } .nb2 { float : right; } ul#navbar { height : 16px; margin : 0 12px; padding : 0; } ul#navbar li { float : left; font-size : 13px; font-weight : bold; line-height : 16px; list-style : none; margin : 0; padding : 8px; } ul#navbar li a { color : #333; text-decoration : none; } form#searchform { float : right; margin : 0; padding : 6px; } form#searchform #s { background : inherit; border : 1px solid #333; } form#searchform #searchsubmit { background : inherit; border : 0; color : #333; font-family : Arial, Helvetica, Georgia, Sans-serif; font-size : 13px; font-weight : bold; } #index-wrapper { border : none; margin : 0; padding : 12px; width : 100%; vertical-align : top; } #slideshow { background : url(images/Natural-Wonders.gif) no-repeat; height : 300px; width : 400px; } #recentposts { padding : 0 0 0 12px; text-align : justify; width : auto; vertical-align : top; } .index-post { background : #306 url(images/post-h2.png) repeat-x; margin : 0 0 12px 0; padding : 6px; } .index-post h2, .index-post h2 a { border-bottom : 1px solid #666; color : #fff; font-size : 16px; font-weight : bold; margin : 0 0 4px 0; padding : 0; text-decoration : none; } .postmetadata { border-top : 1px solid #666; color : #666; font-size : 10px; } .tags { margin : 0; padding : 0; vertical-align : top; width : 400px; } #footer { border-top : 1px solid #666; margin : 12px 0; padding : 12px 0 0 0; } #footer a { color : #999; text-decoration : none; } And just for good measure, here's the portion of the <head> tag that it is referring to: 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 profile="http://gmpg.org/xfn/11"> Hi, I've designed a site that looks excellent on IE and Firefox on a PC, as well as (as far as I've been told) Safari. However, I've seen a couple of instances on IE on a Mac where the menu doesn't render correctly. The page can be viewed here. On the problem browsers, the top menu items will be displayed in two stacks, rather than across the bottom of the image. If anyone out there has any idea why this is happening, I'd appreciate the help. The menu code in the HTML: Code: <table border="0" width="665" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0"> <tr> <td width="100%" align="center" valign="top"> <ul class="topmenuul" id="dmenu"> <li class="topmenuli"><a href="home.htm" class="topmenutitle">H O M E</a> </li> <li class="topmenuli"><a href="weddings.htm" class="topmenutitle">W E D D I N G S</a> </li> <li class="topmenuli"><a href="#" class="topmenutitle">P O R T R A I T S</a> <ul class="submenuul"> <li class="submenuli"><a href="authors.htm">Authors & Artists</a></li> <li class="submenuli"><a href="families.htm">Families</a></li> <li class="submenuli"><a href="musicians.htm">Musicians</a></li> </ul> </li> <li class="topmenuli"><a href="solo.htm" class="topmenutitle">S O L O</a> </li> <li class="topmenuli"><a href="#"class="topmenutitle">E M M A</a> <ul class="submenuul"> <li class="submenuli"><a href="bio.htm">Bio</a></li> <li class="submenuli"><a href="press.htm">Press</a></li> <li class="submenuli"><a href="contact.htm">Contact</a></li> </ul> </li> </ul> </td> </tr> </table> The CSS for the menu: Code: .topmenuul{ list-style-type:none; margin: 0px; padding:0px; } .topmenuli{ list-style-type:none; float: left; margin-left: 10px; /* border-left:1px solid #000000; */ /* border-right:1px solid #000000; */ padding: 0px; color: #000000; } .topmenutitle{ display:block; color:#000000; } .topmenuli a:link { color: #000000; } .topmenuli a:visited { color: #000000; } .topmenuli a:hover{ display:block; padding-top: 1px; padding-bottom: 1px; text-decoration:none; color:#cccccc; background:#fff; width: 120px; } .submenuul{ list-style-type:none; position:absolute; margin: 0; padding: 0; display:none; color:#000000; } .submenuli a{ display:block; padding-top: 1px; padding-bottom: 1px; width: 120px; text-decoration:none; color:#000000; background:#fff; margin-top: 1px; } li:hover ul, li.over ul{ /* lists nested under hovered list items */ display: block; } #dmenu li>ul { top: auto; left: auto; } #content { clear: left; } --> #dmenu { font-family: Georgia, Helvetica, Sans-Serif; font-size:10px; text-align:center; font-color: #000000; } .topmenutitle { background:#fff; text-indent:0px; text-decoration: none; padding:0px; padding-top: 1px; padding-bottom: 1px; color:#000000; width: 120px; } .submenuul { background-color:#fff; background-position: top left; } .submenuli a{ text-decoration: none; color: #000000; padding-top: 3px; padding-bottom: 3px; } .submenuli a:link{ color:#000000; } .submenuli a:visited { color:#000000; } .submenuli a:hover{ text-decoration: none; background:#fff; color: #cccccc; padding-top: 3px; padding-bottom: 3px; } I have a strange css bug in IE 6 and 7 while making a simple two column structure. In firefox both the left and the right columns are top aligned properly but in IE the right column has around 15px of space on top of it. I can't seem to figure out why this space is coming. This seems like the IE peekaboo bug but can't be fixed using the line-height hack. Instead giving the IE proprietary ZOOM property to the UL we can fix this bug in IE. But I want to know is there any other method to fix this issue which uses valid css. Doctype for the HTML is xHTML transitional Here is the css code. #gdsrView{width:456px;} #gdsrView .srchGrpMod{} #gdsrView .grpResHdr{} #gdsrView .grpPagination{} #gdsrView .srCnt{clear:both;float:none;} #gdsrView .srCnt ul{list-style-type:none;margin:0;padding:0;} #gdsrView .srCnt ul#lstView li{clear:both;float:none;border-bottom:1px solid green;padding-bottom:5px;} #gdsrView .srCnt ul#lstView .grpPic{width:75px;height:75px;overflow:hidden;float:left;} #gdsrView .srCnt ul#lstView .grpInfo{background:#cacaca;margin-left:83px;} #gdsrView .srCnt ul#lstView dl.grpMLnk{font-size:1.1em;} #gdsrView .srCnt ul#lstView .grpInfo dl.grpMLnk dt{display:inline;} #gdsrView .srCnt ul#lstView .grpInfo dl.grpMLnk dt a.actLnk{font-size:0.8em;} #gdsrView .srCnt ul#lstView .grpInfo .grpDes{font-size:1em;} #gdsrView .srCnt ul#lstView .grpInfo .tStamp{font-size:0.9em;} #gdsrView .clearFl{margin-top:1px;} HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)"> <head> <title>IE bug</title> </head> <body> <div id="gdsrView"> <div class="srchGrpMod"></div> <div class="grpResHdr"></div> <div class="grpPagination"></div> <!-- Begin: group results list view --> <div class="srCnt"> <ul id="lstView"> <li style="background:red;zoom:100%;"> <div class="grpPic"> <img src="../images/pic.jpg" alt="Group Image" width="75" height="75" /> </div> <div class="grpInfo"> <dl class="grpMLnk"> <dt><a href="#">Lorem Ipsum dolor amet consectectuer...</a></dt> <dt><a class="actLnk" href="#">Request Invitation</a></dt> </dl> <p class="grpDes">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Donec mattis urna eget magna. Nam cursus ipsum sit amet.lorem. Vestibulum ante ipsum primis in faucibus orci luc..</p> <p class="tStamp">Updated 55 Minutes ago</p> </div> <div class="clearFl"></div> </li> </ul> </div> <!-- End: group results list view --> </div> </body> |