[SOLVED] DOCTYPE reverses CSS behavior

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

[SOLVED] DOCTYPE reverses CSS behavior

Post by postiffm »

Site: new.fellowshipbibleannarbor.org
CMS: 1.9.1

To fix my previous bug, I had to add the proper DOCTYPE to the top of my template.

Before doing so, a table in my left sidebar looked like this:
Image

I like the lines and highlighting of the title. Chrome reports on this this way:

background-color: #666;
border-bottom-color: white;
border-collapse: collapse;
border-left-color: white;
border-right-color: white;
border-top-color: white;
color: white;
display: block;

When I add just the following at the top of the template



then the same section of my site changed to this:
Image

without the lines and highlighting of the title. Chrome reports on the same :

background-color: transparent;
border-bottom-color: black;
border-collapse: collapse;
border-left-color: black;
border-right-color: black;
border-top-color: black;
display: block;

What am I missing here?
Last edited by postiffm on Tue Nov 30, 2010 11:56 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: DOCTYPE reverses CSS behavior

Post by Dr.CSS »

Please check to make sure it's spelled correctly, CSS is case sensitive...
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

Re: DOCTYPE reverses CSS behavior

Post by postiffm »

Unbelievable :) That was it.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED] DOCTYPE reverses CSS behavior

Post by Dr.CSS »

I know, I use Firefox with the Web Developers tool bar and can find all the CSS etc. and made the change in it to see it go back to what it was... ;)
Post Reply

Return to “Layout and Design (CSS & HTML)”