What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Regarding image size in html

vijaya_123

Junior Member
Helllo
I am new to html and css.I want to display a large number of values from a table onto the page.Can someone tell me how to make my image fit to the entire screen irrespective of table size.
Regards
vijaya
 
Maybe this will help some.

HTML

<div id="background">
<img src="img.jpg" class="stretch" alt="" />
</div>

CSS
#background {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
z-index: 0;
}

.stretch {
width:100%;
height:100%;
}

What do you mean by a large number of values

Mark
 
Last edited:
Back
Top