CSS - Css Layout Problem - Links Not Working
Hi
I've never posted on a forum before but I am having some css layout issues. Here is an example: URL Basically, only some of the links on the side of the page work. Some just can't be clicked on at all. I have noticed that the ones that can't be clicked on all seem to be parallel with text in the middle column that wraps. It's almost as if the text isn't wrapping in the middle column and carrying straight on and covering the links on the right so they cannot be clicked on. I'm assuming this is something to do with the css as it happens all over the site where the same situation occurs. Has anyone come accross this before or knows how to stop this from happening? Any help would be much appreciated. Also, this only happens in IE not in Firefox. If you need to see the code or the css let me know what you need and i'll post it. Thanks in advance, Bruce Similar TutorialsWhen my cursor passes over the links on the top of my page (not clicking a link, just passing the cursor over the link), the title jumps from its position directly under the links to a position to the right of the links. Since you are giving me help, I want to make this as easy for you as I can. I have posted a screen shot of exactly how my header looks before and after passing the cursor over the links. www.middle-age-guy.com/forum-css-help_images.html Here is the relevant css. I've separated and labeled the css so that you can see how it flows down the page. ___________________________________________ #header { width: 998px; margin: 0 auto; } #header .container { background:url(images/head_pat.jpg) left top repeat-x; height: 200px; } /* -- links along the top of the page (Home, MAGman Lifestyles, etc. --*/ .topline { } ul.menu li.page_item { float: left; display: inline; font-size:12px; margin-top: 25px; } ul.menu li.page_item a { color:#000!important; text-decoration: none; padding:25px 0 0px 0px; margin-right: 15px; list-style-type: none; } ul.menu li.page_item a:hover { color: #fff!important; text-decoration:none; background:url(images/menu_hover.gif) left repeat-x; } ul.menu li.current_page_item a { color: #fff!important; text-decoration:none; background:url(images/menu_hover.gif) left repeat-x; } /* -------------------- Image on right side of header ---------*/ #magmanheadshot { padding:0; margin:25px 50px 20px 0; float:right; width:160px; color:#003e4f; } /*--------------- Title - Middle-Age-Guy.com --------------*/ #headline { width:450px; margin-top: 20px; } #headline h1 { display: block; clear:left; font-size:30px; margin-left: 20px ; margin-bottom: 5px; color:#FFFFFF; font-weight:normal; } /* ------------- Tagline below the title --------------*/ .desc_l { background:url(images/desc_l.gif); width:10px; height:27px; float:left; margin-left: 25px; } .desc { background:url(images/desc_pat.gif); height:27px; float:left; font-size:14px; line-height:25px; font-weight:normal; color:#FFFFFF; } .desc_r { background:url(images/desc_r.gif); width:10px; height:27px; float:left; } .magmandatingsystem { margin: 10px 0 0 0; font-size: 12px; padding: 0 0 0 23px; float: left; width: 400px; } /* --------------------- Membership login link -----*/ .login { font-size: 18px; color:#FFFFFF; text-decoration: none; float: right; margin-top: -80px; margin-right: 50px; list-style-type: none; } .login a { color:#FFFFFF!important; text-decoration: none; } .login a:hover { color:#FF0000!important; text-decoration:none; } .join { font-styleblique; font-size: 9px; font-weight: bold; } .join a { text-decoration:underline !important; color:#ff0000!important; } .join a:hover { color:#0099FF!important; } /* ------------ End of Header -*/ _______________________________________ Here is the relevant html from header.php <div id="header"> <div class="container"> <div class="topline"> <ul class="menu"> <li class="page_item"> <a href="(URL address blocked: See forum rules)">Home</a></li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="General information foundational to success in all other areas">MAGman Lifestyle</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="One of the three Pillars of any man's life - his relationships with others">Women & Relationships</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="The Pillar of a sound body is a middle age guy's call to reality">Health & Fitness</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="A man's third Pillar is his ability to do battle in the business world.">Business & Wealth</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/magman-blog" title="MAGman's Blog">Blog</a> </li> <li class="page_item"> <a href="<?php if($db_feedburner_address) { echo $db_feedburner_address; } else { bloginfo('rss2_url'); }?>">Subscribe to RSS</a> </li> </ul> </div> <!-- end #topline --> <div id="magmanheadshot"> <img src="/wp-content/themes/blog-design-studio-newblue/images/mag_man4-Head-shot.gif" /> </div> <div id="headline"> <h1><?php bloginfo(''); ?></h1> <div> <div class="desc_l"></div> <div class="desc">The #1 Personal Development Website for Middle Age Guys</div> <div class="desc_r"></div> <div class="magmandatingsystem"><a href="(URL address blocked: See forum rules)/?page_id=176">Read more</a> about the <a href="(URL address blocked: See forum rules)/?page_id=176"><span style="color:#FF0000!important">MAGman Dating System</span></a> for Middle Age Guys</div> <!-- end #headline --> <div class="login"><a href="(URL address blocked: See forum rules)/?page_id=89">Members' Login</a> <p class="join"><a href="(URL address blocked: See forum rules)">Click here</a> to become a member.</p> </div> </div> <!-- end .container --> </div> <!-- end .header --> ______________________________________________ Finally, this is the source code ________________________________________________ <div id="header"> <div class="container"> <div class="topline"> <ul class="menu"> <li class="page_item"> <a href="(URL address blocked: See forum rules)">Home</a></li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="General information foundational to success in all other areas">MAGman Lifestyle</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="One of the three Pillars of any man's life - his relationships with others">Women & Relationships</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="The Pillar of a sound body is a middle age guy's call to reality">Health & Fitness</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/?page_id=89" title="A man's third Pillar is his ability to do battle in the business world.">Business & Wealth</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/magman-blog" title="MAGman's Blog">Blog</a> </li> <li class="page_item"> <a href="(URL address blocked: See forum rules)/feed/">Subscribe to RSS</a> </li> </ul> </div> <!-- end #topline --> <div id="magmanheadshot"> <img src="/wp-content/themes/blog-design-studio-newblue/images/mag_man4-Head-shot.gif" /> </div> <div id="headline"> <h1>Middle-Age-Guy.com</h1> </div> <div class="desc_l"></div> <div class="desc">The #1 Personal Development Website for Middle Age Guys</div> <div class="desc_r"></div> <div class="magmandatingsystem"><a href="(URL address blocked: See forum rules)/?page_id=176">Read more</a> about the <a href="(URL address blocked: See forum rules)/?page_id=176"><span style="color:#FF0000!important">MAGman Dating System</span></a> for Middle Age Guys</div> <!-- end #headline --> <div class="login"><a href="(URL address blocked: See forum rules)/?page_id=89">Members' Login</a> <p class="join"><a href="(URL address blocked: See forum rules)">Click here</a> to become a member.</p> </div> </div> <!-- end .container --> </div> <!-- end .header --> Thanks for any help you can bring. Scott I am really racking my brain here I know this will end up being a simple fix but after creating this for a few hours straight, I just can't see it. Ok here's the page and the situation... myspace[dot]com[slash]daggersanddiamonds My links at the top of my page are sliced fine and the links do work (in explorer) but somehow in Firefox, they are being hidden by some invisible layer that extends about 800ish pixels in width that hides the clickability. As you can see, the first half portion of "Add to Friends" works but the rest is disabled, and part of the "Vimeo" link works, but not totally.. and ofcourse the middle links are totally dead to click. My question is, whats hiding these links? Any help is super thanked! I am having a problem with li links on the Mac. The whole site works perfectly on the PC. I have tried all kinds of alterations such as changing /addin z-indexs, but nothing seems to work. Can anybody help me? The site can be found he www.pamstellema.com.au Thanks in advance I reconfigured my css for my work website that i have been working on. But now for some reason my links in my .left h1 wont hover to click sometimes and will some other times. it's getting a bit confusing. I dont know if there is something to do with the code. also my website is www24.brinkster.com/mattphat/ymca3.html Code: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "(URL address blocked: See forum rules)"> <HEAD> <TITLE>Northwest Connecticut YMCA | We build strong kids, strong families, strong communities.</TITLE> </HEAD> <style type="text/css"> * { margin: 0; padding: 0; } body { background: #66A7C5; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px; color: #333; margin:10px 100px 10px 100px; } a { text-decoration: none; color: #004990; } a:hover { text-decoration: underline; color: #111; } #wrap { margin: 0 auto; width: 780px; background: #F0ECEB; border-top: 7px solid #A3D6F5; border-bottom: 7px solid #A3D6F5; border-left: 7px solid #A3D6F5; border-right: 7px solid #A3D6F5; } #header { height: 309px; padding: 2px; } #header h1 { font-size: 12px; letter-spacing: 0px; padding: 0px 0 0 0; color: #6C7476; } #header h1 a { color: #aaa; text-decoration: none; font-weight: 100; letter-spacing: -2px; } #header h1 a:hover { color: #111; } #header h2 { font-size: 19px; color: #111; padding: 5px 0 0 20px; letter-spacing: -1px; font-weight: 100; } #menu { height:70px; line-height: 30px; border-top: 7px solid #EE3233; border-bottom: 7px solid #EE3233; background: #F0ECEB; padding: 8px; } #menu ul { list-style-type: none; padding-left: 20px; } #menu ul li { display: block; float: left; } #menu ul li a { padding: 0 20px 0 0; text-decoration: none; font-weight: 100; font-size: 14px; color: #004990; } #menu ul li a:hover { color: #004990; text-decoration: none; font-weight: 600; } #content { padding: 0 20px 20px 20px; } .right { float: right; width: 520px; text-align: justify; } .right h2 { font-size: 12px; font-weight: 100; padding: 15px 0 7px 0; } .right h2 a { text-decoration: none; color: #004990; } .right h2 a:hover { color: #111; } .left { float: left; width: 200px; margin-top: 10px; background: #6C7476; } .left h2 { margin: 10px 0 0 0; padding-left: 10px; height: 28px; line-height: 28px; color: #fff; font-size: 13px; background: #EE3233; } .left ul { padding: 10px 0 15px 20px; list-style-type: square; color: #EE3233; } .left ul li a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 100; } .left ul li a:hover { color: #fff; font-weight: 600; } #footer { height: 80px; line-height: 12px; background: #6C7476; text-align: center; font-size: 11px; color: #fff; } #footer a:link {color: #F0ECEB; text-decoration: underline; } a:active {color: #F0ECEB; text-decoration: underline; } a:visited {color: #F0ECEB; text-decoration: underline; } a:hover {color: #F0ECEB; text-decoration: none; } </style> <BODY> <div id="wrap 2"> <div id="wrap"> <div id="header"> <center> <img src="YMCA/NWLOGO4.jpg"> <h1>Northwest Connecticut YMCA - Torrington Branch - 259 Prospect St, Torrington CT 06790 </center> </div> <div id="menu"> <center> <img src="(URL address blocked: See forum rules)" width="360" height="15"> <br> <img src="ymca/miniY.jpg"> <a href="(URL address blocked: See forum rules)" 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> <a href="(URL address blocked: See forum rules)" 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> <a href="(URL address blocked: See forum rules)" 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> <a href="(URL address blocked: See forum rules)" 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> <a href="(URL address blocked: See forum rules)" 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> <a href="(URL address blocked: See forum rules)" 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"> </center> </div> <div id="content"> <div class="right"> <span style="font-size : 12px"> <br> <center> <img src="ymca/spacer.gif"><br> Be sure to register for the... <h2>2009 Sunny Brook 5k Cross-Country <br><i>In Memory of John Ponte</i></h2> <img src="YMCA/Ponte%20Run.gif" width="360" height="190"><br> Click Image for .pdf file.<br> <img src="ymca/spacer.gif"> </center> <br> Other Important YMCA info should go here. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> </span> </div> <div class="left"> <h2>Links :</h2> <ul> <li> <a href="(URL address blocked: See forum rules)">Torrington</a></li> <li><a href="(URL address blocked: See forum rules)">Winsted</a></li> <li><a href="(URL address blocked: See forum rules)">Cannan</a></li> <li><a href="(URL address blocked: See forum rules)">Hours of Operation</a></li> <li><a href="(URL address blocked: See forum rules)">Membership Rates</a></li> <li><a href="(URL address blocked: See forum rules)">Employment</a></li> <li><a href="(URL address blocked: See forum rules)">Contact Us!</a></li> </ul> <h2>Fall 2009 Program Guide</h2> <ul> <a href="(URL address blocked: See forum rules)"><img src="(URL address blocked: See forum rules)" width="160" height="220" border="0"></a> </ul> </div> <div style="clear: both;"> </div> </div> <div id="footer"> <center> <br> <span style="font-size : 12px"> <a href="(URL address blocked: See forum rules)">Home</a> | <a href="(URL address blocked: See forum rules)">Torrington</a> | <a href="(URL address blocked: See forum rules)">Winsted</a> | <a href="(URL address blocked: See forum rules)">Cannan</a> | <a href="(URL address blocked: See forum rules)">Giving</a> | <a href="(URL address blocked: See forum rules)">About Us</a> <br><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. <br><br> </center> </div> </div> </div> </BODY> </HTML> Can anyone help me out here please? I have an urgent request and need to get this site up and running tomorrow :-( I cannot seem to hover over, mouse over any of my a:hover, link, over etc in IE. The cursor just sticks as an arrow and doesn't change to a hand. It works in Firefox fine. Thanks in advance. Lisa :-) My HTM file: ************** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <META name="Description" content=""> <META name="Keywords" content=""> <link href="css/main.css" rel="stylesheet" type="text/css"> <!--[if IE]> <link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /> <![endif]--> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="print.css" media="print" /> <script language="javascript" src="scripts/menu.js" type="text/javascript"> </script> </head> <body> <div id="nav-toplevel"> <div id="nav-meta"> <ul title="Top Level Navigation bar"> <li><a href="index.php" title="">home</a></li> <li><a href="aboutus.php" title="">about us</a></li> <li><a href="contact.php" title="">contacts</a></li> </ul> </div> </div> <!-- End of meta navbar --> <div id="nav-nextlevel"> <div align="center"> <div id="menu"> <ul id="menujs"> <li id=""><a href="./" title="">Item 1</a> <ul> <li id=""><a href="" title="">Thailand</a></li> <li id=""><a href="" title="">Thailand</a></li> <li id=""><a href="" title="">Thailand</a></li> </ul> <li id=""><a href="./" title="">Item 2</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> </li> <li id=""><a href="./" title="">Item 3</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> </li> <li id=""><a href="./" title="">Item4</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> </li> <li id=""><a href="./" title="">Item 5</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> </li> <li id=""><a href="./" title="">Item 6</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> </li> <li id=""><a href="./" title="">Item 7</a> <ul> <li id=""><a href="" title="">Thailand</a></li> </ul> <li id="selectcountry"><a href="#" title="">Item 8</a> <ul> <li id="thailand"><a href="" title="">Thailand</a></li> </ul> </li> </li> </ul> </div> </div> </div> <!-- End of top level navbar --> </div> <!-- Start of main content section --> <div id="container"> <div id="content"> <h1>Main Heading Here</h1> <h2 align="center">These Links Don't Work :-(</h2> <p> <strong>This link doesn't work<a href="." target="_self">Thailand</a><br> <br> <strong>This link doesn't work<a href="." target="_self">Thailand</a><br> <br> <strong> This link doesn't work <a href=".">Thailand</a></p> </div> <div id="contentb"> </div> <div id="footer"> <p id="info-footer"> <a href="">Doesn't Work</a> | </p> </div></div> </body> </html> ************** Here's my main.css html { font-family:verdana, arial, helvetica, sans-serif; font-size:65%; color:#555; background:#fff; /* Border Image */ background-image:url("../images/htm6l.png"); background-position:center center; background-repeat:repeat-y; } body { position:relative; width:700px; padding:15px 30px 180px 20px; margin:10px auto 10px auto; /* Page Background */ background-image:url("../images/body.png"); background-position:center center; background-repeat:repeat-y; border-bottom:1px solid #ECECEC; border-top:1px solid #ECECEC; } #banner { position:absolute; left:0; width:100%; height:120px; padding:0 !important; padding-right:50px; background-color:#FFF; /* top image */ background-image:url("../images/scuba_8.jpg"); background-position:150px 0; background-repeat:no-repeat; border-top:1px solid #ECECEC; border-bottom:1px solid #ECECEC; } #nav-toplevel { position:relative; right:290px; margin-right:-25px; } #nav-nextlevel { position:relative; right:0px; margin-right:-30px; } #nav-meta { position:absolute; right:0; top:1px !important; top:0px; } #nav-meta ul { display:inline; margin:0; padding:0; } #nav-meta ul li { display:inline; margin:0 !important; margin-left:3px; padding:1px; background-color:#F8FBFF; border:1px solid #ccc; border-top:none; list-style:none; } #nav-meta a { padding-left:2px; padding-bottom:2px; font-size:0.94em; letter-spacing:0.04em; color:#888; text-decoration:none; margin:0 !important; margin-right:-2px; } #nav-meta li:hover { border-top:1px dashed #CACACA; } #nav-meta a:hover { background-color:transparent !important; text-decoration:none !important; background-color:#fff; text-decorationverline; } #menu ul, #menu li, #ClearFloat { margin:0px; padding:0px; } #menu{ position:absolute; display:block; top:122px; margin:0px 0px 0px 99px; width:auto; font-family:verdana,Georgia, serif; font-size:11px; list-style-type:none; float:left; z-index:300; } #menu ul li , #menu ul li ul li { position:relative; font-family:verdana,Georgia, serif; list-style-type:none; float:left; z-index:500; } #menu ul li ul { position:absolute; display:none; font-family:verdana,Georgia, serif; } #menu ul li a, #menu ul li a:link, #menu ul li a:visited { display:block; font-size:11px; font-family:verdana,Georgia, serif; color:#888; text-decoration:none; margin-left:3px; margin-top:0px; padding-bottom:3px !important; padding-left:4px; padding-right:4px; padding-top:3px; background-color:#FFF; border:1px solid #ccc; border-top:none; line-height:10px; } #menu ul li.over ul, #menu ul li:hover ul { display:block; font-size: 11px; font-family:verdana,Georgia, serif; text-align:left; width:100px; background-color:transparent !important; text-decoration:none !important; } #menu ul li a:hover { display:block; font-size:11px; font-family:verdana,Georgia, serif; color:#ccc; } #menu ul li ul li a:hover { display:block; font-size:11px; font-family:verdana,Georgia, serif; } #container { position:relative; top:160px; height:100%; background-color:#F8FBFF; /* Footer Image */ background-image:url("../images/scuba_footer.jpg"); background-position:right bottom; background-repeat:no-repeat; margin-bottom:10px; z-index:100; } #content { position:relative; width:700px; background:transparent; } #content p { font-size:1.08em; line-height:1.4em; padding:6px 11px 13px 25px; margin:0 15px 1.1em 0; background-image:url("../images/shadow2.png"); background-position:bottom center; background-repeat:no-repeat; } #content ol, #content ul{ font-size:1.08em; line-height:1.4em; padding:6px 11px 13px 25px; margin:0 13px 1.1em 0; background-image:url("../images/shadow2.png"); background-position:bottom center; background-repeat:no-repeat; } #content li { list-style-type:square; margin: 0px 0px 0px 15px; } #contentb { position:relative; width:525px; background:transparent; } #contentb p { font-size:1.08em; line-height:1.4em; padding:6px 11px 13px 20px; margin:0 15px 1.1em 0; background-image:url("../images/shadow.png"); background-position:bottom left; background-repeat:no-repeat; } #contentb ol, #contentb ul { font-size:1.08em; line-height:1.4em; padding:6px 11px 13px 40px; margin:0 13px 1.1em 0; background-image:url("../images/shadow.png"); background-position:bottom left; background-repeat:no-repeat; } #contentb li { list-style-type:square;} h1,h2,h3,h4,h5,h6 { height:auto !important; height:30px; margin-top:0; margin-left:11px; font-family:century gothic, serif; letter-spacing:0.04em; background-repeat:no-repeat; border-bottom:1px solid #ECECEC; background:transparent; } h1 { width:680px; padding-top:0.3em; padding-left:2px; font-size:14px; color:#4a74c0; background-image:url("../images/sand23.png"); background-position:bottom left; background:transparent; } h4 { border-bottom:0px solid #ECECEC; } h2,h3,h4,h5,h6 { font-size:12px; font-size:1.3em; color:#4a74c0; padding-left:25px; background-position:bottom left; } h2,h3, h4, h5, h6 { width:660px; } h1:first-letter ,h2:first-letter { font-size:1.6em; text-transform:uppercase; } h3:first-letter ,h4:first-letter ,h5:first-letter ,h6:first-letter { font-size:1.5em; text-transform:uppercase; } #footer { position:absolute; bottom:3px !important; bottom:0px; right:23px; width:100%; font-size:0.94em; } #info-footer { position:absolute; right:-32px; } a:link { color:#888; text-decoration:underline; } a:visited { color:#888; text-decoration:underline; } a:hover { color:#ff490d; text-decoration:none; } a:active { color:#000; text-decoration:none; } ************************* Here's my menu.js startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("menujs"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } window.onload=startList; ******************** here's my ie.css#container { z-index:-1; } I would really appreciate any help. Thanks again Lisa. Hi, Can anyone see why the main navigation links aren't working on IE5 on a Mac he <link removed>? I've checked in Mac Safari, Win IE and Win Mozilla and they're fine. On Mac5.2 however, they simply don't do anything - no hover effect or active link at all. Any help would be greatly appreciated, thanks... On this site, the links do not work and I don't know why. The links should be a different color and when you hover over them they should change colors, but again, they do not. You can't even click on them and I can't figure out why. Any help is appreciated. Thanks! I can't get this to work. I've done my site in HTML and CSS and for some reason, any time I try to place an href tag, it doesn't work - no link, no hover, nothing at all. I'm new here and I know you can't post URLs, but if someone could look at this code for me, I'd really appreciate it. Thanks! Jason cannot get my css layout to work on my php page, it works fine if I change to a HTML extension on my file. Is there is difference in how we code when working with php?? Or can someone see what I am doing wrong? Just using a simple layout My css code: Code: /* ----------container to center the layout-------------- */ #wrapper{width:1200px; background-color: #cfc;} #header {width:1200px; background-color: #ccc; border: 1px solid #ccc; height: 100px;} #leftcolumn{border: 1px solid #ccc; width:800px; background-color: #cff; float: left;} #rightcolumn{float:right; width:400px;} #footer {width:1200px; background-color: #ccc; border: 1px solid #ccc; height: 10px;} #form {float:left; width:800px; background-color: #fcc;} #nav2 {float:left; width:800px;}/ php/html 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> <link href="admin.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" media="print" type="text/css" href="../print.css" /> <title>The Art Database - Admin Console</title> </head> <body> <?php include("../library/login.php"); login(); ?> <div id='container'> <div id='header'><h3>The Backend</h3></div> <div id='wrapper'> <div id='leftcolumn'> <div id='nav'>Navigation</div> <div id='form'>Left Form Pink</div> </div> <div id='rightcolumn'>Right</div> </div> <div align="center">Footer</div> </div> </body></html> I have also tried to enclose it in php tags Code: <?php session_start(); ?> <!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> <link href="admin.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" media="print" type="text/css" href="../print.css" /> <title>The Art Database - Admin Console</title> </head> <body> <?php echo "<div id='wrapper'>"; echo "<div id='header'>This is the Header</div>"; echo "<div id='leftcolumn'>Left</div>"; echo "<div id='rightcolumn'>Right</div>"; echo "</div>"; echo "<div id='footer'>footer</div>"; ?> </body></html> Any ideas why it doesn't work? Hi Folks, I'm trying to merge my template into my asp.net storefront css file and somewhere there seems to be a conflict. the result I'm going for is a centered page that slides over the background if the page is resized. In Firefox I get what I want. In IE my content wrapper seems to be tacked to the upper left corner of the screen. There are a lot of styles in the sheet I'm trying to modify, but I can't id which one(s) are causing my problem. I made a template page that works as I'd like that is here eliteportraits.com/teetest/template.htm the page that doesn't seem to produce what I want is pinkgolftees.com/default.aspx?skinid=9 any ideas on where to start? also, with the merge, everything seems to validate except the moz-overflow line...is that a real problem? I don't know if it's really needed by the storefront or not. thanks a bunch Mark I'm working on tidying up my wiki's Main Page. You can see the progress here; it seems to work fine in FireFox, but in IE the yellow div gets pushed below the two green div's floated to the right of the page. If you don't have firefox, then the top of the yellow div should line up with the top of the green div. The source is too big to post here, just view it from the page I llinked to... Any idea why this is happening? Thanks for your time, -Ross [edit] Nevermind, sorted it Hi. I'm making a slightly unusual layout at the moment, and I could do with some help. I've seen it done before, but I don't know how they did it and cant find the site any more. Its probably easier for me to explain this is pictures: Wide Screen: Smaller Screen. Note that the last column as flowed onto the next row since there isn't enough space (this is perfect): However, it doesn't fill up the available space. This is an example image I photoshopped to show how I want it. Notice how the block on the bottom row fills the wasted space: This is a link to my site so you can try it out for yourself if you are interested: http://www.zombiemod.com/blog/?cat=1 The source is all there too, but I can post that here if it helps. How can I achieve this? Is it something to do with the overflow function? Thanks for any help you can give! James Hi there, I am trying to use a 3 column css layout. It works fine in IE7, but the divs just appear under each other in FF. This is my css: PHP Code: #1_left { float:left; width:250px; background-color: #f6f6f6; } #1_right { float:right; width:250px; margin:0; padding:0; background-color: #f6f6f6; } #1_middle { margin:0 250px; background-color: #f6f6f6; } and this is my HTML: PHP Code: <div id="1_left">text</div> <div id="1_right">text</div> <div id="1_middle">text</div> Any ideas? Hi, I am trying to code a new verwsion of my site which has a style sheet switcher. The main page includes a home file (by php) and the home file is just divs. I want the thin column on the left for one style and on the right for the other. The layouts are now messed up . Page is here The two css files are here and here . I'd appreciate any help in sorting this out. Also there are gaps at the end of the navbar, I don't know why!! Thanks Bye In it I meld Tonico Strasser's brilliant "Flexible Layout" (http://www.webproducer.at/flexible-layout ) with Stu Nicholls' mega-cool "How to Use CSS to Solve min-width Problems in Internet Explorer" (http://www.webreference.com/programming/min-width/ ). From a geek perspective this is a pretty cool layout: fully flexible source ordered pure CSS three (or two or one) full column layout with headers and footers and no javascript. It should look pretty much the same on any modern browser and should scale up and down smoothly as the font sizes are changed by the user. I'm curious how it works on real world browsers. Does it jerk or flicker as it is loaded or the browser window is resized? Does it scale up and down smoothly as you change the font size? Are the contents of the side columns always visible as you play with the browser window and font size? Do the side columns maintain their size and the center column shrink as the browser window shrinks until a minimum center column size is reached? Does it do anything funky? I've already found some minor funkiness on older versions of modern browsers running on Macs, but nothing awful, and the funkiness is due to browser bugs about which I can't do anything (data table captions, for example, don't seem to be understood well by Opera 6 for Macs . . . but then this is a data table caption issue, not a layout issue . . .). How does this layout work for you? In addition to the feedback, let me know the browser and platform you are using (eg., Firefox 1.0.6 on Windows XP). I'm particularly interested in feedback from folks testing it over a modem. Thanks! Here's the link to my test page: http://www.econinformation.com/layout_test.htm -- RS I just tested my site with IE6 and it's very broken (although it's valid HTML 4.01 strict according to w3.org). Main problem I am having is the links. I have a left navigation box, and a list of links inside it, the links display is set to 'block'. When the user's cursor is on the same line as the link, I want the whole line to change BG color and be clickable. This works now with FF perfectly. In IE your mouse has to be ON the actual link for the background to change color, and there is space on the left of the link block. Here is an example (not my site): http://rmideas.com/menus/menutest/NavToBar.htm The top right menu works like I want it to in FF, but in IE your cursor has to be on 'home'. How can I get this to work properly in both FF and IE? and I have overlapping problems, some code overlaps in one browser but looks fine in another. Good day, I am a newbie, both to CSS and to these forums. I recently undertook a job to update a website for a charity and am dealing with the previous webmasters coding, both html and css. I am trying to modernize the site a bit, it is very 1997. I am running into a bit of trouble with the hover class on one of my pages. When a link has been visited, it no longer changes color and highlights on hover. I read on multiple forums, this one included that it is because you must define hover last, after visited, active, etc. I did this, but still does not work. I am using Firefox 2. Here is the code I am working with, sorry that is is a bit lengthy, I don't know what parts are important or not because when I just change the hover, link, visted part it doesn't work. The page I am working with is at beverlyfoundation . org / library / index . html /* THE BASICS */ body { font-family: Verdana, Helvetica, Arial, sans-serif; color: #eaf5ff; margin: 0px; padding: 0px; background-color: #c2d8ec; } p { margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; } img { border: none; } a:link, a:visited { text-decoration: none; color: #EAF5FF; } a:active, a:hover { text-decoration: underline; color: #E51322; } /* HEADERS */ h1, h2, h3 { font-family: Helvetica, Arial, Verdana, sans-serif; margin: 0px 0px 14px; } h1 { font-size: 220%; text-align: right; font-style: italic; } h2 { font-size: 140%; } ul { list-style-position: outside; list-style-type: square; } /* TOP COLORED LINKS */ .navcells { text-align: center; vertical-align: middle; padding: 2px; font-weight: bold; font-size: 11px; } #navlinks a:link, a:visited { text-decoration: none; color: #EAF5FF; } #navlinks a:hover, a:active { text-decoration: underline; color: #EAF5FF; } /* LAYOUT */ #header { margin: 0px; padding: 0px; background-attachment: fixed; background-image: url(../images/header_gradient01_bg.jpg); background-repeat: repeat-x; background-position: left top; } #content { padding: 10px 20px 10px 10px; background-color: #0060BE; text-align: left; vertical-align: top; font-size: 12px; } #rightcolumn { background-color: #0060BE; padding: 10px; width: 220px; font-size: 11px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #EAF5FF; border-right-color: #EAF5FF; border-bottom-color: #EAF5FF; border-left-color: #EAF5FF; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; } #splashrightcolumn { background-color: #0060BE; padding: 10px; width: 220px; font-size: 11px; } #rightcolumn img { margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; } #rightcolumn p { margin-top: 0px; margin-right: 0px; margin-bottom: 7px; margin-left: 0px; } #rightcolumn h1 { font-size: 180%; text-align: center; font-style: italic; } #rightcolumn h2 { margin-top: 21px; margin-right: 0px; margin-bottom: 7px; margin-left: 0px; text-align: center; } #rightcolumn a:link, a:visited { text-decoration: none; color: #EAF5FF; } #rightcolumn a:hover, a:active { text-decoration: underline; color: #EAF5FF; } #threecolumn { padding: 10px; width: 220px; text-align: left; vertical-align: top; font-size: 12px; } #threecolumn a:link, a:visited { color: #EAF5FF; text-decoration: none; } #threecolumn a:hover, a:active { color: #EAF5FF; text-decoration: underline; } #footer { color: #EAF5FF; padding: 10px; font-size: 11px; text-align: left; vertical-align: top; line-height: 14px; } #footer a { color: #EAF5FF; text-decoration: none; } #address { color: #EAF5FF; padding: 10px; font-size: 11px; text-align: left; vertical-align: top; border-left-width: 1px; border-top-color: #EAF5FF; border-right-color: #EAF5FF; border-bottom-color: #EAF5FF; border-left-color: #EAF5FF; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; } #address a { color: #EAF5FF; text-decoration: underline; } #address h2 { margin: 0px; } .threecolumns { color: #EAF5FF; padding: 10px; font-size: 11px; text-align: left; vertical-align: top; } .resourcestore p { margin-top: 0px; margin-right: 0px; margin-bottom: 4px; margin-left: 0px; } .gradientrow { background-image: url(../images/footer_bg01.jpg); } .copyright { font-size: 10px; } .resourcestore { padding: 10px; } I was looking for ways to make the layout work with header, body and footer that work in IE, Gecko, Safari, etc.. I thought I found a good solution via Google surfing and it looked great. Then I discovered that it doesn't have the "<!DOCTYPE ...>" tag, so I added it and now it is thrown out of wack in most browsers. Does anyone know of a valid css layout that would include the header, the body and the footer that work. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <style type="text/css"> /* colored borders put on for visual effect only */ body{ height: 100%; margin: 0; padding: 0; } #spacer{ height: 95%; float: left; width: 1px; font-size: 1px; /* to make sure width is not overridden */ padding: 0; margin: 0; background-color: red; /* visual effect only */ } #contentwrap{ width: 100%; text-align: center; padding: 0; margin: 0; } #content{ padding: 30px; border-width: 1px; border-style: solid; border-color: blue; } #footer{ clear: both; height: 5%; border-width: 1px 0 0 0; border-style: solid; border-color: red; vertical-align: middle; padding: 0; margin: 0; } </style> </head> <body> <div id="spacer"></div> <div id="contentwrap"> <div id="content"> <p>this is the content div</p> <p> </p> <p>more content</p> <p> </p> <p>and even more</p> <p> </p> <p> </p> </div><!-- content --> </div><!-- contentwrap --> <div id="footer">footer</div> </body> </html> I thought I can do this but it doesn't really work as the footer doesn't go all the way down to the bottom when needed... Code: <div id="header"> .... </div> <div id="main"> .... </div> <div id="footer"> .... </div> Thanks, FletchSOD Sorry I can't be more descriptive about my problems, but I am really not that great at CSS/PHP/coding in general. I barely passed my Matlab/C++ class freshman year of college, lol. Anyway...my friend and I just started a blog but neither of us know anything about CSS. I followed a tutorial for creating Wordpress Themes using PHP and CSS. I've been working on the blog (hosted locally) for a while now, and finally decided to FTP it to my host server to do the browser snaps on it, etc. thepennydreadful.com That's the URL and right now there is a gigantic white gap between the footer and the container....I thought if I adjusted the padding it might fix the problem because that's how I fixed it when there was a gigantic white gap between the header and the container...but yeah. I've heard from my friend that in his browser (latest vers of firefox) that the sidebar doesn't go to the side like it's supposed to either. I'm using the latest version of Google Chrome, if that matters. Any help or suggestions on how to fix the problem would be greatly appreciated. I've been following the W3 school's pages on CSS too, but I haven't had any formal instruction on CSS so most of what I am doing is pretty much just poking around in the dark. :'( PS: I did validate my CSS like it says to do in the sticky at the top of the forum page and it validates alright.... Code: /* Theme Name: The Penny Dreadful Theme URI: http://www.thepennydreadful.com Description: The layout for the gothic and lolita blog "The Penny Dreadful." Version: 1.0 Author: Kate Bartlett Author URI: http://nozomiwhitewolf.livejournal.com/ */ body{ margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; font-family: Arial, Helvetica, Georgia, Sans-serif; font-size: 12px; text-align:left; vertical-align: top; /* background-color: #29001E; */ } div#content{ padding:180px; width: 400px; float:left; } /*Header, Container, Footer*/ div#header{ background-image: url('Top.png'); background-repeat:no-repeat; height: 519px; } div#container{ background-image: url('Middle.png'); background-repeat: repeat; margin-right: 639px; height: 476px; text-align: left; padding: 1px; } div#footer{ background-image: url('Bottom.png'); background-repeat:no-repeat; clear:both; float: left; width: 1050px; text-align: left; padding: 160px; height: 360px; } /* End of file. */ If you go to www.brightfusehosting.com/newindex.php you'll see what I mean. The nav menu is screwed up, and the links on the gray tables resemble that almost of the nav bar links. View in IE to replicate the issue. |