I am trying to emulate the page at https://stripe.com/docs by using CSS Grid. The referenced page has two columns. The left side column contains links and the right column is the target frame for each link; when a link is clicked, the content for that link opens in the right side column.
I have studied the code behind that page, and I have some questions:
I want to create a similar two-column layout using CSS Grid. I can't tell from the css code if that page uses css grid or some other layout method.
How do the links in the left column open in the right column? I have already been told that there is no way to target another CSS Grid cell with a hyperlink using CSS alone (see CSS Grid: how to make grid cell a hyperlink target?). Is that effect achieved with JavaScript or jQuery? If so, how can it be done?
So to sum it up, how do they do it, and can I do the same thing with a CSS grid layout using CSS alone, or with JavaScript/jQuery?
Thanks for any help.
document.querySelector()can be used on any valid HTML, CSS Grid or not. You can layout your page however you want. CSS Grid, Flexbox, or Floats can all accomplish this. The menu navigation will require Javascript or a JS library (JQuery, or other). Above all else, please try yourself... try try try.... If you try and have questions, SO will help you, but please try and then post your attempt