hi I cant use height 100% for background img in css how to use it through css or xhtml strict valid way ... ? Thanks
Maybe you should set background image for body body { background: url('image.jpg'); } Could you show up your code ?
If you want it to resize in both directions, try this: <img id='background' src='bg.jpg' /> #background { position: absolute; width: 100%; height: 100%; z-index: -1; } Code (markup): And I should give credit to the site where I found it: CSS Tricks - Resizeable Background Image There are more advanced methods too, like this one: CSS Tricks - Perfect Full Page Background Image