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
  • #42057

    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]( “”)

    Hope this makes sense, thanks!


    Pointer-events will probably do it:


    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.