helvitiis / warofcurrents

A repository for the War of Currents Digital Humanities project.
The Unlicense
3 stars 1 forks source link

CSS for table of contents and articles display #28

Closed ebeshero closed 6 years ago

ebeshero commented 6 years ago

@ajnewton1 Just for some inspiration, here is a project site that handles selection from a table of contents and control the reading window: http://presidential.obdurodon.org/speeches.php

Don't be thrown that it's a .php page. That's just the way they're pulling the articles into the display <div>. What to look at is the CSS, which is organized in flex boxes, but also allows for overflow content to be scrolled. I was thinking that might be helpful for the table of contents problem: As you move down the page, you can't view the article. But if you could scroll that window, that would make it easier to see. So to do that, on your CSS find the div that hosts your table of contents and set this property in it:

overflow: auto;