Sign Up

Talk Programming , Career, Mental Health, Talk Personal Finance ❤️‍ Post a query and receive responses ✅

Have an account? Sign In


Have an account? Sign In Now

Sign In

Post a query and receive responses. Ask anything, Ask Mitra ❤️‍

Sign Up Here


Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.


Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Ask Mitra

Ask Mitra Logo Ask Mitra Logo

Ask Mitra Navigation

  • Home
  • About Us
  • Find Jobs
  • Blogs
    • Add New Blog !
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Ask a Question
  • Home
  • All Categories
  • Find Jobs
  • Points and Swags
    • Badges and Points
    • Ask Mitra Swags
  • Blog
    • Add New Blog !
  • FAQs
  • Community Members 💓
  • About Us
  • Contact Us
Home| Questions|Q 59842
Next
Closed
ITSNPORG
ITSNPORG
Asked: June 10, 20222022-06-10T14:57:33+05:45 2022-06-10T14:57:33+05:45In: —HTML&CSS

Typography not working in tailwindCSS

i am using tailwind as a frontend framework

and in my content Inside a Div there is <p> , <h1>, <h2>…… all text tags…

why all are same with font size? aren’t heading tags are supposed to be Greater. there is no typography things all are just cleared

h1 > h2 > h3 ….
neither font size is set for the div which is containing all these..

let me know what might be the reason.. and i am well awared about tailwind.. i can add font size class in element using taillwind classes but
those all content inside div are from Rich Text Editor or cms so it might not be efficient and good approach ..

html
  • 1
  • 7 7 Answers
  • 101 Views
  • 0 Followers
  • 0
