hi, so, i want to put an image as my background right where the header is, so i am guessing this will be a vector? Now, i have built plenty of site, but usually i don't include many images, its usually just css for me, my main concern of this is when you re-size the browser or have a different size browser you get them horrible scroll bars, up and down is fine, left and right i don't like, is there anyway around this or have i had a bad introduction to images in sites?

Recommended Answers

All 2 Replies

Browsers don't show scroll bars for background images, only the block level objects. If you use an <img> or a table it might show scroll bars. But using background image it shouldn't.
If you put the background on <body> you should be fine. If you put the background in a <div>, you'll have to set a height/width on the div or it'll shrink to nothing because background images don't stretch their containers.

No harm in trying it, pretty simple to test! Good luck

Browsers don't show scroll bars for background images, only the block level objects. If you use an <img> or a table it might show scroll bars. But using background image it shouldn't.
If you put the background on <body> you should be fine. If you put the background in a <div>, you'll have to set a height/width on the div or it'll shrink to nothing because background images don't stretch their containers.

No harm in trying it, pretty simple to test! Good luck

Ahh, right, i must have tried it wrongly once and had bad impressions about it, thank you for this : )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.