I am building a site based on https://orange-ape.cloudvent.net/billing/expired-credit-card/
The relevant html/css from the page is:
<section class="sidebar sticky">
<ul>
<li>
<a href="#item1" class="active">Top</a>
<a href="#item2">Bottom</a>
</li>
</ul>
</section>
<section class="tutorial-content">
{ content here }
</section>
.sidebar {
display: none;
padding: 0 20px 0 0;
position: absolute;
top: 85px;
width: 200px;
}
.tutorial-content {
width: 100%;
margin-left: 230px;
}
Sometimes the sidebar does not have content - meaning the html looks like this:
<section class="sidebar sticky">
<ul></ul>
</section>
When the sidebar does not have content, I want to center the "tutorial-content" in the middle of the page.
Is that doable in CSS alone?