Browsers don't show the background color that appears in the preview with those browsers. (Full Version)

All Forums >> [Web Development] >> Expression Web Help



Message


4Ds -> Browsers don't show the background color that appears in the preview with those browsers. (3/10/2008 18:17:51)

I want a background color to surround the rest of the content on a page. I used the following tag

<body class="body" bgcolor="#CCCC99">

I previewed the page in both Firefox and IE where the background was present. When I published the page, the background color is missing on both browsers.

What have I done wrong?

A sample is available at http://www.sweetwaterkayaks.com/newsletter/current-tours.htm





jaybee -> RE: Browsers don't show the background color that appears in the preview with those browsers. (3/10/2008 19:24:27)

Take the bgcolor out of the body line and change the body styling in the css file

.body {
	font-family: "Times New Roman", Times, serif;font-size: xx-small;letter-spacing: 0em;background-color: #FFFFFF;}




4Ds -> RE: Browsers don't show the background color that appears in the preview with those browsers. (3/11/2008 18:10:17)

Great! Thanks.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.15625