jQuery Clickable Div Based on Internal Link

Glenn Uncategorized Leave a Comment

If you want a div to be clickable based on a standard HTML internal link, within that div, then use this jQuery snippet (requires jQuery Library):- The code will rattle through the parent div looking for links and will then add the link it to that div. Useful for components that require clickable divs with custom defined structured content (portfolio …

Remove Empty Paragraph With CSS

Glenn Blog Leave a Comment

Empty paragraphs between <p></p> tags can be a real nuisance in your code (especially WordPress) as they add empty white space. There are a number of jQuery methods to remove empty para tags such as:- But there’s a much simpler way to achieve this with CSS Only Simply add the following CSS to your styles:- Bang the empty paragraphs are gone!