Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,046 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,530 people online right now. Registration is fast and FREE... Join Now!




a[name] not wroking in IE?

 
Closed TopicStart new topic

a[name] not wroking in IE?

edu2004eu
30 Jul, 2008 - 01:57 AM
Post #1

New D.I.C Head
Group Icon

Joined: 26 Aug, 2007
Posts: 41


Dream Kudos: 25
My Contributions
I have this code:
CODE
ul#navlistx li a[name]
{
border-color: #ff9000;
color: #000;
background: #FFF;
border-left-color:#003366;
}


Thing is, this has like no effect in IE. (Firefox interprets it perfect; and it's valid CSS 2.1) I added *html at the beginning of the row, but it didn't solve anything... Is there a solution to this?
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 01:59 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,435



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Can you show how you are referencing this css in your html?

Or provide a URL.
User is offlineProfile CardPM
+Quote Post

edu2004eu
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 02:15 AM
Post #3

New D.I.C Head
Group Icon

Joined: 26 Aug, 2007
Posts: 41


Dream Kudos: 25
My Contributions
Can't give an URL cause the working dir is password protected. I am referring it though the <link href="style.css" rel="stylesheet" type="text/css" /> thing... does that matter? I've seen that there is also the @import method or something like that, but does it make a difference?

EDIT: oh and another thing: could you please tell me how to make IE exceptions not using the *html thing? Cause that makes the style.css not CSS 2.1 anymore...

This post has been edited by edu2004eu: 30 Jul, 2008 - 02:41 AM
User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 05:28 AM
Post #4

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 950



Thanked: 2 times
Dream Kudos: 150
My Contributions
QUOTE(edu2004eu @ 30 Jul, 2008 - 06:15 AM) *

EDIT: oh and another thing: could you please tell me how to make IE exceptions not using the *html thing? Cause that makes the style.css not CSS 2.1 anymore...


2 stylesheets:

CODE


<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" href="style_ie.css" type="text/css" />
<![endif]-->
</head>



This post has been edited by BenignDesign: 30 Jul, 2008 - 05:29 AM
User is offlineProfile CardPM
+Quote Post

girasquid
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 06:31 AM
Post #5

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,266



Thanked: 14 times
Dream Kudos: 650
My Contributions
If I recall correctly, IE6 doesn't play nicely with using [] inside your CSS - although I believe IE7 does(a quick test shows that it works with an href test like a [href='foo']. Which version of IE are you trying to get this to work in?
User is offlineProfile CardPM
+Quote Post

edu2004eu
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 02:39 PM
Post #6

New D.I.C Head
Group Icon

Joined: 26 Aug, 2007
Posts: 41


Dream Kudos: 25
My Contributions
Yeah, it is IE 6 and prior versions... (but main interest is 6 cause the majority uses it)

Oh, and thanks to BenignDesign smile.gif helped me a lot biggrin.gif that was the answer i was looking for

So if IE 6 doesn't know [], then is there a method so that i can have <a href> and <a name> as 2 different styles?

This post has been edited by edu2004eu: 30 Jul, 2008 - 02:42 PM
User is offlineProfile CardPM
+Quote Post

girasquid
RE: A[name] Not Wroking In IE?
30 Jul, 2008 - 03:59 PM
Post #7

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,266



Thanked: 14 times
Dream Kudos: 650
My Contributions
Aside from the not-as-sexy-but-just-as-functional method:
CODE

a.named {}
a.hrefed {}


..None that I'm aware of.
User is offlineProfile CardPM
+Quote Post

edu2004eu
RE: A[name] Not Wroking In IE?
31 Jul, 2008 - 03:52 AM
Post #8

New D.I.C Head
Group Icon

Joined: 26 Aug, 2007
Posts: 41


Dream Kudos: 25
My Contributions
I am avoiding using classes, cause I have to modify all links, but I will make a different styles for IE. Thanks everybody. If nobody has to add anything, I will close this in 1 day smile.gif
User is offlineProfile CardPM
+Quote Post

Closed TopicStart new topic
Time is now: 12/1/08 05:10PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month