CSS float left not working right

DIV is a block element so you can give float or inline-block to your right div to take its actual width like this: EDIT: answer your comment below if you give float to the divs then you have to clear its parent like this :

How can I set the image opacity for body background

There is no CSS property background-opacity, but you can fake it by inserting a pseudo element with regular opacity the exact size of the element behind it. it can be done like this Check it here http://jsfiddle.net/dyaa/k4dw5hyq/2/ Edit: no need for opacity and filter in the body tag anymore http://jsfiddle.net/dyaa/k4dw5hyq/3/

CSS list-style-image size

You might would like to try img tag instead of setting ‘list-style-image’ property. Setting width and height using css will actually crop the image. But if you use img tag, the image will be re-sized to value of width and height.

Why “Inline-block” doesn’t work properly in this CSS?

This is actually expected behavior in HTML. Because you are using inline-block, any newline character or whitespace you have after the element and before another inline element, will be counted as a space. If you want the blocks to stack side by side like in your picture, your HTML would need to be like this. … Read more

Is background-color:none valid CSS?

You probably want transparent as none is not a valid background-color value. The CSS 2.1 spec states the following for the background-color property: Value: <color> | transparent | inherit <color> can be either a keyword or a numerical representation of a colour. Valid color keywords are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow transparent and inherit are valid keywords in their own … Read more