Partial Borders with CSS

On July 28, 2014, in Web Development, by Anuj Gakhar

There is no such thing as border-length in CSS, which would have made this really easy to do. But anyway, if you want to have partial borders (a border that spans only half the length of the div e.g.), you can use the before/after pseudo selectors for this. You shouldn’t have to change any markup […]

Tagged with:  

Mobile Safari CSS :hover selector and Back button

On February 14, 2013, in iOS, Javascript, Browsers, by Anuj Gakhar

Mobile Safari (iOS) has no concept of hover, in general. Obviously, with touch devices, you can’t have this feature. The screen needs to be touched for it to detect any user interaction. That makes sense. And with that in mind, it would be OK to say that we can ignore all :hover CSS rules, because […]

Tagged with:  
© 2011 Anuj Gakhar