Is it possible to change the view of a page after clicking a button without using javascript, and instead relying solely on CSS?
I want to display a page with information where users can click an edit button and make changes within the same view rather than being directed to a different page.
Here is an example of how the page will be initially displayed to the user: View initial layout on jsFiddle
<div>living the dream</div>
<hr/>
<div>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div>Edit button</div>
And here is what the page will look like after the user clicks the edit button: View edited layout on jsFiddle
<div class="page" contenteditable>living the dream</div>
<hr/>
<div class="content" contenteditable>
<p>Lorem ipsum dolor sit amet...</p>
</div>
The classes will start off hidden, and will only be added to the divs once the edit button is clicked.
Is it achievable using just CSS, or are there alternative methods that do not involve javascript?