defaut Value of width in certain div

can anyone tell me what is the default width of a certain div? because i want to use
w-full
w-full
className on my <ul> below 640px and set it to default above 640px, im using tailwind btw
1 Reply
MarkBoots
MarkBoots14mo ago
A <div> is a block-level element. (so is an <ul>) Block-level elements by default start on a new line and take 100% of the available width. It could be that the parent changes its behavior, for example inside a flex or grid .
Want results from more Discord servers?
Add your server