Skip to content

Tag: css

Image flickering on mouseover and mouseout

Hello I have a menu that consists of div tags. The user selects an image for each menu item and one additional image to be applied when the mouse is over the menu (hover state). The problem is that is on mouseenter and on mouseleave the image flickers and the user experience is not ideal. Keep in mind that th…

Make a DIV and all children elements smaller

I want to re-size a part of HTML in my design. I need this change to happen as an animation. The DIV itself and all it’s inner elements i.e. Images, Paragraphs, Anchors etc should be re-sized just like when you re-size an image with a constant aspect ratio. I think, the tool should get current height an…

Onclick event on list item

I’m trying to follow this answer, but rather than using a button as he does in his jsfiddle, I’m trying to use list items: http://jsfiddle.net/hqvDT/108/ It looks like it should work, but when I try to select some text and then press B (for bold), it doesn’t actually bold the text. What&#821…

Div Square, width size based on 100% height

I’m trying to make a responsive square with the width size based on the (100%) height of the element. I believe it’s impossible using only CSS. The square width should be equal to the height (100% of the large container. The large container is more than 100% of the screen). The ratio has to be wid…