Asked By Jeff Adams
30-Jan-08 05:59 PM
On 2008-01-29 19:39:10 -0600, LennyHolland@googlemail.com said:
I think I've fixed my problem, hopefully this helps you too.
The only way I could get the background color in the datasheet view to
change was to change the color on the element. That meant I
needed another element that was unique enough I could target it with
CSS yet still wrapped the entire contents of the page.
Looking through the source code there is always a form tag (common with
.net I suppose) with the id="aspnetForm" just inside the body.
So I set the CSS in my theme like this:
body {
/* fake background color for ActiveX items like "Edit in Datasheet */
background-color: white;
}
form#aspnetForm {
/* real background color for the site */
background-color: #002842;
/* to be sure it fills the whole page vertically */
height: 100%;
}
Voila! White background for the datasheet views and other ActiveX
controls but still a dark blue background for the site as a whole.