By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

IE question

P: n/a
Hi

I am trying to work with user defined style sheets under IE 6 so that
a particular URL will be highlighted on any page I come across that
contains it.

I've loaded the custom style sheet into IE 6. However, I can't figure
out the syntax to make this work. Under Mozzilla somthing like this
works

a[href$="user.mefi/7106"] { color: pink !important; }

but it does not work under IE.

Is there somthing I am missing or is there another way to accomplish
this with IE?

Thanks for any thoughts or ideas.
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In article <99**************************@posting.google.com > in
comp.infosystems.www.authoring.stylesheets, Stephen Balbach
<st*****@balbach.net> wrote:
a[href$="user.mefi/7106"] { color: pink !important; }
but it does not work under IE.
Is there somthing I am missing


Yes. MSIE doesn't even support attribute selectors, let alone "ends-
with" attribute value selectors.

See
http://www.blooberry.com/indexdot/cs.../attribute.htm

I strongly recommend visiting Brian Wilson's site
<http://www.blooberry.com/indexdot/css/index.html> before writing a
style sheet that does anything beyond the basic. You'd be surprised
how little of CSS is supported by MSIE, even MSIE6.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2

P: n/a
st*****@balbach.net (Stephen Balbach) wrote:
I am trying to work with user defined style sheets under IE 6 so that
a particular URL will be highlighted on any page I come across that
contains it.

I've loaded the custom style sheet into IE 6. However, I can't figure
out the syntax to make this work. Under Mozzilla somthing like this
works

a[href$="user.mefi/7106"] { color: pink !important; }

but it does not work under IE.

Is there somthing I am missing or is there another way to accomplish
this with IE?


IE does not support attribute selectors. The above should work fine in
Mozilla (ad maybe Opera?).

There's no pure CSS way to what you want in IE. You could write a
JavaScript favelet that, when activated, highlighted said links on any
page. I think that's the closest you'll come for IE.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
Stephen Balbach wrote:
a[href$="user.mefi/7106"] { color: pink !important; }

but it does not work under IE.


Internet Explorer doesn't support attribute selectors.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.