The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

I have the CSS-stupids this morning.

Here's the code:

/********  Making_Art_Toc styling  *******/

#making_art_toc {background-color: #A5E583;
}
#making_art_toc {background-color: #A5E583;
}

#col1_making_art_toc {float: left;
    background-image: url(blue_collage.jpg);
    background-repeat: repeat-y;
}

#making_art_toc_h1 {color: #910016;
}

#making_art_toc_h2 { color: #910016;
}
.making_art_toc a {color: #B92A2C;
}
#making_art_links li {display: inline;
    list-style-type: none;
}

The problem:  If I take either of the #making_art_toc background lines out, the background color goes to white.  I use the same set up for several different pages, and this one "went bad" without my knowing I changed anything.  What gives?

thx
CSS really is better... most days Send private email
Sunday, April 23, 2006
 
 
Is this the entire CSS code, or have you quoted only a portion of the file?  Is there a syntax error in the last rule before what you have posted?
DAH
Sunday, April 23, 2006
 
 
Aha!!  Thank you.

missing }.
CSS really is better... most days Send private email
Sunday, April 23, 2006
 
 
To save you some pain in the future: http://jigsaw.w3.org/css-validator/
Peter Monsson Send private email
Sunday, April 23, 2006
 
 
Peter,

Thanks for pointing that out. I knew of the HTML validator but not the CSS one.
dot for this one
Monday, April 24, 2006
 
 
By the way, make sure any floated elements are "display:block;".  Some browsers will require an explicit width, too, or "position: relative;"
A. Skeptic
Monday, April 24, 2006
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz