Forums

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

Home Forums CSS Clickable / Un-clickable phone numbers with media queries

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42057
    Anonymous
    Inactive

    In the following example, I want the phone number to be “clickable” on small screens, but be regular “un-clickable” text on larger screens. I know I can add classes and duplicate the phone number to hide/show with the media query, but was wondering if there’s a way to “strip” the anchor tag off of the text, so I don’t have to duplicate the text?

    [CodePen Example](http://codepen.io/msguerra74/pen/ksBuK “”)

    Hope this makes sense, thanks!

    #121276
    Paulie_D
    Member

    Pointer-events will probably do it: http://codepen.io/Paulie-D/pen/nrjfb

    #121278
    Anonymous
    Inactive

    Thanks! I think that will work perfectly for what I need. You’ve always been such a great help to me and others around here @Paulie_D, so thanks for that as well!

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