CSS - Links Not Working In Mac
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 Similar TutorialsI 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> 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! 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... 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 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 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; } Simple question, but i'm trying to create a decent sized space in between my links, and make them white. I can make my links white, but can't seem to change the space inbetween them. HTML Code: div id="bar-links"> <center> <div class="content box1"> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="4"><img src="images/barlist_01.gif" width="500" height="23" alt=""></td> </tr> <tr> <td background="images/barlist_02.gif" width="20"></td> <td background="images/barlist_03.gif" width="456"> </p> <div id="bar-links"> <h4><a href="#" title="Riley's Pub">Riley's Pub</a> <a href="#" title="Ho Down Bar"style="color: #fff">Ho Down Bar</a> <a href="#" title="Depot Square"style="color: #fff">Depot Square Bar</a> <a href="#" title="Egans Pub"style="color: #fff">Egans Pub</a> </h4> </div> </td> <td background="images/barlist_04.gif" width="24"></td> </tr> <tr> <td colspan="4"><img src="images/barlist_05.gif" width="500" height="27" alt=""></td> </tr> </table> </div> CSS Code: #bar-links { text-indent:inherit; text-align:left; } I was messing around with <ul><li> type nav links, and had some issues with the bullet images I made were too large, so I made it as a background image for the <li> but <li> backgrounds didn't seem to work so well on IE. My question is this, why does everyone use <ul><li> to make their nav links when you can use less code just using <a>'s within a <div>? Here's my code example (bullet.jpg not included, it's just a 30px square I made in photoshop) Code: <html> <head> <style type="text/css"> #links li { text-indent:40px; list-style-type:none; } #links a { display:block; line-height:30px; height:30px; width:150px; background:#EEE url('bullet.jpg') no-repeat; } #links a:hover { background:#FFF url('bullet.jpg') no-repeat; } #links2 a { text-indent:40px; display:block; line-height:30px; height:30px; width:150px; background:#EEE url('bullet.jpg') no-repeat; } #links2 a:hover { background:#FFF url('bullet.jpg') no-repeat; } </style> </head> <body> <div id="links"> <ul> <li><a href="#">links</a></li> <li><a href="#">link 2</a></li> <li><a href="#">three</a></li> </ul> </div> <div id="links2"> <a href="#">links</a> <a href="#">link 2</a> <a href="#">three</a> </div> </div> </body> </html> I am not sure if these links count as navigation or not, so not sure if I should be using the UL element for semantic correctness? <div id="footer_bottom" class="bold"> <a href="sitemap.php" title="Sitemap">Sitemap</a> | <a href="accessibility.php" title="Accessibility Options">Accessibility Options</a> | <a href="http://validator.w3.org/check?uri=referer;verbose=1" rel="external" title="Validate XHTML">XHTML Valid</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" rel="external" title="Validate CSS formatting">CSS Valid</a> </div> Hi, If I have the following CSS: body { margin: 0px; padding: 0px; } a:link, a:visited { color: #F36706; text-decoration: none; } a:hover, a:active { color: #F36706; text-decoration: underline overline; } #siteDimention { width: 758px; margin-left: auto; margin-right: auto; padding: 0px; } How come the links in my page aren't changing from the normal blue/purple ones? I'm currently working on a website for college, but I've run into an issue I can't work out. I can't seem to get rid of the default purple box that appears around my links. The HTML: Code: <div id="homelink"><a href="index.html"></a></div> The CSS: Code: #homelink{ position:absolute; width:53px; height:17px; margin-top:25px; margin-left:70px; z-index:10; } #homelink a{ display:block; background-image:url(images/links/home.png); background-repeat:no-repeat; width:53px; height:17px; } #homelink a:hover{ display:block; background-image:url(images/links/homehover.png); width:53px; height:17px; } As you can see, I use a background image for the div and no text for the link. Clicking the background image works fine and takes me to the homepage, however I get the default visited and active link border around it. Is there any way to solve this so that no border appears? I want to have a hover effect on the links of my page. I'm using an attached stylesheet to define it. Here is the section defining the links: Code: a:link { color: red; text-decoration: none; } a:hover { color: blue; text-decoration: underline; } a:visited { color: red; text-decoration: none; } a:active { color: red; text-decoration: underline; } Normal links appear red and is not underlined. When the cursor hovers over a normal link, it appears blue and is underlined. However, visited links do not 'behave' as normal links. They appear red and are not underlined. When hovered over, they do not change color or get underlined. I want visited links to act the same. They only way I could get them to act the same was to do the following: Code: a.general:link { color: red; text-decoration: none; } a.general:visited { color: red; } a.general:hover { color: blue; text-decoration: underline; } a.general:active { color: red; text-decoration: underline; } This is the only rules IE will obey. But every link need to be defined as instances of class "general". Is there a better way of handling this? Hi, I have CSS document like so: Code: div.menu A:link { definitions } div.menu A:visited { definitions } div.menu A:active { definitions } div.menu A:hover { definitions } And in my HTML document Code: <div class="menu"> Links are then put in here </div> But only the first Link effect works, how come? I tried Google, got few results I were looking for, I know that the Link effects has to be in certain order, and in these websites I found they were in different order tried both but no luck Thanks alot! My first post Website:www.freewebs.com/weareamazing I can't figure out how to move the links that are at the top of my page (Home, Graphics, Icons, Linking Back, Credits) to the side of my table. I also want to get rid of that line that is under the links. Thank you for your help! question is about CSS and links. I can get underline effect, background change, etc by using .a but i need to have more than one sort of link in my page, e.g. menu links cannot have the same effect as links in the main text. How do i set up more than two link effects? I have set up a CSS file for a website I am building, however, when I click on the links which work correctly (at first) it goes to the desired place, if I go "back" the link turns to a larger italic font. Look here for example. http://www.burrellprolabs.com/newsite.htm if you click on one of the body copy links under "latestNEWS" then go back you will see what I mean. here is my css style for that particular part: .bodycopy { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #575757; text-decoration: none; line-height: 13px; } .bodycopy a:link { color: #BF0000; text-decoration: none; } .bodycopy a:active { color: #BF0000; text-decoration: none; } .bodycopy a:visited { color: #BF0000; text-decoration: none; } .bodycopy a:hover { color: #969696; text-decoration: underline; I have what seemed to be a simple idea but is turning out to bother me. In my style sheet i want to put a base url followed by a user id Link looks like this Code: http://mywebsite.com/this_folder/remote/html_server.php?xw_controller=hitlist&xw_action=set&target_id= Now in my html i have this Code: <table><tr><td >My name<td >Job position<td >606959150</tr> The last td that has the number in it i want to add to the end of the url posted above i cannot figure our what to put in the css to use as the main link and i want to add another td behind the last one with the number in it with the entirelink which should look like this Code: <a target="_blank" href="http://mywebsite.com/this_folder/remote/html_server.php?xw_controller=hitlist&xw_action=set&target_id=606959150">Link</a> I have to use this for multiple people each one using a unique ID# is there a simple way to do this, the reasoning behind this is that the main link changes once every few months, instead of changing all links i would like to be able to just change the one in the css file and be done with it. i hope i am explaining it correctly. Thanks ahead of time for any help u can provide |