Search
 
SCRIPT & CODE EXAMPLE
 

HTML

alert tailwind css

<div class="relative py-3 pl-4 pr-10 leading-normal text-red-700 bg-red-100 rounded-lg" role="alert">
  <p>A simple alert with text and a right icon</p>
  <span class="absolute inset-y-0 right-0 flex items-center mr-4">
    <svg class="w-4 h-4 fill-current" role="button" viewBox="0 0 20 20"><path d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" fill-rule="evenodd"></path></svg>
  </span>
</div>
Comment

tailwind alert

<div class="flex items-center bg-blue-500 text-white text-sm font-bold px-4 py-3" role="alert">
  <svg class="fill-current w-4 h-4 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.432 0c1.34 0 2.01.912 2.01 1.957 0 1.305-1.164 2.512-2.679 2.512-1.269 0-2.009-.75-1.974-1.99C9.789 1.436 10.67 0 12.432 0zM8.309 20c-1.058 0-1.833-.652-1.093-3.524l1.214-5.092c.211-.814.246-1.141 0-1.141-.317 0-1.689.562-2.502 1.117l-.528-.88c2.572-2.186 5.531-3.467 6.801-3.467 1.057 0 1.233 1.273.705 3.23l-1.391 5.352c-.246.945-.141 1.271.106 1.271.317 0 1.357-.392 2.379-1.207l.6.814C12.098 19.02 9.365 20 8.309 20z"/></svg>
  <p>Something happened that you should know about.</p>
</div>
Comment

PREVIOUS NEXT
Code Example
Html :: html input box integer only 
Html :: how to use the label tag in html 
Html :: clear form value after submit 
Html :: CKEditor in vanilla javascript 
Html :: h4 in html 
Html :: css loading spinner img 
Html :: html italic text 
Html :: html scrollable table vertical 
Html :: embedded youtube 
Html :: css svg width font size 
Html :: how to add underline in markdown 
Html :: bootstrap error message 
Html :: html lazy load images 
Html :: html if screen is smaller thatn 
Html :: select required 
Html :: html basic template 
Html :: How to align input line in html forms 
Html :: when does useeffect return run 
Html :: html accordion generator 
Html :: bootstrap grid 2 rows 
Html :: html download file from directory 
Html :: insertar playlist youtube html5 
Html :: meta name and content 
Html :: view html file linux terminal 
Html :: shopify custom html image tag src attribute 
Html :: laravel apache config 
Html :: how to add number input field with default value 
Html :: html comments 
Html :: how to connect a javascript file to html 
Html :: react button style 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =