Prepend html before html

HTML
I have an html template (jquery, js and everything is imported in the head). So here is this part, I try to prepend new paragraphs before the existing...
7 months ago

Div's height becomes 0 when I set a percentage

HTML
I have li's with the flexlayout. There are 3 li's in every column. (flex-basis is set to a third.) In the li I have a div for a background image, and ...
1 year ago

Keep website picture size when zooming out

HTML
I find it quite annoying that pictures resize/get zommed in-out when zooming in/out on a website (Ctrl+Mouse-scroll). I have looked at Call Of Duty (h...
1 year ago

Div next to div image

HTML
JSfiddle Demo I want to make description of cat next to its image. Can you help me? <div id='parent_div_1'> <div class='child_div_1'...
1 year ago

Navigation won't vertically align

HTML
I have been trying to vertically align on my navigation menu. I tried display:table-cell; vertical-align: middle;, but it just won't. I do not want ...
1 year ago

HTML Form Onsubmit validation doesn't working for JS function

HTML
I am trying to raise an error for a form if the fields are not numeric however it isn't raising any error and directing to the page I defined as actio...
1 year ago

How can I make a 2-level navigation bar?

HTML
I am wanting to make a navigation bar just like the one over at http://cryengine.com/ but I dont know how. HTML: <div class="navigation"> ...
1 year ago

Imitating a blink tag with CSS3 animations

HTML
I really want to make a piece of text blink the old-school style without using javascript or text-decoration. No transitions, only *blink*, *blink*,...
1 year ago

Options don't display when click on it

HTML
I'm making an option button (the tree dots above right). When click on it, the options must be show. Click again and the options hide. Below is my cod...
1 year ago

Overflow hidden not working on hover

HTML
I have this div and I want to show the title when I hover over title div. The problem is that I get the hover effect even if I hover on the edges of t...
1 year ago

Add line break within tooltips

HTML
How to add line breaks within a HTML tooltip. I tried using <br/> and \n within the tooltip like <a href="#" title="Some long text <br/...
1 year ago

Black mask: css transition applied with javascript not working

HTML
My code function obscure(){ var content = document.getElementById("oscura"); content.style.display=""; content.style.opacity = 0; cont...
1 year ago

Get paragraph text inside an element

HTML
I want to have the text value from a <p> inside a <li> element. html: <ul> <li onclick="myfunction()"> <span...
1 year ago

Decode HTML entities in JavaScript?

HTML
Sample conversions: & -> `&` > -> `>` Any small library function that can handle this? ...
1 year ago

jQuery's parseJSON from HTML not working

HTML
I get an error when trying to parse JSON from a HTML data attribute. This is the div I want to parse JSON from: echo '<div class="udropdown" data-...
1 year ago

Improving text readability with CSS

HTML
I am trying to style this pen and I can't quite get the right CSS for the text to make it more readable and not looking overcrowded. Core CSS: p{ ...
1 year ago

Is it possible to make a div unclick-throughable?

HTML
In this example is it possible to click the blue box without affecting the red box without using js? http://codepen.io/YikesItsMikes/pen/MaPBJy HTML...
1 year ago

GET request for redirect initiated by browser but not successful

HTML
While trying to redirect user to a URL, it works with GET requests but not with postback requests. Through firebug's Network window, I can see the re...
1 year ago

How to disable the autofill in browser text inputs selectively via code?

HTML
Is it possible to selectively disable the autofill feature in text fields using code? I'm developing my custom code in ASP.Net AJAX to search for the...
1 year ago

How to stop <div>s from moving into each other with float defined?

HTML
Very straightforward CSS question that I haven't been able to find the answer to so far: I'm trying to lay out a page with two div's side-by-side in ...
1 year ago