Style every second widget?

I need to apply a certain style to every second widget in my sidebar, and I’m reluctant to use :nth-child due to cross-browser compatibility issues. Is there a bit of PHP that will allow me to apply a class to every other widget? 3 Answers 3 Use the dynamic_sidebar_params filter. The following code adds classes … Read more

Changing the child element’s CSS when the parent is hovered

First of all, I’m assuming this is too complex for CSS3, but if there’s a solution in there somewhere, I’d love to go with that instead. The HTML is pretty straightforward. <div class=”parent”> <div class=”child”> Text Block 1 </div> </div> <div class=”parent”> <div class=”child”> Text Block 2 </div> </div> The child div is set to … Read more

Background image jumps when address bar hides iOS/Android/Mobile Chrome

I’m currently developing a responsive site using Twitter Bootstrap. The site has a full screen background image across mobile/tablet/desktop. These images rotate and fade through each, using two divs. It’s nearly perfect, except one issue. Using iOS Safari, Android Browser or Chrome on Android the background jumps slightly when a user scrolls down the page … Read more