So I am happy to say that CSS is no longer like Greek in the original alphabet, not a single word of which means a thing to me.
Now it’s more like Spanish: I actually understand maybe a hundred or more words, can discuss some very simple things, and can suss out the meaning of more given enough time because I understand the root or the context. (Gotta love that latin! dormir = sleep = dormant…)
Which is pretty good, considering how marginally competent I am with HTML to begin with.
Anyway, before I start gettin’ all fancy and changing everything, I want to gain a grounding by translating my super-simple, 1998-era HTML coded site, which relies entirely on very simple tables to look reasonably decent, to CSS. I’m comprehending the font things, background, color, etc. I understand class vs. id (mostly, I still have to pause and think hard to make sure). And I’ve been reading up about the whole positioning thing, including stumbling into lots of commentary and problems with with absolute vs. relative and making sure it all works. And now that I have some little bit of understanding, I recognize when I’m on a website that has messed up coding because things are sort of piled on top of each other.
Anyway, my site is very very simple. (no links, it’s commercial and NSFW, message if you want to look and don’t know) Most pages have a narrow navigation table down the left with about 10 icons and text links underneath. There’s an image across the top, and then whatever the content of the page is in a table in the center. The way it’s all set up, if you widen the window, it all stays nicely lined up relative to each other in the center of the page. I actually want to change this somewhat, but not until I understand it by translating it to CSS first.
So, all this to ask: how do I position that left hand vertical navigation and the other elements to all stay nicely spaced relative to each other? In my still very limited understanding, it seems that somehow I should be utilizing relative rather than absolute positioning, but when I look at how that works, it seems to be relative to the corners of the page/window/ not relative to the other elements of the page.
So I’m just looking for nudges in the right direction to help me comprehend this.
To the extent that anyone volunteers their expertise, thank you.
(I plan on making many changes, including a complete shift to a CMS, but I do not want or intend to do that without having a fundamental understanding of what the CMS is doing, because that will help me to navigate any issues that will almost certainly arise at that point. One step at a time…)