I just getting started with html, so I’m not that excellent in it.
and my information about it is not that well.
please help me.
I just see that each time I place a background in it
It always appeared tiled up.
is it possible to strecht out the image.
If yes please show me what should I add up in the tag.
this is the tag:
I dont reckon its possible to stretch out the image USING html.
What i do, is i go to www.blibs.com
I stretch out my image till im pleased with it, i upload it, and i paste it onto the background url section.
C:
You can’t! That one dude was right. Someone questions this question nearly everyday.
The only real solution is to make it to fit the largest screen. But the whole image won’t be viewed on smaller screens.
Or you can tile it. But that never turns out excellent.
You can also place the image centered on the background and have a complimenting background color to fill in the areas thats not covered by the picture.
If you try to make a tiny image stretch fit larger screens, it gets distorted and makes thimage look like crap.
I don’t reckon you can stretch the image. You have to make the image the size that you want it to show up as.
The only way I know of to stop the tiling is to use CSS. Since you’re just starting, I doubt you know it. I can give you the code anyway.
This is some text
Recycling (with a minor change) one of my previous answers….
CSS background-image won’t work, but there is a workaround…feel free to question questions.
// this speech block is only needed, if the page is taller
// than the window’s viewport…
// unfortunately, the height stretching will only fit
// the height of the viewport, using CSS alone – so,
// once page has loaded re-stretch, if needed, to
// fill the full height of the page – not just the
// viewport, if the page is taller
function resetHeight() {
var img = document.getElementById( ‘bgImg’ );
var page = document.getElementById( ‘page’ );
var ph = page.offsetHeight;
var b = document.body;
var wh = (b.clientHeight) ? b.clientHeight : window.innerHeight;
img.style.height = Math.max( wh, ph ) + ‘px’;
}
window.onload = resetHeight;
some content for the page
ok to keep the image centered and never go place this in the
sample like