Hexagon shape with CSS3

A simple search turned this up: CSS Hexagon Tutorial Referenced from the site: Put a 104px × 60px div with a background colour between them and you get (the hexagon):

CSS fixed width in a span

Expand snippet Like Eoin said, you need to put a non-breaking space into your “empty” spans, but you can’t assign a width to an inline element, only padding/margin so you’ll need to make it float so that you can give it a width. For a jsfiddle example, see http://jsfiddle.net/laurensrietveld/JZ2Lg/

Create a slanted edge to a div [duplicate]

You can use a skewed pseudo element to make the slanted solid background of your element. This way, the text won’t be affected by the transform property. The transform origin property allows the pseudo element to be skewed from the right bottom corner and the overflowwing parts are hidden with overflow:hidden;. The pseudo element is … Read more

position fixed is not working

you need to give width explicitly to header and footer Working fiddle If you want the middle section not to be hidden then give position: absolute;width: 100%; and set top and bottom properties (related to header and footer heights) to it and give parent element position: relative. (ofcourse, remove height: 700px;.) and to make it … Read more