diff --git a/css/index.css b/css/index.css index 2807e20..cd32f26 100644 --- a/css/index.css +++ b/css/index.css @@ -191,3 +191,35 @@ button:hover { font-weight: 500; font-style: normal; } +.clicker { + display: inline-block; + width: 100px; + height: 50px; + background-color: blue; + color:#FFF; + } + .clicker.hidden { + display: none; + } + .hiddendiv { + height: 0px; + background-color: green; + overflow: hidden; + transition: height 0.5s; + } + .hiddendiv.nr2 { + background-color: red; + } + + #showdiv1:target ~ div a[href="#showdiv1"], + #showdiv2:target ~ div a[href="#showdiv2"] { + display: none; + } + #showdiv1:target ~ div a[href="#hidediv1"], + #showdiv2:target ~ div a[href="#hidediv2"] { + display: inline-block; + } + #showdiv1:target ~ div .hiddendiv.nr1, + #showdiv2:target ~ div .hiddendiv.nr2 { + height: 130px; + } diff --git a/index.html b/index.html index 870b1af..8ff6629 100644 --- a/index.html +++ b/index.html @@ -121,6 +121,20 @@ +
+ + +