CSS - <!--[if Ie]> <link Rel= ??
Hi
I have this which IE needs to call "menu-ie.css" and all other browsers need to call the "menu.css". Code: <!--[if IE]> <LINK rel="stylesheet" href="inc/menu-ie.css" title="contemporary" type="text/css"> <![endif]--> <LINK rel="stylesheet" href="inc/menu.css" title="contemporary" type="text/css"> Just tested and it doesn't work... it only calls "menu.css" Tried it with "if IE7" and "if IE6" with no avail. -------------- IE Style: Code: #menu * {margin:0;} #leftcolumn {width:150px; float:left; font:9pt "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif;} .dropdown {display:block; position:relative} .dropdown dt {width:150px; border:2px solid #C7DDCE; padding:2px; font-weight:bold; cursor:pointer; background:url(images/header.gif)} .dropdown dt:hover{background:url(images/header_over.gif); color:#000; } .dropdown .upperdd {border-bottom:none} .dropdown dt.uppdtdd:hover {background:url(images/header_over.gif); color:#000;} .dropdown dd {position:absolute; top:0; overflow:hidden; width:207px; display:none; background:#fff; opacity:0} .dropdown ul {width:203px; border:2px solid #C7DDCE; list-style:none} .dropdown li {display:inline} #top a.loook, #top a.loook:active , #top a.loook:visited{display:inline;padding:2px; text-decoration:none; color:#000; background:none; width:180px} .dropdown a:hover {background:#E8E8E8; color:#000} .dropdown .underline {border-bottom:0px solid #C7DDCE} .dropdown a, .dropdown a:active {display:block; padding:2px; color:#333; text-decoration:none; background:#F7F7F7; width:199px} All Others Style: Code: #menu * {padding: 0;margin:0} #leftcolumn {float:left; width:150px; font:9pt "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif} .dropdown {display:block; position:relative} .dropdown dt {width:150px; border:2px solid #C7DDCE; padding:2px; font-weight:bold; cursor:pointer; background:url(images/header.gif)} .dropdown dt:hover{background:url(images/header_over.gif); color:#000; } .dropdown .upperdd {border-bottom:none} .dropdown dt.uppdtdd:hover {background:url(images/header_over.gif); color:#000;} .dropdown dd {position:absolute; top:0; overflow:hidden; width:184px; display:none; background:#fff; opacity:0} .dropdown ul {width:180px; border:2px solid #C7DDCE; list-style:none} .dropdown li {display:inline} #top a.loook, #top a.loook:active, #top a.loook:visited {display:inline;padding:2px; text-decoration:none; color:#000; background:none; width:180px} .dropdown a:hover {background:#E8E8E8; color:#000} .dropdown .underline {border-bottom:0px solid #C7DDCE} .dropdown a, .dropdown a:active {display:block; padding:2px; color:#333; text-decoration:none; background:#F7F7F7; width:180px} Anyone know how this is done? Similar TutorialsPROBLEM: I create a nice button using the sliding doors technique for rounded corners. But the button displays with 100% width unless I float it. My layout requires that the buttons be inline with the text, so floating won't work. Anyone know an alternative? I wouldn't mind floating but I want the button to show inline with the text. When I use float:left, it removes it from the inline flow. Basically, I want a very modular button that can be used in several different places on a page. In many cases, floating is fine because the mockup has it out of the inline text, but I want to use it there, too. Here's the HTML: <a class="button" href="#"><span>Update Profile</span></a> Here's the css: a.button:link, a.button:visited { background:url(button_right.gif) no-repeat right top; } a.button span:hover, a.button span:active { background:url(button_left_hover.gif) no-repeat right top; } a.button span { background:url(button_left.gif) no-repeat left top; color:#fff; cursorointer; display:block; height:20px; line-height:20px; margin:0 2px 0 0; padding:0 10px; position:relative; white-space:nowrap; } http://tinyurl.com/5llwfl I'm having some problems with this page in particular. Try clicking on one of the Left or Right white image arrows below the main picture. This only occurs in Firefox 2.x. Once you click the link, the content area below "Starting from $278.497" should shift roughly 5 pixels down. I thought it may be related to the dotted link outline that surrounds the image, but that was not the case. I applied styles to get rid of that and there was no changes. I also thought it may be related to a position:relative; bug which this site has been notorious for. I tried making certain divs in that area position:relative to no avail. So to test further I tried an overall #content *{position:relative;} fix which could not fix the position shift, either. I'm not sure what else it could be. And while I do have access to the build of this app, I have not been able to reproduce the issue by downloading all HTML, CSS, and image files locally. Hello Is there a way i can restore my <a href> link back to its original color, that is before the a:visited event, when I click on another link? PS. no Javascript code needed, is their an alternative in css? I have my links defined with a dashed border, but I don't want this on linked images and I'm trying to figure out if I can accomplish this with CSS only without additional markup in my HTML file. Here is a sample file: http://www. shawkey.com/test/imagebordertest.html Any suggestions on how I can get the dashed border to not appear below the image and only appear below the text with just CSS? Hello is there a way to make it so hyperlinks are not decorated as the default blue? I have the following css which I've attempted to make it so the text '.com' is always white, but it defaults to the standard link color. html: <td class="nodecoration"><a class="nodecoration" href="http://www.somesite.com">.com</a></td> css: Code: td.nodecoration { background-color: #003399; color: white; width: 120px; height: 30px; font-family: "Verdana", sans-serif; font-size: 25px; font-weight: bold; text-align:center; } A:link.nodecoration {text-decoration: none} A:visited.nodecoration{text-decoration:none} A:active.nodecoration{text-decoration:none} a:hover.nodecoration{text-decoration:underline} hi everyone, im wondering why my a:link etc is not working on the following page www.think2go.ch/index_template.htm, namely on the top menu where it says "seite drucken" "weiter empfehlen" "home" and "kontakt". it works fine with IE, but does not in other browsers. what its suppossed to look like is: a:link.2{ color: white; text-decoration: none; font-weight: bold; } a:visited.2{ color:white; text-decoration: none; font-weight: bold; } a:hover.2{ color: #85ADC0; text-decoration: none font-weight: bold; } a:active.2{ color:white; text-decoration: none; font-weight: bold; } sample code: <a class="2" onClick="window.print()" href="#">Seite drucken</a> any help is greatly appreciated! thanks... I want to change a link within a set of links. It is a vertical menu and it appears as a sub-category which i want it to look different. How do i reference the sublinks? I did this which has no effect. <a href='".$mypath."' id='catsub2'>"; //these settings override it still. #blanksideboxContent.sideBoxContent a{ color: #000000; font-size:1em; font-family:verdana; font-weight:bold; text-decoration: none; border:2px outset #000000; background-color:#5ec82a; width:125px; display :block; margin-left:2%; } #catsub2 a{ width:80px; } OK I am pretty new to CSS. I am working with my first CSS layout... I am trying to make some images on a page, links. However the problem I am running into is that the images are getting a link border around them, which I do not want. Is there any way to specify this not to happen for images? Any input is greatly appreciated! ~Una Hi all, Code: .box1 { position: absolute; top: 20px; left: 20px; width: 220px; height: 152px; background: transparent url(../images/box-1_im-back.gif) no-repeat; padding: 50px 54px 0px 25px; } I've got a div with position absolute on it, width, height, padding, etc. I've got an A tag inside it which I've also made position absolute, and expanded it to cover the whole div, so it acts as a button over the whole div and it works in everything BUT IE6 and as much as I'd like to forget about this browser, it's still quite common, so. Anyone know why this is happening or how I can fix it? Code: .box1 a { position: absolute; top: 0px; left: 0px; color: #0b54a9; font-weight: bold; padding: 126px 0px 0px 26px; width: 260px; height: 48px; } If I take the A tag out of the div and absolute position it over the div it works fine, the only trouble is I really need to keep the A tag inside the div. Hi to all How to show popup on hover the link through css like <a here="">Hover here</a> show a popup on left side of the link thanks in advance Hello, Why does some link moved when I hover over a link? 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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> body {font:normal 8pt Verdana, Arial, Helvetica, sans-serif} ul li {display: inline;margin:0 5pt} a {text-decoration:none;color:#333} a:hover {color:#000;font:bold 8pt Verdana, Arial, Helvetica, sans-serif} #content {margin:0 0 0 30pt;border:1px solid #333;width:550pt;height:350pt} p {padding:15pt 0 0 10pt;margin:0} </style> </head> <body> <div id="header"> <ul> <li><a href="default.asp">[Home]</a></li> <li><a href="about_me.asp">[About Me]</a></li> <li><a href="blog.asp">[Blog]</a></li> <li><a href="gallery.asp">[Gallery]</a></li> <li><a href="contact.asp">[Contact]</a></li> </ul> </div> <div id="content"> <p>Content</p> </div> </body> </html> Thanks for taking the time to read my question. I've almost got what I want. I would like my link, on hover, to "slide" to the right a bit and change background color. My problem is the flickering. I think it's because I'm using a class on the <li> and a class on the <a>, but I'm not sure how else to accomplish what I'm trying to do. I know it would be better if I didn't have a class on the <a>.... I think. Any ideas? Thanks, Brad HTML: 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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title></title> <link href="Nav.css" rel="stylesheet" type="text/css"/> </head> <body> <ul class="NavList"> <li class="NavListItem1"><a href="#" class="NavListItem">Home</a></li> <li class="NavListItem2"><a href="#" class="NavListItem">About</a></li> <li class="NavListItem3"><a href="#" class="NavListItem">Contact</a></li> </ul> </body> </html> CSS: Code: ul.NavList { List-style-type: none; border-left: solid 5px #3366CC; padding: 0px; margin: 0px; } .NavListItem { color: #000000; background-color: aqua; display: block; width: 60px; padding-left: 3px; } .NavListItem1 a:hover { width: 50px; display: block; margin-left: 5px; background-color: red; width: 60px; padding-left: 3px; } .NavListItem2 a:hover { width: 50px; display: block; margin-left: 5px; background-color: green; width: 60px; padding-left: 3px; } .NavListItem3 a:hover { width: 50px; display: block; margin-left: 5px; background-color: orange; width: 60px; padding-left: 3px; } Hi, Im having problems with a link. when I click on the link a grey dotted border appears around the element, and remains there until i click somewhere else on the page (the link is actually a JS onclick event) Any ideas? Xaphan edit: tried the :active and :focus pseudo-classes, but to no avail. Hello all I need help please :-) I have a website I am making that will have various boxes and each box has to have a different link color and hover over color. My issue is that teh css does not work in terms of making all the links display the correct color as outlined in the css file. here is my css file maybe someone can tell me what is wrong (I will comment in the file also whats not working Code: <style type="text/css"> body { background-image: url(./images/pgbg.gif); color: #000000; /*the below link attributes does not work */ visited: color:#000000; text-decoration: none; link: color:#000000; text-decoration: none; focus: color:#000000; text-decoration: none; active: color:#000000; text-decoration: none; hover: color: #CC0000; } .header{ background-image: url(./images/header.png); background-color:#E6E6E6; position:absolute; width: 900px; height: 100px; left: 50px; top: 5px; } .navbox1{ /*General Links Navbox*/ background-image: url(./images/navbg.png); position:absolute; background-color:#E6E6E6; width: 170px; left: 60px; top: 115px; padding-left: 5px; /*the below link attributes does not work */ visited: color:#E6E6E6; text-decoration: none; link: color:#E6E6E6; text-decoration: none; focus: color:#E6E6E6; text-decoration: none; active: color:#E6E6E6; text-decoration: none; hover: color: #CC0000; } .navbox2{ /*Users Links Navbox*/ background-image: url(./images/navbg.png); position:absolute; background-color:#E6E6E6; width: 170px; left: 60px; top: 310px; padding-left: 5px; /*the below link attributes does not work */ visited: color:#E6E6E6; text-decoration: none; link: color:#E6E6E6; text-decoration: none; focus: color:#E6E6E6; text-decoration: none; active: color:#E6E6E6; text-decoration: none; hover: color: #CC0000; } .loginbox{ /*Login Box*/ background-image: url(./images/navbg.png); position:absolute; background-color:#E6E6E6; width: 170px; left: 60px; top: 400px; padding-left: 5px; } .content{ background-color:#E6E6E6; position:absolute; width: 700px; height: 455px; left: 250px; top: 115px; padding-left: 10px } .footer{ position:absolute; width: 700px; left: 100px; top: 585px; color: #D6E7D3; } </style> Hi all, I'm using an open source template from oswd.org and I wanted to change the color of one of the links to make it stand out from the others. Here's the CSS code: Code: .nav3-grid {width:199px; border-bottom:solid 1px rgb(200,200,200);} .nav3-grid dt a, .nav3-grid dt a:visited {display:block; min-height:2.0em /*Non-IE6*/; height:auto !important; height:2.0em /*IE6*/; line-height:2.0em; padding:0px 10px 0px 20px; border-top: solid 1px rgb(200,200,200); text-decoration:none; color:rgb(70,122,167); font-weight:bold; font-size:120%;} .nav3-grid dd a, .nav3-grid dd a:visited {display:block; min-height:1.7em /*Non-IE6*/; height:auto !important; height:1.7em /*IE6*/; line-height:1.7em; padding:0px 10px 0px 40px; border:none; font-weight:normal; text-decoration:none; color:rgb(70,122,167); font-size:120%;} .nav3-grid dt a:hover, .nav3-grid dd a:hover {background-color:rgb(225,225,225); color:rgb(42,90,138); text-decoration:none;} .nav3-grid dt a.inquiry:hover, .nav3-grid dd a.inquiry:hover {color:rgb(90,90,90); text-decoration:none;} Note the a.inquiry:hover above - I added that entire line in hopes that would change the color. And here is the HTML in question: Code: <!-- Navigation Level 3 --> <div class="round-border-topright"></div> <h1 class="first">TurnkeySolutionsNow</h1> <!-- Navigation with grid style --> <dl class="nav3-grid"> <dt><a href="whyusetsn.html">Why Use TSN</a></dt> <dt><a href="productdevelopment.html">Product Development </a></dt> <dd><a href="productdevelopment-productdevelopment.html">Product Development </a></dd> <dd><a href="productdevelopment-engineering.html">Engineering</a></dd> <dd><a href="productdevelopment-productdesign.html">Product Design</a></dd> <dd><a href="productdevelopment-productprotection.html">Product Protection</a></dd> <dd><a href="productdevelopment-engineeringservices.html">Engineering Services</a></dd> <dd><a href="productdevelopment-industries.html">Industries</a></dd> <dd><a href="productdevelopment-inquiry-form.html" class="inquiry">Inquiry Form</a></dd> <dt><a href="contact.html">Contact Us</a></dt> </dl> <p> </p> </div> The link I want to change color is the Inquiry Form. I thought by adding class="inquiry" I could define the color, but I'm having issues. Any help is appreciated - thanks in advance! Patrick if you take a look at this site: www.plumstead-mosque.co.uk you will see that the link section (IE) if you hover over it the color doesnt fill the whole section wheras in FF it does.. i was wondering if you could tell me how to fix it? css: (relevant) Code: #menu a {display:block; border-bottom:solid black 1px; font-weight:bold; text-align:left; padding:0em; margin:0em;} #menu ul, #menu li{ margin:0em; padding:0em; } #menu {list-style-type:none; width:100%; float:left; padding:0em; margin:0em; margin-bottom:1.5em;border:1px solid black;} #menu ul {list-style-type:none;} #menu li { position:relative;} Hello I once had a vertical navigation menu that would do a tree drop down. I believe it was done in CSS. If this can be done can anyone direct me to some good links? need to look something link this: Toys |_girl |_Boy Beds thanks for the help. If this needs javascript just tell me so and I can do that as well. is there a way to style a <ul><li>nav link</li></ul> so that each item in the list has a dashed bottom border? from this: <ul> <li>nav item 1 link</li> <li>nav item 2 link</li> <li>nav item 3 link</li> </ul> to this: nav item 1 ---------- nav item 2 ---------- nav item 3 ---------- Can you use a stylesheet to effectively disable the link, so that you can't click on it; that it will appear simply as text? Thanks HI guys, I am working on This website . On the left hand navigation menu I would like anywhere in the li to be a link but at the moment only the text is a link. See below html/css Code: <div class="sideMenu"> <ul> <li><a href="index.html">Welcome</a></li> <li><a href="home page/about.html">About SEDDA</a></li> <li><a href="home page/location.html">Locations</a></li> <li><a href="home page/contact.html">Contact</a></li> </ul> </div> Code: .sideMenu ul { margin-left: 0px; margin-top: 4px; padding: 0px; margin-right: 0px; margin-bottom: 0px; } .sideMenu li { list-style-type: none; margin-top: 12px; margin-bottom: 12px; margin-left: 0px; font-size: 14px; font-weight: normal; margin-right: 0px; background-color: #004054; white-space: normal; padding-top: 6px; padding-bottom: 6px; padding-right: 0px; padding-left: 0px; } .sideMenu li:hover { background-color: #CCCCCC; } .sideMenu a { color: #FFFFFF; text-decoration: none; font-weight: bold; font-size: 10px; margin: 0px; padding: 0px; z-index: 10; white-space: normal; width: 100%; } .sideMenu a:hover { margin: 0px; padding: 0px; color: #FFFFFF; white-space: normal; } Unless I'm mistaken I 've used the same method successfully before without problem. Can anybody tell me what the problem is please. Thanks James |