- This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
Viewing 11 posts - 1 through 11 (of 11 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am wondering if it is possible to do
display: none;
on the name HTML tag?
And if so how? Google is not being helpful for once.
What? What name tag?
Ok so I have this in the page:

Is there any way with CSS to hide the image, and only this one specific image. I can’t assign a custom class btw.
You could do this:
img[src="images/nav_help.gif"] { display: none; }
/* or */
img[alt="help"] { display: none; }
/* or */
img[name="help"] { display: none; }
Whichever you feel is best.
Note: I’m not sure if IE8 will be able to handle @cnwtx ‘s example.
That worked thanks. Had no idea you could actually reference the HTML like that.
jamy_za, I just tested it works in IE7 and IE8.
That even works in IE7?
Fancy
Sure does: http://caniuse.com/#search=selectors
Weird, I’m very sure I’ve had IE7 problems when using this input[type=”text”] – IE7 must have some kind of buggy implementation.
@joshuanhibbert small note, but caniuse says:
“Allows more accurate element selecting, using >, +, [attr], :first-child, etc.”
and lists IE7 as supported, however IE7 has buggy :first-child support ( which I feel should be mentioned with a yellow block or something )
Edit: I see there is a partially supported colour, but they don’t use that for IE7
@jamy_za I wish they were more specific, I was only meaning to show the attribute selector. And there are newer attribute selectors that won’t work in IE7 too.