Can a block element be divided "left and right" so that a white line passes through it in HTML ?¿? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can a block element be divided "left and right" so that a white line passes through it in HTML ?¿?

HTML

21st Nov 2018, 9:03 AM
Wilberflinks
Wilberflinks - avatar
2 Answers
+ 2
I think I understand what you are going for visually, but maybe not functionally. Within a div (generic block element), you can have two elements that sit inside the div side-by-side. You can then set a white right border for the first element (the one on the left) and /or a white left border for the second element (the one on the right). That's one of many options.
21st Nov 2018, 9:41 AM
Janning⭐
Janning⭐ - avatar
+ 1
Maybe you could clarify your question/problem? Anyway, if your goal is to get block styled as multi-column text, you should check these css related links: https://developer.mozilla.org/en-US/docs/Web/CSS/columns https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts
21st Nov 2018, 1:26 PM
visph
visph - avatar