This is a basic Google Site and by design their Sidebars have disabled CSS and Javascript. Nonetheless, in keeping with my diligent efforts to code tableless designs, I’ve got the little tableless navigation sidebar that follows. What I’m trying to ascertain is if there is a tableless/CSS-less/script-less way to define those properties of the actual anchor boxes that fall below the heading that are universal, namely:
In other words, only two properties — the text color of the link, and the cell’s Background color — differ for each row (Height, Font, Padding are the same). I noodled around with this in different ways trying to get the height etc. properties into one container, from which the following containers would inherit its dimensions, but couldn’t get it to work.
Have I got this down to as lean as I can get it without succumbing to tables?
I don’t really like using all those classes on the LIs, but it’s not outrageous, given all the different colors. Both the CSS and HTML could be leaner still, using more advanced CSS, but that’s a decent start.
You’ve given me a CSS stylesheet when I expressly stated I cannot use CSS or any scripting. This is as painful for you as it is for me but when I say basic HTML, I mean STUPID BASIC HTML. No CSS. No Scripting. None. Zip. Nada.
The use of <H2>, LIST or BULLET tags is an option, but not for this particular little project — so thank you, but no to that, as well. I need complete control over the placement of the anchors, their indentation, their vertical margins etc.
We’re talking Stone Age HTML brother. It won’t be the end of the world if this is the leanest I can get this down to, but I would like reassurance that I’ve exhausted every other option.
If Google Sites forces you to use such inefficient and invalid code, then it doesn’t deserve to be on the web. For example, you can’t have a div inside a span.
I don’t mean this as an attack on you at all (I don’t like to do that), but I would strongly suggest getting a proper service. Basic hosting these days is about the cost of a cup of coffee per month, so I don’t think saving that much warrants being forced to work with such poor code.
Even better than “basic.” For a measly $5 a month, my host lets you host one domain (registration not included in the price, of course), with unlimited disk space, unlimited bandwidth, a massive, well-run data center, 24x7 support, all sorts of quick-install software, etc., etc. There really is no reason to settle for “lousy!”
Hold your fire men. When did I say this was one of my sites hmm?
Apologies to Ralph.
And to answer EarlyOut . . . No, they won’t. Their workaround is to suffer you to create something called a “gadget” (which can be CSS or script) and then rudely shove it into your page but oh wait wait, didn’t I tell you? They don’t allow Gadgets in their sidebars. I believe this expresses my opinion of Google Sites: :x