I am not to sure if this is completely possible now a days but can i change the view of a page after clicking a button without javascript and using css instead?
I am currently displaying a page with information and once the user clicks the edit button - instead of going to a different page the user will be able to make changes in the same view.
This is how the page will be displayed to the user: jsFiddle of display
<div>living the dream</div>
<hr/>
<div>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div>Edit button</div>
And this is how the page will look after the user clicks on the edit button: jsFiddle of edit view
<div class="page" contenteditable>living the dream</div>
<hr/>
<div class="content" contenteditable>
<p>Lorem ipsum dolor sit amet...</p>
</div>
So the classes will be hidden until the edit button is clicked then they will be added to the divs
Can i accomplish this with just css and if not what are my alternatives instead of javascript?