CSS - Footer Links Not Active Or Hovering
Similar TutorialsI have a problem with a site, first mistake i made was i built it to firefox, without testing along the way (please dont hurt me im new to web design) so i found a lot of problems in ie. So i fixed for ie7,8,9 but in 6 i get some two divs from the content area stacked one on the other at the top of the screen but when a link inside the problem div(s) is hovered they go to where they should be. any ideas about that? Hi Im new to css I will be probably be asking all sorts of questions. thanks peter In my footer I'm having a problem with my links aligning left. I'm not sure how I would go about coding it so that Promotional Kit aligns left underneath Headshot v2. I tried text-align: left in ul, li, and in the footer link section but nothing. I may need to change the layout all together which is fine, but I could use your help. Thanks in advance http://www.lonniebruhn.com/sitelab/ and here is the css code: Code: body, html { font-size: 100%; margin: 0; padding: 0; text-align: center; line-height: 100%; background-color: #000;} #container { margin: 0px auto 90px auto; width: 940px; text-align: left; background-image: url(images/container-bg.jpg); background-repeat: no-repeat; background-color: #1d1d1d;; overflow: hidden} object { display:block; z-index:1} #header { width: 920px; position: relative; top: 5px; margin: 0 auto; background-color: #333; border: 2px #000 solid;} #header h1 {color: #ffffff; font-size: 2em; font-family: Impact, "Arial Black", Trebuchet, sans-serif, "Times New Roman"; line-height: 90%; text-align: center; margin: 0; padding: 10px;} .quote { position: relative; text-align: right; Left:10px; font-family: "Arial Black", Verdana, Helvetica, Arial, sans-serif; color: #ffcc33; font-size: .5em; font-style: italic; } #logo { position: relative; margin:0 auto; background-image: url(images/header-logo.jpg); background-repeat: no-repeat; width:920px; height:120px; border: 2px #000 solid; } #left { margin: 15px 10px 0px 10px; width:180px; position: relative; width: 180px; float: left; border: 2px #000 solid; background-color: #333;} #left h1{ height:20px; margin: 10px auto; color: #ffcc33; font-family: Impact, "Arial Black", Verdana, Helvetica, Arial, sans-serif; font-size: 1.50em; text-align: center; text-decoration: underline; } #dates { position: relative; margin: 0 auto; text-align: left; } #dates ul { margin:0; color: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: .625em; font-weight: bold; position: inherit;} #dates li { padding: 10px 0 5px 5px; list-style-image: url(images/1.gif); display: list-item; margin: 0px 18px 15px -15px; list-style-type: none; text-align:left; border-bottom: 2px #ffcc33 dashed;} #mainbody { position: relative; background-color:#333; width: 480px; min-height:320px; margin: 15px auto; right: 20px; border: 2px #000 solid; } #right { position: relative; width: 220px; background-color: #333; min-height: 320px; float: right; border: 2px #000 solid; margin-top: 15px; margin-right: 10px;} #right h1 { text-align: center; color: #ffcc33; font-family: Verdana, Arial, sans-serif; font-size: 1.25em; margin: 0 auto; padding-top: 10px; padding-bottom: 10px;} #footer-wrap { background-image: url(images/footer-bg.gif); width: 100%; height: 78px; z-index: 2; left: 0; bottom: 0; position: fixed; text-align:left} #footer-left { position:fixed; width: 244px; min-height:68px; margin-top: 5px; border-right: 2px #000 solid; left:-25px; padding-right: 25px; float:left;} #footer-left ul{ display: block; margin:0; width:244px; list-style-type: none; } #footer-left li { display: inline; margin-right:10px; } #footer-wrap a:link, #footer-wrap a:visited, #footer-wrap a:active { color: #000; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: .75em; text-decoration: none; } #footer-wrap a:hover { text-decoration: underline;} #footer-center { position: fixed; } #footer-right { position: fixed; } p { margin:0 25px 25px 25px; font-size: .875em; font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman"; color: #fff; text-align: justify;} #links{ text-align: right; padding: 2px; } #links a:link, #links a:visited, #links a:active { right:8px; font-weight: bold; font-size: 0.625em; font-family: Verdana, Arial, sans-serif; color: #cccccc; font-family: Verdana, Arial, sans-serif; text-decoration: none; position: relative;} #links a:hover { text-decoration: underline;} #links ul {margin: 0; list-style-type:none} #links li { display: inline; } #menu { height: 15px; width: 920px; height:22px; position: relative; margin: 0 auto; background-color: #333; border-left: 2px #000 solid; border-bottom: 2px #000 solid; border-right: 2px #000 solid;} #menu ul{margin: 0 auto;} #menu li { float: left; margin: 0; padding: 0; list-style: none; } #menu li a { display: block; height: 20px; text-decoration: none; padding: 0 19px 0 19px; border: 2px #000000 solid; text-transform: uppercase; font-size: 0.75em; font-family: Verdana, Helvetica, Arial,sans-serif; color: #ccc; background-color: #666;} #menu li a:hover, #menu li a#selected, #menu li a#selected:hover { border: 2px #000000 solid; background-color: #3f3f3f; } .postdate { display:block; margin: 10px 20px 20px 20px; padding-left: 10px; color: #ffcc33; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 0.75em; background-color: #000;} .post p { margin: 0px 5px 0px 5px; font-size: .75em; font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman"; padding: 10px; padding-top: 20px; line-height: 120%; } .post h1 { margin: 0px 5px 0 5px; color: #ffcc33; font-size: 1.2em; font-family: Verdana, Georgia, sans-serif, "Times New Roman"; padding: 10px; text-decoration: underline;} .post h2 { margin: 0px 20px 0 20px; color: #ffcc33; font-size: .6em; font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman"; padding: 15px 10px 5px 10px; text-transform: uppercase; border-bottom: 8px #666 double;} .blue { color: #3399ff;; margin: 5px 0 10px 0; display: block;} .video { width: 190px; margin: 10px auto 0px auto; z-index: 1} I use this css: #clearfooter { /* VERTICALLY ALIGN THE FOOTER TO BOTTOM WHERE REQUIRED */ clear: both; height: 170px; overflow: hidden; } #footerbox { /* BOX FOR THE FOOTER */ height: 170px; width: 759px; margin:0 auto; padding:0; margin-top :-170px; text-align: center; } It puts the footer at the bottom of the page. In IE I can click on the links in that part of the page. In FF I cannot. If I remove the "clearfooter" id then it works in FF although obviously it knackers the page layout...any solution available? Whats' wrong with this? a:active doesn't seem to work at all: Code: <style type="text/css"> #navcontainer { margin: 5px 0 0 5px; padding: 0; height: 20px; } #navcontainer ul { border: 0; margin: 0; padding: 0; list-style-type: none; text-align: center; } #navcontainer ul li { display: block; float: left; text-align: center; padding: 0; margin: 0; } #navcontainer ul li a { background: #000000; width: 80px; height: 18px; border-top: none; border-left: 1px solid #9B9B9B; border-bottom: none; border-right: none; padding: 0; margin: 0 0 5px 0; font-family:Arial, Helvetica, sans-serif; color: #26DC18; font-weight:bold; text-decoration: none; display: block; text-align: center; } #navcontainer ul li a:hover { color: #930; background: #f5d7b4; } #navcontainer ul li a:active { background: #000000; color: #fff0000; } </style> HTML [CODE<div id="navcontainer"> <ul id="navlist"> <li><a href="index.php">Home</a></li> <li><a href="inventory.php">Item two</a></li> <li><a href="#">Item three</a></li> <li><a href="#">Item four</a></li> <li><a href="#">Item five</a></li> </ul> </div> [/CODE] P.S. I just include this menu in a PHP page. We'll that will work iff you put # on the target page but that must not be. Thanks! I have the navigation set so that the background turns green on the current page. When you hover over the other links they turn green. However, I do not want the active link to change colors when it is hovered over. How do I stop this from happening? http://brittanyrubinstein . com/fulcrum/index.html We recently decided to alphabetize the Specialties on our web pages (using the .php files from the Includes folder). I have re-alphabetized them in both the .php file as well as the default.css file including making the first image coincide with the alphabetized list. However, when I do, the original image (for Hospitality) remains as the default image and only changes when you finally hover over Hospitality or anything below it. Here's the way part of the original file is set up: /* Images */ div#specialties ul li a.hospitality span.img { position: absolute; top: 0; right: 0; width: 222px; height: 190px; background-image: url(../images/hospitality.jpg); background-repeat: no-repeat; z-index: 0; } div#specialties ul li a.hospitality:hover span.img { position: absolute; top: 0; right: 0; width: 222px; height: 190px; background-image: url(../images/hospitality.jpg); background-repeat: no-repeat; z-index: 0; } And here's what I changed it to: /* Images */ div#specialties ul li a.apartments span.img { position: absolute; top: 0; right: 0; width: 222px; height: 190px; background-image: url(../images/apartments.jpg); background-repeat: no-repeat; z-index: 0; } div#specialties ul li a.apts:hover span.img { position: absolute; top: 0; right: 0; width: 222px; height: 190px; background-image: url(../images/apartments.jpg); background-repeat: no-repeat; z-index: 0; } Help! You can check out the current look at Connell Insurance dot com. . A thousand apologies -- this is a very poorly worded and general question, because I've learned through scavenging and don't know the jargon, and the answer might not even lie in CSS... but the problem is really driving me to distraction. Is it possible in CSS to define a hover effect such that upon hovering over one element, a different element is affected? For example, I know you can add something like this: #example a:hover{ color: #000000; } in order to change the color of any links in the example div upon hovering. But can you change properties of links in any other divs? If so, then how? And if not, then is there a different language which can effect this change? Again, a thousand apologies for the amateurishness and outsider-wording of this question. I will be happy to clarify on request to the extent of my ability. When hovering over a link, how can I make the underline thicker? Check out this site. link I was asked by one of my friends if this was possible, and I didn't think it was but figured I'd ask here just in case... With image maps, you can have parts of an image link to different pages based on coordinates.... I wanted to know if there was a way to link to different pages based on colors on an image. Doesn't necessarily have to be done in CSS... just looking in general as to if this is possible, and what would be the best approach. Thanks. I'm not sure if this is an HTML problem or a CSS problem, but since it seems to be a display issue, I'll start here. I have an annoying minor display issue on my site , the solution to which has alluded me for some time. The pop up menues are created using CSS specificity but I'm thinking that has no bearing on the issue because the menues aren't the only place the problem occurs. In a number of places, I have implemented mouseover effects using the :hover pseudo-(class/element). In instances where the hovered content requires more screen space (to add a border or text decoration, etc) the whole page gets shifted a pixel or two (however much it takes to add the effect). I've tried adding transparent borders around the static images and increasing line height around text, but to no avail. Any suggestions? I am trying to create something similar to tooltips and having a problem. I know that the browsers support tooltips with the title attribute but I'm looking to do something different. Also, I know that IE has bugs with hovering on non-anchor tags but I'm trying to make this work in a standards-compliant browser (I'm not using IE). I've tried the code given by SantaKlauss and it worked fine. But why doesn't this work (a simple example to illustrate the problem)? Code: <style type="text/css"> .test:hover + div { background-color: red; } </style> <img class='test' src='test.gif' /> <div>here is some text</div> If I remove the :hover pseudo-class declaration like this: Code: .test + div { background-color: red; } It correctly sets the background color on the div following the image. So why doesn't the first example work with the hover pseudo-class?? Thanks in advance, Jeremiah I just changed my website layout from just tables to CSS but theres a few problems, nested tables dont stop at the border of the containing table they hover over them, and one of the tables that was meant to be another column moved out of the table altogether heres the site before and after i edited it: Before After I was told to divide it up like this Code: <body> <div id="wrapper"> <div id="header">Header</div> <div id="body"> <div id="nav">Nav</div> <div id="content">Content</div> </div> <div id="footer">Footer</div> </div> </body> Can anyone see what the problem is? If anyone can help me with this, I will owe my life, because I'm in over my head with a project for my electronic media class and I'm not good enough with CSS. I need to make divs appear when I hover over images. The images aren't links, just anchors. I have a long page with a ton of images, and I need divs (with tables inside) to appear when I hover over those images. Also, if possible.. I'd like the appearing divs to move relative to the browser, but if not, I'll settle for absolute. It must be so simple, but I'm waaay too stressed to get this to work. :[ Hi all, I am having an issue with IE7. www[dot]novakwebsales[dot]com/help/index6.html When you hover over the top category tabs, it shifts the footer up. Then if you hover over the subcategory tabs on the left it drops down again??? It works fine in Firefox... Any ideas? Thanks in advance, Tbone Hi guys, Im really hoping I can get some help with this, its driving me nutty. I am trying to code a page that has small 80 by 80 pixel images and when you rollover them I'd like a larger version of the image to appear(say 150px by 150px). I am relatively new at CSS and have been learning by playing around with it myself. Anyways, i just cant seem to get it to work. I have found code to have the rollover image show up as a different image from the original but nothing to change the sizes. One of the other issues is that I cant seem to find a way to do it without the smaller image becoming a link. I cant use Java on the site im doing this on by the way. Ive been roaming the internet looking for a way to accomplish this but havent had any luck thus far. If anyone has any idea how to go about it, or knows of a site that would, please let me know. If you have a CSS menu that has drop down menu items and form elements near the top of the page, the menu disappears behind the form elements in IE 6. For an example of what I'm talking about, go he http://www.swingleandassociates.com/catalog/tindex.php?section=c.training.php Hover your mouse over CONDITIONS and you'll see that the menu disappears behind the drop down box. Does anyone know how to fix this? I tried messing with z-index but it didn't seem to work. I may not have done it right thought. Anyone got an answer for that problem? |