The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › h1 positioning battle
Hello everyone! I am trying to get my h1 element to be 100% of the #one image. however, it is 100% of the whole window. Can anyone help me please? thank you!
http://jsfiddle.net/CyMn3/1/
Are you thinking something like this? http://jsfiddle.net/khTnX/
I put the 10px of padding on a span within the h1 element so the 50% would not be overlapping the #one div.
Note: This only works for #one.. it will not work for the others.. do you want it to work for all boxes?
Great! Awesome. Now I hate to ask one more question, but how do I get the span to go to the bottom of the #one?