skip to Main Content

I have the following code:

  Where ever you go <br/> i am there.

On mobile screens I dont want the <br/> to enforce line break. Any idea how to achieve this using Tailwind CSS?

I tried using multiple code blocks but that feels like repetitive code and hurts SEO.



  1. You can add class to <br> tag.

    In tailwind, <br class="hidden sm:inline" />

    Login or Signup to reply.
  2. Its better solution to fixed your issue :

    <h2 className="sm:whitespace-nowrap">
      Where ever you go <br className="sm:hidden" /> I am there.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top