Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

using image as a "growing background image" without using the background tag

Avatar of nediam1234
nediam1234 asked on
CSS
5 Comments1 Solution285 ViewsLast Modified:
I use a background image (which is only few pixels in height) that "grows down" (repeat-y) as the text on the page grows.
My code works, except when I print the printer does not print the background image (since IE and FF are default not to print background images).
How is it possible to change the code so it works the same, but does not use the background tag so the image behind the text is printed out?

my code is as followed:

<style type="text/css">
#img_top{
  margin-left: 0px;
  position: relative
}

#the_center{
  background: url('center.gif') repeat-y;
  margin-left: 0px;
  margin-top: -4px;
  position: relative
}

#the_text{
  margin-left: 100px;
  position: relative
}

#img_bottom{
  margin-top: -5px;
  margin-left: -100px;
  position: relative
}
</style>


<div id="img_top">
  <img src="top.gif"/>
</div>  
 
<div id="the_center">
      <div id="the_text">
    text<br>text<br>text<br>text<br>
    text<br>text<br>text<br>text<br>
  <div>
</div>
 
<div id="img_bottom">
  <img src="bottom.gif"/>
</div>

ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers