In this example below you will see how to do a Test_crossedBox with some HTML / CSS and Javascript

This awesome code was written by sarlam, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright sarlam ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
      <link rel="stylesheet" href="css/style.css">



      <div id="last_activity" class="block_view">
        <h1 class="dotted background_blue">Dernières activités proposées</h1>

        <div class="crossed_border">
            <div class="crossed_content">
                <div class="activity">
                    <img src="" alt="poule mouillette front"/>

                        Café Poule Mouillette - Paris 10<br/>
                        19.01.15 - 15h30 à 17h30<br/>
                        <a href="#">Voir les détails</a>

          <label for="trigger_menu">trigger<br/></label>
          <input type="checkbox" id="trigger_menu"/>
            Accueil Activités
                <li>Le blog</li>
                <li>La boutique</li>



/*Downloaded from https://www.codeseek.co/sarlam/test_crossedbox-ogWVwb */
* {
  border: 0;
  margin: 0;
  padding: 0;
h1 {
  background: orange;
.crossed_border {
  border: 0;
  margin: 0;
  padding: 0;
  height: inherit;
.crossed_border > .crossed_content {
  background: grey;
  margin: 0 20px;
#trigger_menu:checked ~ ul {
  display: block;
  background: purple;
#trigger_menu:checked ~ div {
  display: none;
#trigger_menu ~ div {
  display: inline-block;
#trigger_menu ~ ul {
  display: none;