I’m confused again <g>.
I noticed that people seem not to “take up the whole screen space” in absolute terms when putting images (or probably, anything else) on a web page.
I also noticed; I can’t remember where, a warning against using percentages (for some purposes? some browsers?), but I think I’ll try working with percentages for some things at least (text size? – width of images? maybe even heights of images?)
Also,I’m confused about how a declaration of (original) image width and height in the HTML code relates to how the image appears on a browser page. That is, say, I have a .jpg as a banner for many of my pages; it’s a scene, but it would be all right to stretch it a bit either way. However, I also have a logo I laid right into the image, which has a circle that should stay circular instead of becoming an ellipse. Uh, oh. It’s visible here:
[url]http://www.islandnet.com/~cwhitney/
The original scene image is 760px wide; 116px high.
I designed my site for 800×600 resolution, though I gather more people are now using 1024×768, but I use 800×600 because my vision is so poor, and I need larger stuff <g>. I did check my site with the higher resolution, and it looked okay to me.
If I were to re-make the scene image (easy to do), and make it 800px wide, would the image tend to wrap? What should I do about that sort of thing?
What’s bugging me is that in all my browsers, the image doesn’t quite cover the entire width of the screen. I guess I should try using width: 100% and see what happens! I’m afraid the embedded logo would squash top-to-bottom <g>. (I’ll try it anyway).
In preparation for stacking my headers in the photo galleries on top of the banner image I have in those, I was reading about the box model last night, and noticed something called z-index, which I guess I also need to play with.
Thanks to MstrBob, I got my background image working, and noticed I’ve planned that one badly, too, as it is wrapping; instead of a stripe down the left side, I have the left-side view as desired, and it wraps and produces a stripe down the right side as well! (That’s not visible on my site, because I haven’t put it up yet; I need to work on several things first, and get them into my external CSS file – such as, formatting paragraphs so the margins work as I intended, and centering images in the photo galleries.
And by the way, MstrBob, I had to change the repeat in my CSS file; I had repeat-x, but I had misunderstood, and I took the “-x” out. I just didn’t understand the relationship between what the image is (.gif with a stripe on the left side, and the rest of it is transparent) – and the repeat function. But my CSS validated, and though what I have is ugly, and I need to fix it, I have an approach to fixing that one. (Change the original image.)
And can I stack my logo, using z-index, on top of the banner, instead of embedding it in the banner? If I can do that, I wouldn’t have to worry about the stretch factor, so to speak.
Sorry for the confusion again!
Fri, 31 Dec 2004 09:39:39 (PST)