I am trying to use HTML and CSS to hide and show data on click. I cannot use JavaScript, pseudo-elements such as checkbox(:checked), :radio, :focus with tabindex, :target and details of HTML5. Its for an outlook email template and I have tried all solutions using pseudo elements, HTML5. Here is what's allowed: https://www.caniemail.com/clients/outlook/
I understand the email template tech is primitive and there are limited options. Please help.
Here are all the options that don't work:
- http://jsfiddle.net/ionko22/4sKD3/
- http://jsfiddle.net/79z30ymk/
- http://jsfiddle.net/79z30ymk/1/
- http://jsfiddle.net/79z30ymk/2/
sample :
<head>
<style>
.clicker {
width: 100px;
height: 100px;
background-color: blue;
outline: none;
cursor: pointer;
}
.hiddendiv {
display: none;
height: 200px;
background-color: green;
}
.clicker:focus+.hiddendiv {
display: block;
}
</style>
</head>
<body>
<div>
<div class="clicker" tabindex="1">Click me</div>
<div class="hiddendiv"></div>
</div>
</body>