CSS
(Note: This will be a fairly technical entry, tied to specific details of CSS usage. Feel free to skim or skip if uninterested.)
Anyone out there a CSS expert?
I'm running into trouble doing a couple of things with CSS-positioning, and none of the online resources I've looked at provide answers.
(By the way, if you're ever creating an online tutorial for a new technology, please put the date of publication and/or most recent update somewhere near the top of the page. It's really frustrating to read through CSS tutorials without a clear idea of whether they were written in 1998 (when NS4 was the biggest browser-compatibility issue and there don't seem to have been any browsers that did a really good job with CSS) or, say, 2003.)
So here are my issues:
- Creating a horizontal navigation bar. For the purposes of my question, think of it as a horizontal row of four rectangular images, with no space between them. I can do that much; the hard part is preventing the line of images from wrapping like text if the visitor makes the browser window narrower. If you were creating such a thing with a table, you'd just use four table cells, set appropriate table attributes to get rid of cell borders and such, and put one image in each cell. For CSS, though, I'm not seeing how to do it. I tried min-width, but that doesn't seem to help, at least not in IE5/Mac or Safari v73.
- Creating little pop-up boxes that appear next to a link that's in a paragraph of text. Yes, I'm trying to re-implement my footnotes concept using better CSS. In IE5/Mac, that page works exactly as intended: you point the mouse pointer at a footnote number, and a little box appears containing the footnote text. In Safari, though, the box appears at the left margin of the window and a little down from where the footnote number is. I suspect that IE5 is exhibiting nonstandard behavior here, but it's the behavior I want. I can't seem to find a combination of visibility (or display) and positioning that provides the desired effect.
Suggestions, pointers, and tips welcome.