Share
  • Facebook

    Related Questions

    • What does ReactJS intern do in a internship programme?
    • Can someone help me with a code to get username of gmail logged in browser in javascript?
    • How can I play Vast ads using videojs.com
    • About a project
    • How Much CSS should i learn to jump into JavaScript?

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    7 Answers

    • Voted
    • Oldest
    • Recent
    • Random
    1. Anmol Yadav I ❤️ ITSNP
      2022-06-10T17:11:22+05:45Added an answer on June 10, 2022 at 5:11 pm

      Are you using any CDN or any script tag? If yes then it might be affecting it but in Normal CSS it should not happen.

      • 2
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. THE BIG OCEAN Explainer
      2022-06-10T15:12:06+05:45Added an answer on June 10, 2022 at 3:12 pm

      Are you talking about Tailwind CSS? If yes, then it has the same size for both heading and paragraph tag default. If not, then It should be of different sizes until and unless you make a change through CSS (giving the same font size for both p and h tag).

      • 1
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • [Deleted User]
        2022-06-10T17:14:43+05:45Replied to answer on June 10, 2022 at 5:14 pm

        oo ya i am using tailwind..
        how to prevent that?

        i want all heading element with their original size..

        • 0
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • THE BIG OCEAN Explainer
          2022-06-10T17:22:39+05:45Replied to answer on June 10, 2022 at 5:22 pm

          By default, Tailwind provides 10 font–size utilities. You change, add, or remove these by editing the theme.fontSize section of your Tailwind config. Or you can give text-size like this:

          <h1 class = ‘text-xl ‘>Click here to see Classes for Text Size in Tailwind</h1>

           

           

          • 0
          • Share
            Share
            • Share on Facebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
    3. pandey Pandey
      2022-06-10T17:26:06+05:45Added an answer on June 10, 2022 at 5:26 pm

      in Tailwind css you need to set your font-size on the element class like if you add h1 tag you need to give class and set font size for your heading be like in class text-lg, text-xl, text-2xl. And also you can set custom css for these elements but don’t forgot to add !important in css code for values cause !important makes this compulsary to this element.

      you can find complete guide about tailwind css font-size:

      https://tailwindcss.com/docs/font-size

      • 1
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • [Deleted User]
        2022-06-11T09:26:44+05:45Replied to answer on June 11, 2022 at 9:26 am

        cannot add .. see question.. edited  :/

        • 0
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
    4. Best Answer
      [Deleted User]
      2022-07-13T21:55:38+05:45Added an answer on July 13, 2022 at 9:55 pm

      Finally found the solution after a long time..

      You need to use typography plugin to apply typography in tailwind

      here you go to the docs for proper guide @tailwindcss/typography – Tailwind CSS

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Sidebar

    Ask A Question

    Your Favourite Topics

    • Announcements
    • Blockchain
    • Books

        • —Non Tech Books
        • —technical books
    • Business and Entrepreneurship
    • Careers
    • College
    • Content and Blog
    • CyberSecurity
    • Design and Arts
    • Devices and Gadgets
    • Digital Marketing
    • Entertainment

        • —Movies-Series-TV
        • —Music
        • —Sports
    • Events
    • For Admins only.
    • Health

        • —Fitness
    • Money

        • —Personal Finance
        • —Stock Market
    • Operating System

        • —linux
        • —windows
    • Other
    • Paid Internship
    • Programming

        • —AI/ML
        • —APIs
        • —C & C#
        • —Django
        • —Flutter
        • —Go
        • —HTML&CSS
        • —Java
        • —JavaScript
        • —Mobile Apps Development
        • —Node Js
        • —NoSQL
        • —Php
        • —Python
        • —React JS
        • —SQL

    Stats

    • Questions 1k
    • Answers 10k
    • Best Answers 391
    • Users 2k

    Top 6 Members This Month

    Vicky

    Vicky

    • 0 Questions
    • 78 Points
    Sensei
    puppet

    puppet

    • 0 Questions
    • 23 Points
    Beginner
    wtfixair

    wtfixair

    • 0 Questions
    • 22 Points
    Beginner
    Dhanmaya

    Dhanmaya

    • 0 Questions
    • 20 Points
    Beginner
    Riyesh

    Riyesh

    • 0 Questions
    • 20 Points
    Beginner
    pranitkarki

    pranitkarki

    • 0 Questions
    • 20 Points
    Beginner

    Trending Tags

    askmitra blockchain c++ career coding College cybersecurity Django Flutter help javascript laptop laravel linux poll Programming python question react web web development wordpress
    • Popular
    • Answers
    • Rounak Agrawal

      Ask Mitra Udemy Courses Giveaway

      • 76 Answers
    • Subedi Bibek

      The Complete JavaScript Course 2022: From Zero to Expert! Udemy ...

      • 73 Answers
    • Subedi Bibek

      Mega Giveaway at askmitra.com 🔥

      • 69 Answers
    • bishwaKiran
      bishwaKiran added an answer Try getting into githubs student program, use your university/collage/school ID… January 30, 2023 at 7:44 pm
    • Sandeep Poudel
      Sandeep Poudel added an answer SOLVED: It was due to unfinished SSL certificate installation January 27, 2023 at 7:11 pm
    • Aashutosh_k
      Aashutosh_k added an answer Software piracy protection system Fingerprint voting system Stock price prediction… January 26, 2023 at 7:37 pm

    Related Questions

    • All Skills required for front end web developer

      • 4 Answers
    • need help create a logo

      • 2 Answers
    • about 100 days challenge

      • 7 Answers
    • web development

      • 5 Answers
    • frontend biggner

      • 9 Answers

    Explore

    • Home
    • Trending Category
      • Programming
      • Web Development
      • —Mobile Apps Development
      • —Stock Market
      • Business and Entrepreneurship
      • Blockchain
      • College
      • —Personal Finance
      • —HTML&CSS
      • —JavaScript
      • —Python
      • —React JS
      • —Node Js
      • —C & C#
      • Content and Blog
      • Careers
    • All Categories
      • Go to All Categories
      • Health
      • —Go
      • —Flutter
      • Digital Marketing
      • —APIs
      • Devices and Gadgets
    • Find Job and Internships
    • Points and Swags
      • Badges and Points
      • Ask Mitra Swags
    • All Blogs
      • Add New Blog !
    • FAQs
    • Community Members 💓
    • Questions
      • Un Answered
      • New Questions
      • Most Seen Questions
      • Most Answered
      • Trending Questions
    • Tags

    Footer

    Ask Mitra

    Ask Mitra

    Ask Mitra is a social question and answer engine that will assist you in forming a community and connecting with others. Talk about programming, your career, your mental health, and your personal finances. ❤️‍ Post a query and receive responses ✅

    Quick Navigation

    • Ask a Question
    • Home
    • All Categories
    • Find Jobs
    • Points and Swags
      • Badges and Points
      • Ask Mitra Swags
    • Blog
      • Add New Blog !
    • FAQs
    • Community Members 💓
    • About Us
    • Contact Us

    Legal Stuff

    • Terms of use and policy