SearchSearch   

Best way to fill the foreground of an area?

 
   Webmaster Forums (Home) -> CSS RSS
Next:  'overflow-x' issue on a nested in IE  
Author Message
planb

External


Since: May 20, 2007
Posts: 4



(Msg. 1) Posted: Sun May 20, 2007 2:05 am
Post subject: Best way to fill the foreground of an area?
Archived from groups: comp>infosystems>www>authoring>stylesheets (more info?)

Hello,

I working on a form with a table with altenating background colors.
I want the colors to print when the page is printed, and despite the
fact that this form is going to be for my own personal use, I don't
want to tell the browser to print background colors when printing.

It's currently working using borders and relative positioning, but is
there a better way?

Using inline CSS, my current code is:


<div style= "width:400px; height: 2.5em;">
<div style="border-bottom: 2.5em solid E9E9E8;
float:left; width:400px;height:0px;line-height:0px;">
</div>

<div style="position: relative; top: -2.5em; left: .25em;">
<span style = "font: italic small-caps 900 12px times;">
some words go here <br />
and then some more.<br />
and yet more.
</span>
</div>
</div>

--
JBM
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> CSS
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum