0

As the title said I am a newbie who's trying to merge an Html with a Css because the website I am using (getresponse) won't let me upload a different .css file. Surely I am doing something wrong, but here is the html:

#cont {
  display: none;
}

.show:focus+.hide+#cont {
  display: block;
}
<div>
  <a href="#show" class="show">[Show]</a>
  <a href="#hide" class="hide"></a>
  <div id="cont">Content</div>
</div>

How do I do it? I tried writing the .css first but nope.

1 Answer 1

1

You add CSS code in the style tag:

<style>
#cont {display: none; }
          .show:focus + .hide + #cont {display: block;}
</style>
Sign up to request clarification or add additional context in comments.

1 Comment

It was really that easy? Shame on me 🐄🐄 Thank you so much, now it works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.