dragonlady7: self-portrait but it's mostly the DSLR in my hands in the mirror (Default)
[personal profile] dragonlady7
Below is a post I nearly made to WebmasterWorld to ask for help with my CSS.
If you read it, you'll see what an idiot I am. Thank God I previewed it and actually read what I'd written.
My CSS wasn't applying properly and I wanted to know what was wrong.
I pasted a snippet of my code.
Geez, I'm a moron. (Read it if you get CSS. Otherwise don't bother; it's so stupid.)

[edit]If you read it, it's all screwed up because of the HTML in it.
I just discovered that my stupidity goes even deeper: after I deleted this posting from the compose window, I went and fixed the issue, and... it's still broken. Dammit! Not broken the same way, but... I'm still so dumb!! Waaahh...[/edit]

I got a lot of good advice and demonstrated my ignorance of CSS in [url=http://www.webmasterworld.com/forum21/5626-2-15.htm#msg17]this thread[/url], but I have another question probably more suited to this forum. Using their excellent CSS advice, I got my stylesheet to work properly to set the background color of two table cells in my 3-column layout.
But it's not behaving as I thought it would, so I'm going to post in the proper forum to ask for help. I replaced the HTML <td bgcolor="color"> tag with a CSS class. The CSS class is structured like so:
.classSide table, .classside tr, .classside td {
background : #E0E0E0;
}

And I call it in the table cell: <td class="classSide">.

That works; the background of the table cell is indeed that color.
But the problem is this: the table cells need to be the height of the page content. Using HTML, the background color extends the full height. Using CSS, the background color only extends the height of the content of the table nested inside the colored cell.
The color is called in the same place! Why does the HTML apply it properly to the whole cell, and the CSS only apply it within the nested table?

And please don't tell me to redo my whole page's structure and appearance in CSS; I don't have time and we went over that already. ;)
I'm using Dreamweaver MX and IE 6, and Mozilla Build ID: 2002121606. In the dreamweaver preview it only colors the inner table; in IE6 the same, and in Mozilla it doesn't apply any color at all.

Sigh.

Am I using it right? Is there some stupid mistake in there? (Earlier it wasn't working because I'd spelled the class wrong when I called it in the document, so anything's possible even when I have the kind expert help of you guys.)

Should I give up on CSS and just go back to HTML until I have a miraculous burst of time and can learn CSS and redo the whole site? I was just worried that the background color wouldn't carry through in HTML if I only applied it to the outermost table cell. It seems to, though... but it's when I go with "seems" that I screw up most.

I'd spelled the selectors wrong in two places. So the class wasn't applying to those elements.
DUH.

I am SO glad I read it over before I hit "post". Oh my lord. I am so stupid today... I should just go home. We should get more sick days per month-- maybe one "I am so stupid I'm not getting anything done so I should just go home and lie in the bathtub for three hours" day per month. I need one of those. I am so stupid.

Profile

dragonlady7: self-portrait but it's mostly the DSLR in my hands in the mirror (Default)
dragonlady7

January 2024

S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 2627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 9th, 2026 06:30 am
Powered by Dreamwidth Studios