My webpage features two div
elements. One of the div
represents header content, while the other div
displays details content. I want both sets of content to be aligned side by side. Specifically, I need the details content to always appear on the right-hand side. If the detail content exceeds the available space, any extra
content should automatically move to the next line. For example, if File4.pdf and File5.pdf are too long, they should wrap onto a new line.
https://i.sstatic.net/GyALV.png
I initially achieved this layout using a table
, but now I would prefer to use div
elements instead. However, when I attempt to use div
s, the entire content shifts to a new line when it doesn't fit within the designated area.
To see my current implementation, check out the JSFiddle.