Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
A background image isn't going to resize...period. You can use Photoshop, Paint Shop, GIMP, or Bob's Quicky Graphics Editor. It really doesn't matter. Background images don't resize...period. They may TILE (repeat), but they don't SCALE (resize).
If you want an example of how a background can tile and expand, look at my blog. The blue gradient background for the header is designed to expand between two widths in most browsers (IE6 and earlier, it expands to a percentage width). It's done using a 1-pixel wide graphic that I use repeat-x to tile horizontally (to contrast, repeat-y tiles vertically...see my CSS sheet for more info.)
Here's a rough idea of what you want for output code (play with this...it's only meant to get you started):
http://www.christopherjason.com/arti...er-layout-css/
This will get you sorted out horizontally. As far as a vertical scrollbar is concerned, don't bother to waste your time trying. If you build your site properly, you'll have plain-text content, which is resizable in most browsers regardless of font size. So this isn't even a goal worth trying to achieve...the only way it's even remotely possible is if your page contains nothing but images and/or has a fixed height (which usually ends up becoming a bad design.)
What the guy is doing in the example you quoted may "work", but it's a coding nightmare and has a horizontal scrollbar in IE7. So I wouldn't use his example.
|