In this example http://jsfiddle.net/czwsK/ how would I align the text “hello” to be 10% of the height of the box from the top? eg the first inline block would be 20px from the top.
In this example http://jsfiddle.net/czwsK/ how would I align the text hello to be 10%
Share
This JSFiddle demonstrates what you need to do. As Diodeus recommends, you shouldn’t use a percentage, however if you want to, wrap your elements in a container div and give that div the height you want, then you can use percentages with
vertical-align: topon the text div.HTML:
CSS: