CSS - Links Aren't Clickable In Firefox
Hello all. I have the following code:
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" lang="en"> <head> <title>My Site</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #base { border-top: 1px solid #ffffff; border-bottom: 1px solid #ffffff; background: #c0c0c0; } /* end #base */ #main_block { margin: auto; text-align: left; width: 955px; } /* end #main_block */ #main_content, #main_content_2c, #main_content_3c { background: #ffffff; border-left: 1px solid #575757; border-right: 1px solid #575757; } #top_main_content { padding-top: 1em; } #top_main_content ul { float: left; padding: 0; margin: 0; list-style-type: none; border-top: 1px solid #f1f1f1; } /* end #top_main_content ul */ #top_main_content ul li { text-align: right; border-bottom: 1px solid #f1f1f1; } /* end #top_main_content ul li */ #top_main_content ul li a { line-height: 26px; display: block; color: #686868; width: 266px; } /* end #top_main_content ul li a */ .indent { margin-right: 1.5em; } #top_main_content #rotating { z-index: 0; float: right; width: 687px; height: 242px; border-bottom: 1px solid #f1f1f1; border-top: 1px solid #f1f1f1; } /* end #top_main_content img */ #top_main_content #rotating p, #top_main_content #rotating h1 { margin: 2em 0 0 2em; } #sidemenu12, #sidemenu11, #sidemenu13, #sidemenu14, #sidemenu15, #sidemenu16, #sidemenu17, #sidemenu18, #sidemenu22 { width: 687px; height: 242px; font-weight: bold; overflow: hidden; position: absolute; visibility: visible; } </style> </head> <body> <div id="base"> <div id="main_block"> <div id="main_content"> <div id="top_main_content"> <ul> <li><a id="sidemenu11_link" href="#"><span class="indent">Link 1</span></a></li> <li><a id="sidemenu22_link" href="#"><span class="indent">Link 2</span></a></li> <li><a id="sidemenu12_link" href="#"><span class="indent">Link 3</span></a></li> <li><a id="sidemenu13_link" href="#"><span class="indent">Link 4</span></a></li> <li><a id="sidemenu14_link" href="#"><span class="indent">Link 5</span></a></li> <li><a id="sidemenu15_link" href="#"><span class="indent">Link 6</span></a></li> <li><a id="sidemenu16_link" href="#"><span class="indent">Link 7</span></a></li> <li><a id="sidemenu18_link" href="#"><span class="indent">Link 8</span></a></li> <li><a id="sidemenu17_link" href="#"><span class="indent">Link 9</span></a></li> </ul> <div id="rotating"> <div id="default_div"><p>Default</p></div> <div id="sidemenu11"><p>Section 1</p></div> <div id="sidemenu12"><p>Section 2</p></div> <div id="sidemenu13"><p>Section 3</p></div> <div id="sidemenu14"><p>Section 4</p></div> <div id="sidemenu15"><p>Section 5</p></div> <div id="sidemenu16"><p>Section 6</p></div> <div id="sidemenu17"> <p>Section 7 - A<br /> <a href="#">Link 1</a></p> <p><a href="#">Link 2</a></p> <p>Section 7 - B<br /> <a href="#">Link 1</a><br /> <a href="#">Link 2</a><br /> <a href="#">Link 3</a></p> </div> <div id="sidemenu18"><p>Section 8</p></div> <div id="sidemenu22"><p>Section 9</p></div> </div> </div> </div> </div> </div> </body> </html> Which if you look at it in a browser looks rather messy but I have javascript that hides and shows things. But my question is why aren't the links clickable in Firefox. They are in IE7, IE6, and Opera but not Firefox or Safari. I know that if I remove position: absolute from the last set of styles that it will work but then everything isn't stacked on top of each other. Similar Tutorialsexample page: here css The links in the footer aren't available in FF (IE is OK)... I thought it had something to do with not clearing the floats, so I added that, now the red boarder(that I was using to try and get a visualization) goes around the whole content div, but the links still are clickable... I read about this somewhere, but I couldn't decipher the fix, and I can't find the page again... How do I fix this? Thanks Bryan The problem is that I have a wrapper div that will contain two "boxes", one that has a white background one that has a black background. I want the white background box to be to the left of the black background box, but inside the wrapper div which has a red background. It works just fine in IE (which surprised me) but Firefox is doing something really strange. The black background box starts all the way to the left of the wrapper with the white background box on top of it. Not only that, but the text for the black background box starts below the white background box. I'm new to inserting code, but I'll give it a try: 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> <title>linking to style sheets 2</title> <style type="text/css"> body { background-color: #ccccff; } h1 { font: bold 20px arial, tahoma, verdana; color: #6633ff; border-bottom: 1px solid #444444; margin: 25px 0; padding: 5px; } p { font: 15px verdana; line-height: 1.5em; color: #000077; margin: 0; padding: 0; } .leftbox { width: 300px; background-color: #ffffff; padding: 10px; margin: 10px 10px; float: left; } .rightbox { width: 300px; padding: 10px; margin: 10px 10px; background-color: #000000; } .wrapper { width: 800px; background-color: #ff0000; } .end { clear: both; } </style> </head> <body> <div class="wrapper"> <div class="leftbox"> <h1>Heading 1</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras pede sem, lobortis tempus, sodales sed, vehicula vitae, lorem. Fusce nec massa id erat lobortis semper. Vestibulum dignissim orci et orci. Fusce quis tortor eu sapien gravida pretium. Sed vel lacus. Aliquam erat volutpat. Pellentesque suscipit imperdiet nibh. Vivamus ut turpis. In leo. Quisque augue. </p> </div> <div class="rightbox"> <h1>Heading 1</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras pede sem, lobortis tempus, sodales sed, vehicula vitae, lorem. Fusce nec massa id erat lobortis semper. Vestibulum dignissim orci et orci. Fusce quis tortor eu sapien gravida pretium. Sed vel lacus. Aliquam erat volutpat. Pellentesque suscipit imperdiet nibh. Vivamus ut turpis. In leo. Quisque augue. </p> </div> <div class="end"></div> </div> </body> </html> You'll see that I've floated the white background div, but again, this is making that div sit on top of the black background div. Can anybody help? P.S. I know this isn't really pleasing to the eye, but it's just for demonstration purposes I have a page that displays a bunch of products for my site and when viewed in FireFox and Chrome everything is great. When viewed in IE or Opera however, the products are displayed correctly but are not clickable. I can't seem to figure out why IE and Opera don't see the anchor tag. I had set it to display as block and set height and width to 100% so that the entire square that the products are displayed is clickable (the product images are all different sizes). Since IE didn't see it I set some conditional stuff to simply add the link to the product images themselves and that does seem to work (although not how I'd like it to) but this solution doesn't really work since Opera doesn't work and doesn't recognize the IE conditional statements. Here's the code for the individual products, obviously it's being repeated a bunch of times when the page is actually viewed. Also, yes I used a table in there but I was having a bitch of a time getting the image to center both horzontally and vertically so I broke down and just used the table cell for it. If somebody feels up to helping me re-write it to center using just divs, I'm all for it. Code: <div class="product_cell"> <table width="187px" height="190px" style="position:absolute; top:0; left:0;"><tr> <td height="100%" width="100%" align="center" valign="middle"> <!-- FOR NON-IE BROWSERS--> <![if !IE]> <div class="product_link"> <a href="proddisp.php?id=<?=$row['id']; ?>" style="display:block;width:100%;height:100%;"></a> </div> <![endif]> <!-- END FOR NON-IE BROWSERS--> <!-- FOR IE Part1--><!--[if IE]><a href="proddisp.php?id=<?=$row['id']; ?>"><![endif]--> <img src="http://www.skullcrow.com/images/products/<?=$row['id'].'_m.gif'; ?>" alt="<?=$row['name']; ?> - <?=$row['subname']; ?> - t-shirt" border="0" /> <!-- FOR IE Part2--><!--[if IE]></a><![endif]--> </td></tr></table> <img src="http://www.skullcrow.com/images/frame_bg/prodframe_left_<?=$row['bgcolor']; ?>.jpg" width="11px" height="190px" style="float:left; border:0;" /> <img src="http://www.skullcrow.com/images/frame_bg/prodframe_center_<?=$row['bgcolor']; ?>.jpg" width="162px" height="190px" style="float:left; border:0;" /> <img src="http://www.skullcrow.com/images/frame_bg/prodframe_right_<?=$row['bgcolor']; ?>.jpg" width="14px" height="190px" style="float:left; border:0;" /> </div> <!-- END PRODUCT_CELL --> And from the stylesheet... Code: .product_cell {height:190px;width:187px;padding:0;margin:0;border:0;position:relative;overflow:hidden;} .product_link {position:absolute;top:0;left:0;width:100%;height:100%;z-index:500;} The page I'm working on is located he http://www.skullcrow.com/index_imp.php Thanks for any help. hi, whenever i hover over the images on my navigation bar, the links do appear to be there but when i click on them..it wont click :S URL this is the navigation, when you click on an item and i presume its that blue line with jquery that is causing it, maybe in the css... Html: Code: <ul class="lavaLampBottomStyle" id="3"> <li class="navibg" style="width:80px;"> <a href="#">Home <br style="padding-bottom:5px;"> <span class="navidescription"> welcome to cw </span> </a> </li> <li class="navibg" style="width:110px;"> <a href="http://citywater.uk.com/contact-us/">Contact Us <br style="padding-bottom:5px;"> <span class="navidescription"> how to reach us </span> </a> </li> <li class="navibg" style="width:95px;"> <a href="http://citywater.uk.com/about-us/">About us <br style="padding-bottom:5px;"> <span class="navidescription"> read about us </span> </a> </li> <li class="navibg"> <a href="http://citywater.uk.com/latest-news/">Latest News <br style="padding-bottom:5px;"> <span class="navidescription"> water treatment news </span> </a> </li> </ul> CSS: Code: .lavaLampBottomStyle { float :right; list-style :none; margin-top :20px; padding :0; margin-bottom:24px; } .lavaLampBottomStyle li { border-bottom : 5px solid white; float : left; list-style : none; padding-bottom :30px; padding-left :25px; padding-top :10px; position :relative; vertical-align :top; } .lavaLampBottomStyle li.back { border-bottom : 5px solid #88B8E8; height : 1px; position : absolute; margin-top:39px; width : 9px; z-index : 8; } .lavaLampBottomStyle li a { color : white; float : left; font : bold 15px arial; height : 40px; letter-spacing : 0; outline : none; padding-right :5px; position : relative; text-align : center; text-decoration : none; text-transform : uppercase; top : 7px; z-index :10; } .lavaLampBottomStyle li a:hover, .lavaLampBottomStyle li a:active, .lavaLampBottomStyle li a:visited { border : none; } I've spent a few hours researching this and I sure hope I'm not out of luck, because I'm not finding a solution. Here's my site (just a template): http://kris.dreamhosters.com/mhw/ As the subject line says, the links at the bottom are not clickable in IE6 or IE7 and I know exactly what is causing it. In order to have those curved graphics on the bottom, I have them attached to separate divs and I need to use a negative margin on one to pull it up so they align. That div covers the div that the links are in making them unclickable in IE. I've tried to move the links to the the other div, but that caused other problems in my template. I read through this article: http://www.vision.to/articles/the-difference-between-the-flow-and-positioning-for-web-pages.php Tried positioning, Z-index, nothing. Does anyone have any suggestions for me? In the html http://www.inspiration-company.nl/test40.html I have placed 4 links. In IE there is a normal small vertical distance between the lines of these links. In Firefox however there is more distance between the lines. Is there a way to get the distance in FireFox the same as in IE? Hey, Just making a site for a friend and I have run into a block with the Hover tag. It works fine in IE but for some reason other browsers aren't working properly... Any ideas? I have put my source underneath, sorry its squashed up. I have also loaded the site to the domain but won't put the link - not sure if I'm allowed. 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" lang="en" xml:lang="en"> <head> <title>Innovate Photography - Home</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="StyleSheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div id="wrap"> <div id="header"> <img src="images/logo2.png" alt="logo - Innovate photography" width="780" height="62" /> </div> <ul id="nav_bar"> <li><b href="index.html">Home</b></li> <li><a href="about.html">About Us</a></li> <li><a href="gallery.html">Gallery</a></li> <li><a href="disability.html">Disability</a></li> </ul> <div id="slideshow"> <img src="images/index_page/1.jpg" alt="Slideshow Image 1" class="active" /> <img src="Images/index_page/2.jpg" alt="Slideshow Image 2"/> <img src="Images/index_page/3.jpg" alt="Slideshow Image 3"/> <img src="Images/index_page/4.jpg" alt="Slideshow Image 3"/> </div> <!--Java image gallery - Index Page --> <script type="text/javascript" src="jquery-1.2.6.min.js"></script> <script type="text/javascript"> /*** Simple jQuery Slideshow Script Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc. Please link out to me if you like it :) ***/ function slideSwitch() { var $active = $('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first'); var $sibs = $active.siblings(); var rndNum = Math.floor(Math.random() * $sibs.length ); var $next = $( $sibs[ rndNum ] ); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 5000 ); }); </script> <div id="content"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut et mi magna, non sodales augue. Aliquam porta, risus id euismod egestas, lacus velit tincidunt quam, in sodales enim urna et dui. Duis interdum libero at dolor aliquet nec ultricies lacus interdum. Proin non consequat erat. Sed varius, libero id bibendum aliquam, arcu augue ultrices dui, placerat laoreet dolor nibh et nunc. Ut dui magna, semper quis sagittis sed, faucibus ac ante. Nulla imperdiet tempor orci vel varius. Aliquam porta placerat tortor, non dignissim libero elementum ac. Mauris in magna in ligula tincidunt viverra non vestibulum elit. Etiam hendrerit leo non mauris consectetur nec blandit orci auctor. Sed felis felis, facilisis nec posuere ac, accumsan nec est. Aenean sapien magna, commodo ut sagittis gravida, varius eget magna. Etiam ligula sem, faucibus eget tristique quis, hendrerit vitae justo. Maecenas fermentum sollicitudin sodales. Ut non aliquet neque. Mauris sagittis gravida purus nec consequat. Sed in quam leo.</p> <p>Phasellus quis orci ligula. Curabitur quis neque ultricies ante adipiscing vehicula. Morbi blandit, purus dictum pharetra feugiat, magna ipsum lobortis velit, eu blandit turpis ipsum at arcu. Vestibulum non mauris felis. Curabitur viverra arcu eget tortor pellentesque a laoreet mauris mattis. Sed et ligula tortor, eget laoreet mauris. Integer nunc enim, tristique eu tempus at, vehicula non enim. Maecenas sed porttitor lorem. Nam ultricies, nisl rutrum vulputate facilisis, enim purus commodo elit, sed pretium tortor ligula quis lectus. Aliquam erat volutpat. Duis euismod placerat nisi ac adipiscing. Fusce varius pellentesque sapien, eu placerat neque mattis pharetra. Aenean mollis neque sed mi pretium sodales. Aenean fringilla rhoncus tincidunt. Sed vel odio et sem condimentum iaculis.</p> <p>In mollis posuere tortor, at euismod sem fermentum nec. Aenean euismod, neque sit amet tincidunt mattis, risus nunc bibendum mi, non malesuada purus eros ut urna. Donec accumsan sagittis nibh, auctor ultricies massa tincidunt et. Phasellus quam nunc, pretium eu dictum at, porttitor a dolor. Etiam nec odio felis, nec aliquam nibh. Sed eleifend, odio faucibus venenatis vulputate, orci neque mattis augue, sed consectetur tellus lorem a lacus. Aliquam diam ipsum, consectetur et tempus non, suscipit nec orci. Donec dignissim lobortis gravida. Integer ornare diam vitae elit tristique a auctor lorem condimentum. Sed sapien nisi, ullamcorper at gravida vitae, mollis vel mauris. In non tortor ante, nec scelerisque elit. Etiam tristique, magna quis tristique ultrices, nunc tellus tempus lorem, a suscipit tortor magna at dui.</p> </div> </div> </body> </html> Code: /* Index Markup */ * { padding: 0px; margin: 0px; } body { background-color: #ffffff; margin:0; padding:0; border:0; min-width:700px; font-size:100%; } #wrap { width:750px; margin:0 auto; padding-top: 20px; } #header {width: 200px; padding-left: 0px;} #nav { margin:0 auto; font:Palatino; } #nav_bar { width: 100%; float: left; margin: 0 0 3em 0; padding: 0; list-style: none; font:Palatino; padding-left: 190px; } #nav_bar li { float: left;} #nav_bar li a { display: block; padding: 8px 15px; text-decoration: none; font-weight: bold; color: #069; border-right: 1px dotted #000; font:Palatino; } #nav_bar li b {display: block; padding: 8px 15px; text-decoration: none; font-weight: bold; color: #069; border-right: 1px dotted #000; font:Palatino; border-left: 1px dotted #000; } #nav_bar a:hover {color: #000;} #nav_bar b:hover {color: #000;} #nav_bar:hover {color: #000;} h2 { font:Palatino; font-size:15px; text-decoration: none; } /*** Slideshow positioning **/ #slideshow { position:relative; width: 570px; height: 400px; padding-bottom: 10px; } #slideshow IMG { position:absolute; top:55px; right: -40px; z-index:10; } #slideshow IMG.active { z-index:10; opacity:1.0; } #slideshow IMG.last-active { z-index:9; } #content { position: relative; width: 670px; padding-top: 20px; font:Palatino; font-size:12px; color: #1e54ef; padding-bottom: 20px; padding-left: 30px; } #photo { } #index_style { position:absolute; left:50px; top:150px;} #index_button { position:absolute; left:750px; top:400px; } #index_button a { font-size: 30px; font:Palatino; } #index_button a:hover {color: #1e54ef} #index_button a:link {text-decoration: none; font-family:Georgia,serif;} on this page http://tampabay-online.org/cetr/artists.php I am getting lines under the images and text that are links (I do not want the line under the images). This happens in Firefox. It displays how I want it to in IE and Opera. I usually design my sites for Firefox but I really trust Opera's compliance. my css includes : Code: a img { border: none; } Any ideas where the lines are coming from? Thanks! Hi. I am thinking my two problems are related! Here are my two problems: My top nav bar links don't work in Firefox and the design breaks in IE7. Any help would be much appreciated! I have validated it, and I know the slider and video don't validate, but I still have these problems even when I take those out. Thanks so much for any help you can provide! christthesavior.org Thank you!!! This may be a pretty vague question, so I'm sorry in advanced. But I'm working on one of those recipe websites that you get as an assignment during school. Everything seems to be working, like adding comments, writing up recipes, etc. But for some reason, I'm having a huge issue with apostrophes. Whenever I want to add a comment to a recipe that involves an apostrophe in any way, it says "Sorry, there was a problem with your comment." I mostly want to know why this happens on websites instead of getting the direct "this-is-how-you-fix-it" answer, because i've seen this happen on other websites. I am having issues with a horizontal menu bar. The menu is supposed to be created with 4 images seamlessly aligned, but I find that there is a 3px space between each when I load the page. This causes the width of the 4 images to exceed the specified width specified for that id and a wraparound occurs. Page: www .sjbcathedral. org/php/sample.php CSS: Code: body { height:100%; max-height:100%; padding:0; margin:0; border:0; background:url(../images/redbkgnd.jpg); overflow:auto; text-align:center; } img {border:0px; margin:0px; padding:0px;} #container { margin-left:auto; margin-right:auto; height:auto; text-align:left; width:995px; background:url(borderShadow2.png); #menuBar { width:905px height:35px } menuBar PHP: PHP Code: <div id="menuBar"> <img src="menu1_MassTimes.jpg" ></img> <img src="menu2_OurSchool.jpg" ></img> <img src="menu3_OurClergy.jpg" ></img> <img src="menu4_ContactUs.jpg" ></img> </div> I'm new around here and to webdesign in general... Thanks for the help! Best, Andrew I had my css working fine and then I decided to change the layout and I almost have the new style sheet finished. However, I am trying to divide my header field into 2 columns (each 50% of the width), the left most column will have my banner and the right most column will be split in half (each half being 50% of total height), with 2 rows, one for a search field and the other for my main site navigation. However, the 2 rows are not taking up the 50% of the height that I would like for them to take up. Any ideas as to why? I tried defining min and max height, but that didn't work... Here's my css: Code: /* CSS Document */ h1 { font-family: Geneva, Arial, sans-serif; font-size: 20px; color:#000000; } h2{ font-family: Geneva, Arial, sans-serif; font-size: 16px; color:#000000; } h4{ font-family: Geneva, Arial, sans-serif; font-size: 12px; color:#000000; } /*============================ Begin Layout Structure ============================*/ #wrapper { /* main container for everything */ width: 1024px; min-height: 748px; margin: 0 auto; background: #ffffff; overflow: hidden; /* contain inner floats */ position: relative; /* establish the containing block */ } #accounttypeselector { /* select personal or business to affect page display */ height: 25px; background: #0000FF; } #servicesbar { /* container for user services */ height: 30px; /* 30px should be adequate height */ width: 100%; } #servicesbar-services { /* container for user services once logged in */ float: left; /* push this to left side */ width: 75%; /* want it to be 75% of the servicesbar width */ height: 100%; /* since servicesbar container height is 30px should be 100% of this */ background: #ff00ff; } #servicesbar-login { /* for user login and logout - contained inside servicesbar */ float: left; /* should push this just beside services */ width: 25%; height: 100%; /* since servicesbar container height is 30px should be 100% of this */ background: #8B2323; } #header { /*header for the site - will contain logo, search, and main navigation */ float: left; width: 1024px; height: 100px; } #header-logo { /* will include site banner/logo - will be located on left side */ background: #ff0000; width: 50%; float: left; } #header-rightcol { /* column for search and main nav */ width: 50%; float: left; } #header-rightcol-search { min-height: 50%; max-height: 50%; background: #7FFFD4; } #header-rightcol-navmain { /* navbar that will be located below header */ min-height: 50%; max-height:-50%; background: #21ee00; } #bodywrapper { /* wrapper for main content - will have 3 columns here */ width: 1024px; height: 100%; padding-top: 10; } #bodywrapper-navleft { /* sub nav to be lcoated in left column of bodywrapper */ width: 15%; background: #8B8378; float: left; } #bodywrapper-main { /* main content to be located in middle column of bodywrapper */ width: 60%; background: #66CDAA; float: left; } #bodywrapper-news { /* news column to be located in right column of bodywrapper */ width: 25%; background: #8A2BE2; float: left; } #footer { /* footer to be located at bottom of wrapper */ margin: 0 auto; position: relative; width: 1014px; /* will be 1024 with padding */ height: 20px; padding-right: 10px; } and here's my basic html Code: <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="test2.css" /> </head> <body> <div id= "wrapper" > <div id= "accounttypeselector" > Lorem ipsum dolor sit amet </div> <div id= "servicesbar" > <div id= "servicesbar-services" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div> <div id= "servicesbar-login" > Lorem ipsum dolor sit amet</div> </div> <div id= "header" > <div id= "header-logo" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam. Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna. Pellentesque in dui. In eget elit. Praesent eu lorem.</div> <div id= "header-rightcol" > <div id= "header-rightcol-search" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> <div id= "header-rightcol-navmain" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> </div> </div> <div id= "bodywrapper" > <div id= "bodywrapper-navleft" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam. Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna. Pellentesque in dui. In eget elit. Praesent eu lorem. </div> <div id= "bodywrapper-main" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam. Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna. Pellentesque in dui. In eget elit. Praesent eu lorem. </div> <div id= "bodywrapper-news" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam. Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna. Pellentesque in dui. In eget elit. Praesent eu lorem. </div> </div> </div> <div id= "footer" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> </body> </html> Thanks in advance and any suggestions would be greatly appreciated. Hello I'm a photographer trying to code my site myself, I'm a control freak and trying to learn css but coding is not my thing. I have two different rollover effects on my page but only one part is working. The links on the right of photo function correctly when I hover over them, but the links on top don't change as they should. a link to my css file Can anyone help me on this? I believe i have the order correct (a:hover follows link and visited) but i'm sure it's an easy fix. Sadly, not for me. Thanks for any help here is my site: chrisziebarth dot com/test My css file is located in /style.css Here's the site: http://www.whitecapgraphics.com/APP/index.php Here's the CSS: Code: @import url("shadows.css"); * {margin:0; padding:0;} body { background-image:url(images/background.gif); color:#450109; behavior:url(scripts/csshover.htc); width: 100%; } img { behavior:url(scripts/pngbehavior.htc); } img#yap { width:167px; height:145px; border: 0; } a { color:#D6970C; text-decoration:none; font-weight:bold; font-variant:small-caps; font-family:Georgia, "Times New Roman", Times, serif; font-size:.9em; } a:visited { color:#D6970C; text-decoration:none; font-weight:bold; font-variant:small-caps; font-family:Georgia, "Times New Roman", Times, serif; font-size:.9em; } a:hover { color:#450109; text-decoration:underline; } a:active { color:#450109; text-decoration:underline; } div#main { background-color: #FFFFFF; margin: auto; border-width: 0px 5px 0px 5px; border-style: solid; border-right-color: #450109; border-left-color: #D6970C; border-bottom:15px solid #450109; min-width:980px; width: 95%; width: expression((documentElement.clientWidth < 1000) ? "980px" : "95%" ); } #main #logo { background-image:url(images/headerbg.gif); background-position: top center; background-repeat:no-repeat; background-color:#71001E; } #logo #logoimage { text-align:center; margin:auto; margin-left:193px; } #main #leftflourish { float:left; } #main #rightflourish { float:right; } div#navigation { background-color:#400000; float: right; margin: 0; width: 100%; min-height: 24px; border:0; } div#navigation ul { margin-left: 193px; padding-left: 5px; padding-right: 5px; background-image:url(images/logob.jpg); background-position:center; background-repeat:no-repeat; } div#navigation ul li { float: left; list-style-type:none; width: 25%; position: relative; z-index:99; } div#navigation a { text-decoration:none; font-variant:normal; color: #DFCDB6; text-align:center; display: block; width: 100%; line-height: 25px; font-family: serif; font-size:1.1em; font-weight:normal; letter-spacing:-.05em; } div#navigation a:hover { color: #FFCC00; } div#navigation ul li ul { width: 90%; padding: 0; margin:0; margin-left:5%; margin-right: 5%; position:absolute; display: none; background-image:url(images/uldropback.jpg); background-position:bottom; background-repeat:no-repeat; background-color:#DAC4A5; } div#navigation ul li ul li { width: 100%; background:transparent; background-image:url(images/lidropback.jpg); background-position: left center; background-repeat:repeat-y; } div#navigation ul li ul li a{ color:#660000; background-image:url(images/adropback.jpg); background-position:right; background-repeat:repeat-y; line-height:1.8em; } div#navigation ul li ul li a:hover{ color:#71001E; font-weight:bold; text-decoration:underline; } /* shows drop down on hover */ div#navigation ul li:hover ul, div#navigation ul li ul:hover {display:block;} div#lcolumn { width: 190px; float: left; margin: 0; padding: 0; position: relative; top: -66px; z-index:999; } div#lcolumn ul{ padding:0; margin-bottom:2em; } div#lcolumn ul li { list-style-type:none; text-align:center; width: 167px; margin-bottom: .1em; background-image: url(images/yapdropback.jpg); background-color:#660000; background-repeat: repeat-y; } #main #body #lcolumn ul li a { color:#DFCDB6; text-decoration:none; font-family: Georgia, "Times New Roman", Times, serif; font-size:.9em; line-height: 24px; letter-spacing: -.02em; font-variant:small-caps; margin: 0; } #main #body #lcolumn ul li a:hover { color: #ffcc00; } #main #body #lcolumn #featureContent { padding-top: 114px; background-image: url(images/featurestitle.jpg); background-repeat: no-repeat; width: 190px; } #main #body #lcolumn #featureContent div{ padding-right: 30px; padding-left:10px; background-image:url(images/featuresback.jpg); background-repeat:repeat-y; color:#FFFFCC; } #main #body { background-image:url(images/chaser.jpg); background-position:bottom right; background-repeat:no-repeat; position: relative; margin-bottom:3em; /*1.25 + 1.75*/ clear:both; height: 100%; } #main #body #content { padding-left: 210px; /*fix for IE - it's including from side of L Column*/ position: relative; top: 48px; z-index:1; padding-bottom:200px; } #content img { border: 1px solid black; padding: 5px; margin: 0px 10px; } h1 { font-family: "Times New Roman", Times, serif; font-size: 1.3em; line-height:1.1em; text-transform: uppercase; color: #350000; width: 50%; } #main #body #content div ul li { float: right; list-style-type:none; padding-left: 2%; line-height:2em; display:block; font-weight:bold; font-size:.9em; } h2 { position:relative; width: 98%; background-image:url(images/navback.jpg); background-repeat:repeat-x; padding-top:1%; font-family: "Times New Roman", Times, serif; font-size: 1.2em; text-indent: 2em; padding-bottom: 1.5em; } #main #body #content div ul { width: 46%; position: absolute; top: .2em; right:0; padding-right:4%; } h1:first-letter { font-size: 1.7em; } div#h1line { background-image:url(images/divider.gif); background-position:right; height:65px; width: 97%; } h3 { font-size: 1.2em; padding-left: 4%; } h4 { font-size: 1em; font-weight:bold; padding-left: 6%; line-height:1em; font-family:Georgia, "Times New Roman", Times, serif; } .h3line { background-image:url(images/smdivider.gif); background-position: top right; background-repeat:no-repeat; min-height: 2em; } hr { color:#660000; margin-left: 4%; width: 90%; } #content p { padding: .5em 20px 1.5em 2%; margin: 0 8% 0 4%; font-family:Georgia, "Times New Roman", Times, serif; } ul.contentlist{ padding: 0px 20px 1.5em 2%; margin: 0 8% 0 4%; font-family:Georgia, "Times New Roman", Times, serif; } p.center { text-align:center; } table { width: 80%; font-family:Georgia, "Times New Roman", Times, serif; } form table { padding-left:6%; margin-bottom:1.5em; } form td { font-weight:normal; } td { font-weight:bold; } .right { text-align:right; padding-right: 2%; width:59%; } div.table { top: -1.5em; width:auto; position:relative; } div.iframe { display: block; width: 92%; margin-left: 4%; height:60em; } span.leftcell{ display:block; width:47%; text-align:right; float:left; padding-right:1%; font-family:Georgia, "Times New Roman", Times, serif; } span.rightcell{ display:block; width:49%; float:left; text-align:left; padding-left:1%; font-weight:bold; font-family:Georgia, "Times New Roman", Times, serif; } span.question { font-weight:bold; } span.package { width:55%; float: left; } #main #footer { text-align: center; position:relative; top: -1em; padding: 0 3% 0 3%; } div#logoBottom { border:0px; padding:0; margin:auto; text-align:center; } /* Hack Zone - KILL INTERNET EXPLORER! & Aslett Clearing */ .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix {display: inline-table;} /* backslash hack hides from IE mac \*/ * html .clearfix {height: 1%;} * html #main #body #content {padding-left:10px;width:80%;} * html #main #body #content div ul { top: .6em; } * html a:hover {text-decoration:underline;} * html #main #body #lcolumn ul li a { font-size: .8em; } * html hr { text-align:left; } * html div#h1line { width:98%; } .clearfix {display:block;} /* end backslash hack */ I have two little questions. One, the logo is divided into three parts, and they just don't seem to be lining up correctly. I think they should be right though? Can anyone see why? Second, I found some CSS styling that is supposed to provide a text shadow in any browser. I'm using it because the text for the main links is blending in too much with that background bit. It works in IE6, but it doesn't seem to be working for Firefox, where it's supposed to be using :before I think. I'm unable to test any other browsers except IE7 which I just haven't yet. Here is the attached shadows style sheet code: Code: /* CSS Document */ /* default setup that everything sees */ .shadow { /* needed for Internet explorer */ height: 1em; filter: Shadow(Color=#666666, Direction=135, Strength=5); /* Needed for Gecko */ line-height: 2em; white-space: nowrap; } /* * used by browsers which know about * :before to create the shadow */ .shadow:before { display: block; margin: 0 0 -2.12em 0.15em; padding: 0; color: #666666; } #shadow_1:before { content: 'In shadow'; } #second_2:before { content: 'Happy Shadowing!'; } /*\*/ html*.shadow { [color:red;/* required by Safari * so that [] is correctly * begun. associated with * the property, yet hiding * it. Seen by IE6 */ /* * seen by IE6 and Safari, but hidden * from Gecko */ text-shadow: #666666 5px 5px 5px; ]color:auto; /* resets color for IE6 */ }/**/ /* * end hack using dummy attribute selector * for IE5 mac */ .dummyend[id]{clear: both;} /*\*/ html*.shadow:before { [color:red;/* required by Safari. seen by IE6 */ /* * seen by IE6 and Safari, but hidden * from Gecko */ display: none; ]color:auto; /* resets color for IE6 */ }/**/ /* * end hack using dummy attribute selector * for IE5 mac */ .dummyend[id]{clear: both;} Any assistance is of course greatly appreciated. Thanks! Ive seen a few of those transparent popups that appear on certain websites...but they don't envoke popup blockers so, I'm assuming they are some manipulation of CSS? When they popup, it appears that the rest of the screen grays down a bit until you take action on the popup. Any ideas? Thanks all! Hi I have the following div code for a linked-image <div id="banner"> <a href="/"><img src="/images/header1.jpg"></a> </div> the css for banner is as follow #banner {width : 960px; height : 100px; left : 0; top : 0; position:absolute} but this image is not clickable. I checked the source code for this page and it does show the linked image but the image is not clickable. can anybody shed some light on this? I have coded an image to be clickable, but its not clickable. Code: <div class="quicknav"> <div class="wrapper"> <div class="livesupport"> <a href="http://google.com"><img src="images/phone.png"></a> </div></div></div> CSS code Code: .livesupport { position: absolute; top:15px; right:-5px; padding:1px 0 0 0;} .quicknav { width: 100%; height: 0px; background: #fff; border-bottom: 1px solid #c8c8c8; } .quicknav a { color:#9a9a9a; } .quicknav a:hover { color:#343434; } .wrapper { position: relative; width:977px; margin: 0 auto; } Thanks in advance!! So I have a picture gallery/menu thing and I'm TRYING to make the list item actually clickable but I don't know how. It's probably easier to show you so on this page, I want the graphic that says 'click me!' to actually be a working link like you would expect from a menu item. http://www.thespinzone.com/temp/devcss.php Of course you can view the source to see the code but... The relevant css is: Code: #container {position:relative; width:204px; height:530px; margin:0px auto 0 auto; border:0px solid #aaa; background-image:url(portmenubg1.jpg) left no-repeat;} #container ul {width:204px; height:530px; padding:0; margin:0px; list-style-type:none; float:right;} #container li {float:left;} #container a.gallery span {position:absolute; width:1px; height:1px; top:1px; left:5px; overflow:hidden; background:#4C697B;} container a.slideb, #container a.slideb:visited {background:url(pb.jpg); display:block; color:#000; text-decoration:none; border:0px solid #000; margin:34px 0px 24px 42px; text-align:left; cursor:default;} #container a.slidec, #container a.slidec:visited {background:url(pc.jpg); display:block; color:#000; text-decoration:none; border:0px solid #000; margin:20px 2px 22px 4px; text-align:left; cursor:default;} #container a.slided, #container a.slided:visited {background:url(pd.jpg); display:block; color:#000; text-decoration:none; border:0px solid #000; margin:22px 0px 22px 80px; text-align:left; cursor:default;} #container a.slidee, #container a.slidee:visited {background:url(pe.jpg); display:block; color:#000; text-decoration:none; border:0px solid #000; margin:22px 0px 22px 8px; text-align:left; cursor:default;} #container a.slidef, #container a.slidef:visited {background:url(pf.jpg); display:block; color:#000; text-decoration:none; border:0px solid #000; margin:22px 0px 22px 46px; text-align:left; cursor:default;} #container a.gallery,slideb:hover {height:54px; width:120px;} #container a.slideb:hover {background:url(pclickme.jpg); border:0px solid #fff;} #container a.slidec:hover {background:url(pclickme.jpg); border:0px solid #fff;} #container a.slided:hover {background:url(pclickme.jpg); border:0px solid #fff;} #container a.slidee:hover {background:url(pclickme.jpg); border:0px solid #fff;} #container a.slidef:hover {background:url(pclickme.jpg); border:0px solid #fff;} #container a.gallery:hover span {position:absolute; width:300px; height:200px; top:10px; left:204px; color:#000; background:#fff;} #container a.gallery:hover img {border:1px solid #000; float:left; margin-right:5px;} #container a.slideb:hover img, #container a.slidei:hover img {float:right;} and the html is: Code: <div id="container"> <ul> <li><a class="gallery slideb" href="#nogo"><span><img src="pb1.jpg" alt="clickme" title="B" /></span></a></li> <li><a class="gallery slidec" href="#nogo"><span><img src="pc2.jpg" alt="clickme" title="C" /></span></a></li> <li><a class="gallery slided" href="#nogo"><span><img src="pd1.jpg" alt="clickme" title="D" /></span></a></li> <li><a class="gallery slidee" href="#nogo"><span><img src="pe1.jpg" alt="clickme" title="E" /></span></a></li> <li><a class="gallery slidef" href="#nogo"><span><img src="pf1.jpg" alt="clickme" title="F" /></span></a></li> </ul> </div> This seems so simple, yet my hour of searching has yeilded nothing!! I simply want to make the numbers that appear for each <li> to be clickable. I tried moving the ,a> tags outside the <li>, but that doesn't work. I tried (to no avail) in CSS: li a {list-style-position:inside; } ans: ol li a {list-style-position:inside; } also i added a property that enabled me to click anwhere to the right of the number across the whole page, but I forgot now what that was. In the simplest illustration, I would like to be able to click on the no. 1 from the HTML code below. <ol> <li><a href="#a1" /></li> </ol> Is there a common cause of non-clickable text? I mean that on the suckerfish style menus I can't click on text in the link items. I thought it was a z-indexing issue but apparently not. I have encountered this problem many times now and am not sure how to fix it. |