I'm trying to create the following grid layout which will reveal a child on click.
So,
[ link1 ] [ link2 ] [ link3 ]
[ link4 ] [ link4 ] [ link4 ]
Will become,
[ link1 ] [ link2 ] [ link3 ]
[---------link2 content---------]
[ link4 ] [ link4 ] [ link4 ]
Ie, clicking on link2 has revealed content relating to link2 in the grid beneath it.
I had attempted to do this semantically, by grouping the link and content together in a dl..
<div style="display: flex">
<dl>
<dt><a href="#accordion1">Link1</a></dt>
<dd>Content 1</dd>
</dl>
<dl>
<dt><a href="#accordion2">Link2</a></dt>
<dd>Content 2</dd>
</dl>
<dl>
<dt><a href="#accordion3">Link3</a></dt>
<dd>Content 3</dd>
</dl>
..etc
</div>
With this layout, am I right in thinking that i wont be able to make the corresponding 's full width because of the adjacent blocks ??
And if that is the case, do i need to break up the layout in to a series of div's (at the cost of making it less semantic) ?
Any help appreciated.
Many thanks in advance,