34 Replies
two divs one for each line and then you just need to wrap the
's
in a span and give it the same styling as on text belowhwo to do this with grid
there is no reason to use grid
i want it to be responsive
you can use clamp for the font-size
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
i want 's beside the priyasakhi
like a collage
https://play.tailwindcss.com/uEhDIYaHgI did you even look at the pen i did ?
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
yaya
ok ok i got
@.indeevar here's an example https://codepen.io/deerCabin/pen/poQMyBj
bro thanks
no worries
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
this is what i did
is it looking good
?
change
float-right
to ms-auto
😉why ? doesnt float-right look good ?
add another section below and see what happens 🙂
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
i guess it's fine then
you must be careful with float sometimes you can get undersired side effects 🙂
actually i have no idea what it does
what kind of side effects i can expect ?
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
but i am not having any content in that div anymore so ig there will be no problems
yup
but for the future just fyi 🙂
this day float should really be used for images if you wanna wrap them around the text etc
oh
thanks man
great help
float is intended, and should only be used for, putting images in paragraphs of text in such a way that the text flows around them. It's been abused for layout purposes a lot, but anything you can do with float, is better done with flex or grid or any other positioning method. Unless it's to ensure text flows around another element like an image
and I just noticed I skipped over Mannix pretty much saying exactly that, sorry >_>
nah it's ok two opinions is better then one and you explained it thoroughly
so how to do it with flex box
?
ig position will do the thing
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
solved it
nice
is that correct ? no problems right ?
guys i got an another problem
i when i toggle the side bar i want the whole background to be darker
Since it's a different problem, I'd suggest making a new post for it 🙂
@Kevin i did that sir