Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The styling on the body element screws up other pages included through iframes (like FCKEditor boxes). The solution I used was to assign an id to the main body, and then only style on the ID. I used this HTML in page.tpl.php:
<body id="mainpage">
And this in style.css:
body {
font-family: "Helvetica neue", Helvetica, Arial, Verdana, sans-serif;
font-size:12px;
margin: 0;
padding: 0;
min-width: 800px;
}
body#mainpage {
background: #5b90c4 url("images/bg-header.png") repeat-x top left;
color: #555555;
text-align: center; /* IE5 hack */
}
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedBetter late than never, could you define "screws up", just want to get a handle on what the actual issue is/was.
Comment #2
scottgifford CreditAttribution: scottgifford commentedYeah, sorry, I should have been more clear. It displayed the body style's background image for the page in the IFRAME. In this case, the theme had a black background and the IFRAME was showing an FCKEditor window, so I was typing black text on a black background.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedArrr, yes I see, a common problem, will look into it, thanks for the bug report & suggested fix.
Comment #4
ari-meetai CreditAttribution: ari-meetai commentedYeah, same problem here with 6.x. Will try the suggested id solution.
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedAnother solution is to go to fckeditor settings and use the fckeditor css rather than the themes css.