Skip to content
Discussion options

You must be logged in to vote

Here's how you can do that. Create a _styles/aside.scss file with the following contents:

---
---

// match with vars at top of section.scss
$page: 1000px;
$padding: 40px;

// screen width breakpoint
$screen: 1800px;

// if the screen is wide enough
@media (min-width: $screen) {
  // float aside next to section content
  aside {
    // position relative to containing section (nearest ancestor with position: relative)
    position: absolute;
    // distance from screen edge. can change to "left" to switch side.
    right: 40px;
    // distance from section top
    top: 60px;
    // distance from section bottom. remove to let span over multiple sections.
    bottom: 60px;
    // width = spa…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ManuThomasen
Comment options

@vincerubinetti
Comment options

Answer selected by vincerubinetti
@ManuThomasen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants