score:0
you should use flex-row
instead of flex-col
for whole container. otherwise i would suggest for using an extra div for differentiating these sections and using grid to arrange these div
in a similar width.
you can try like this:
// ...
return (
<div>
<div classname="max-w-md overflow-hidden bg-white m-4">
<div classname="grid grid-cols-4 gap-1">
<div>
<div classname="px-6 py-3 border-b">
<div classname="text-xl font-bold"> twitter </div>
</div>
<div classname="px-6 py-3 border-b">
<span classname="">avg. sentigment(0.0 -1.0)</span>
<span classname="">0.31</span>
</div>
</div>
<div>
<div classname="px-6 py-3 border-b">
<div classname="text-xl font-bold"> instagram </div>
<span classname="">post analyzed</span>
<span classname="">5,670</span>
</div>
</div>
<div>
<div classname="px-6 py-3 border-b">
<div classname="text-xl font-bold"> linkedin </div>
<span classname="">positive posts (>0.66)</span>
<span classname="">1,849</span>
</div>
<div classname="px-6 py-3 border-b">
<span classname="">negative posts (0.33)</span>
<span classname="">1,981</span>
</div>
</div>
</div>
</div>
</div>
)
// ...
Source: stackoverflow.com
Related Query
- CSS alignment: flexbox/ tailwind alignment issues
- Issues loading data into multiple columns in Tailwind CSS
- What is the meaning of xs, md, lg in CSS Flexbox system?
- tailwind css with css modules in next.js
- Tailwind CSS how to style a href links in React?
- Inline CSS issues in react component
- Tailwind CSS IntelliSense does not provide suggestions in a ReactJS project?
- Why are css classes are missing in production when using Tailwind and next.js?
- Create top-down slide animation using `Transition` from `@headlessui/react` using Tailwind CSS
- How to Remove Arrow on Input type Number with Tailwind CSS
- Tailwind CSS unnecessary whitespace
- Tailwind css classes not showing in Storybook build
- Nextjs hot reloading taking 8-10 secs on every change of tailwind css
- Why styles don't update when saving the files in Tailwind CSS JIT mode and I need to restart the server?
- tailwind css - can't get item to fill out page, always stuck in smaller container
- How to split tailwind css generated code into different directories?
- Tailwind CSS custom color applying to text but not background in ReactJS
- How to style SVG <linearGradient> with Tailwind CSS when using `fill="url(#a)"`?
- Dropdown Menu - Next.js & Tailwind CSS
- Tailwind CSS :before pseudo class
- Tailwind CSS animations not working in ReactJs/NextJs
- While Loading my site on the client's web page there occurs css property clash issues
- Using dynamic position values in Tailwind CSS
- Table not using Tailwind CSS
- Tailwind CSS image absolute using The Next.js Image component
- How to add a style on a condition in tailwind css
- Prevent page flash in Next.js 12 with Tailwind CSS class-based dark mode
- ReactJS & Tailwind CSS - Excess scrolling with h-screen
- Tailwind css background gradient not applying
- Tailwind CSS classes not updating after initial build of react app
More Query from same tag
- Override format in Material UI KeyboardDatePicker
- How to mention users using @ in django
- Getting map is not a function after pressing back button from a redirected page in react.js
- Programmatic access to history (history.push etc) in react-router v5 outside of components
- Configure webpack production build
- Types of parameters 'event' and 'event' are incompatible
- React - Arrow function vs bind() and event with argument
- How to filter the same id as the URL Params?
- How do I create a react list component from an array of objects?
- React - how to create a dynamic (using router) details pages
- How can I get token from the URL in Nextjs / React App?
- React Higher Order Component conditional data load
- Avoiding repeating state names
- How can I iterate over an array of json object in Reactjs?
- Using two useeffect react hooks
- i18n.changeLanguage is not a function
- Using map in React to create components
- why is my setstate function is not working for the first call?
- Fallback message for empty object meteor/react
- HoC with React Hooks
- A valid environment variable to satisfy env:PRISMA_SECRET could not be found
- How to keep redux-form submission errors after switching from a wizard-form "piece" to another?
- Can we put underline in single line text field of contentful?
- Is it possible to specify global typings in JSX?
- How to make page slide(change) with react-router
- Using React Big Calendar how can i change the color of the cell that i am pointing
- why my custom hook is executed twice when I use it once?
- How to update a react-chartjs-2 plot using useState()
- Add class to specific element in React onClick
- Is it bad practice to export all components into an index.js file?