How to show/hide content on click with CSS

Tags: css,wordpress,onclick,show-hide

Problem :

I have put together this simple code for showing/hiding some content on click using CSS only. It works as I want it to in FF but wont work in Chrome or Safari (untested as yet in IE)

Can someone please tell me why it wont work in these browsers and suggest an alternative (using CSS only if possible)?

Here is the site where the code is being used -

Solution :

Added tabindex, works in Chrome:

From here: css focus not working in safari and chrome

jQuery method:

    CSS Howto..

    HTML/CSS: How do I make an input field with 2 vertically positioned buttons next to it?

    How can I reload css styles when change windows width?

    How to filter HTML elements based on their css attribute values ? [closed]

    How to make a basic event calendar with javascript, jquery, html and css?

    How do you transition a height without the element going outside the parents border?

    How do i add a fading border to my nav bar CSS

    How to remove unused CSS but keep comments?

    How would I replicate this input text effect where they're almost a merged box in CSS/HTML?

    How to add a rollover effect to the text on a map

    How to keep the underline effect in this demo stay using CSS?

    How php execute in file with extension .ctp in cakephp?

    How to apply SVG so that it works in IE background image

    How do I line up my textboxes without using a table? html/css

    How to set a td floating left in chrome?

    HTML, CSS - image inside image, how to do that?

    How to make my div's shrink dynamically, and not hide certain content?

    Change image src for product “showoff”

    Div Title on div border how to [closed]

    how to add an overlaying color over an image with css

    How do I combine two columns with different formatting?

    How to apply a CSS transition only to the transform property

    How to underline gaps created with CSS columns property?

    How to make image control button for each image inside the div using css and js?

    How to get the root directory of wordpress in css

    How do I add a special CSS class to run only on IE for a div component?

    How to change css elements in HAML dependent on what page is calling for the content?

    How to prevent css auto hyphenation for email addresses

    How to fix cloud rising?

    How to fill the anchor element's height to 100% in html?

    Show div at mouse click position, accounting for scrolling