Thursday, September 21, 2023
HomeCSScss - Private column-width viewport vw

css – Private column-width viewport vw


My private columns (the panes) require to have private (its very own size) size due to the fact that I have an onClick occasion for every pane which sets off a smaller sized or larger size of each pane Such as this: $ {navbar? "col-w-[5vw]": "col-w-[20]"}

So this:

 grid-cols-[20vw_20vw_20vw_100vw]

I would certainly require to re-write right into something like:

<< div className=" grid h-screen grid-cols-4 overflow-x-scroll">>.
<< div className=" col-w-[20vw] overflow-x-hidden overflow-y-scroll">> PANE * 1 * Lorem ipsum<.
<< div className=" col-w-[20vw] overflow-x-hidden overflow-y-scroll">> PANE * 2 * Lorem ipsum<.
<< div className=" col-w-[20vw] overflow-x-hidden overflow-y-scroll">> PANE * 3 * Lorem ipsum<.
<< div className=" col-w-[100vw] overflow-x-hidden overflow-y-scroll">>.
<< primary>> * MAJOR * Lorem ipsum<.
<.
<.

and also requires to function the like-->>> >

<< div className=" grid h-screen grid-cols-[20vw_20vw_20vw_100vw] overflow-x-scroll">>.
<< div className=" overflow-x-hidden overflow-y-scroll bg-yellow-400 text-50xl">> PANE * 1 * Lorem ipsum<.
<< div className=" overflow-x-hidden overflow-y-scroll bg-green-500 text-50xl">> PANE * 2 * Lorem ipsum<.
<< div className=" overflow-x-hidden overflow-y-scroll bg-blue-300 text-50xl">> PANE * 3 * Lorem ipsum<.
<< div className=" text-50xl">
<> < primary>> * MAJOR * Lorem ipsum<.
<.
<.

Nonetheless, however, it does not. Exactly how to appropriately re-write preferably?

RELATED ARTICLES

Most Popular

Recent Comments