Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Call name tag in CSS

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #35545
    zemaker
    Participant

    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.

    #92253
    TheDoc
    Member

    What? What name tag?

    #92254
    zemaker
    Participant

    Ok so I have this in the page:

    Help

    Is there any way with CSS to hide the image, and only this one specific image. I can’t assign a custom class btw.

    #92255
    jamygolden
    Member

    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.

    #92259
    jamygolden
    Member

    Note: I’m not sure if IE8 will be able to handle @cnwtx ‘s example.

    #92270
    zemaker
    Participant

    That worked thanks. Had no idea you could actually reference the HTML like that.

    #92266
    zemaker
    Participant

    jamy_za, I just tested it works in IE7 and IE8.

    #92279
    noahgelman
    Participant

    That even works in IE7?

    Fancy

    #92289
    #92308
    jamygolden
    Member

    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

    #92310

    @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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.