Forum Moderators: not2easy
I've coded the background to be white in body, wrapper, page, and maintext (and para.). But since it only happens when the text is enlarged -- I don't see how any of that can help -- and it hasn't.
I'm totally baffled. (Why only THIS file, too?!)
Any ideas? Thanks,
Elenor
Does adding background to <html> help?
html, body {
background-color: #fff;
}
Also could try to rest with
* {
background-color: #fff;
}
The second probably won't work, because the universal selector is the weakest and already over-ridden by something else.
The below is the file-specific (in file) html. (Some added trying to make the black go away.
#maintext h2 {
text-align: left;
font-size: 160%;
margin-top: 2em;
background: #f0f8ff url(../art/yelback.jpg) repeat right top;
}
h3 {
border: none;
background: none;
text-align: left;
}
.small {
font-size: 80%;
border: none;
}
#maintext a {
line-height: 1.4;
}
.translated {
font-size: 98%;
text-align: center;
}
#ToC-list-wide {
width: 80%;
}
.backtocurrent {
font-size: 116%;
text-align: center;
margin-top: 1em;
margin-right: auto;
margin-bottom: 0.9em;
margin-left: auto;
background-color: #f0f8ff;
border: 1px solid #4682b4;
width: 80%;
}
.backtocurrent a:link, .backtocurrent a:visited {
display: block;
color: black;
padding: 0.1em 0.6em;
margin: 0;
text-decoration: none;
background: #f0f8ff url(../art/h2-7a.gif) repeat-x bottom center;
}
.backtocurrent a:hover {
display: block;
padding: 0.1em 0.6em;
margin: 0;
text-decoration: none;
background: #f0f8ff url(../art/h2-7.jpg) top center repeat-x;
}
* {
background-color: white;
}
#all-ftr * {
background-color: #f0f8ff;
}
===================
(and, now this too:
html, body {
background-color: #fff;
} )
I'll dig out the external style sheet bit that might apply in my next message.
Possible codes relating to this problem from the global stylesheet. (You can see I've added the background-white all over the place... Tried it in the para code, made no difference so I took it back out.)
====================
body {
margin: 0;
padding: 0;
background-color: white;
color: black;
font-family: Constantia, "Palatino Linotype", Palatino, Georgia, Times, "Times New Roman", serif;
}
#wrapper { /* start after header closes, sets pages width */
width: 96%;
max-width: 44em;
margin: 0 auto;
background-color: white;
}
#page { /* start (immediately) after wrapper, sets text width */
max-width: 42em;
font-family: Constantia, "Palatino Linotype", Palatino, Georgia, Times, "Times New Roman", serif;
line-height: 1.2;
margin: 0 auto;
font-size: 110%;
width: 100%;
background-color: white;
}
#main-text {
margin-left: 0;
text-align: left;
font-size: 100%;
width: 100%;
background-color: white;
}
p {
text-align: left;
font-size: 100%;
line-height: 1.25;
width: 42em;
}
====================
From the 'text-object' style sheet:
body{ /* puts notebook paper behind body */
background: #ffffff url(../art/noteppr3.jpg) repeat left top;
}
The file is on the site <snip>
I appreciate ANY help you can give -- I get by okay with regular HTML and CSS -- but not the weird problems like this!
Elenor
[edited by: swa66 at 7:06 pm (utc) on Nov. 7, 2009]
[edit reason] specifics removal, please do not try to lead readers to a site. [/edit]
At any rate, I plugged in the code sample provided and saw no problem as described regarding the black background and Firefox 3.5.1, Opera, or IE7. Zoomed away and everything fine (except for IEs horrendous zooming issues. Hard to work a problem that I can't replicate.
IE patches the OS weekly; they can't build a browser? Or buy one that works and slap their on their brand?
The second is probably the better choice (so they won't do it... {eye roll})
Thanks so much for trying D Blackwell. I keep hoping someone somewhere has had the same sort of idiot problem and has found a workaround.
There is nothing in any style sheet or file that has a black background, so I'm not even sure where it could be coming from. I'll ask over on the Firefox forum...