Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help using div tag 1

Status
Not open for further replies.

dugen

Programmer
Jun 16, 2003
59
US
Hi,

i am using css media = print to make a printer friendly version of a webpage.

My style sheet is currently doing what i need it to do, but the text that is printing starts out in the middle of the page. I need the text to print at the top of the page.

How do i make this table row with the flash movie in it collapse so that the printable text starts at the top of the page?


Here is the code by the row with the flash movie (i have inserted a div tag to make the flash movie not display.):


<TR>
<TD WIDTH=677 HEIGHT=304 valign="bottom" style="background-image:url(images/bg_main.gif); background-position:top; background-repeat:no-repeat ">
<div id="head" style="margin-left:9px;">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" width="661" height="302">
<param name="movie" value="flash/header-inner.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash/header.swf"
width="661" height="302" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value=" FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></div>

</TD>
</TR>

____________________________

Style Sheet Code:

table {display: none;}
#printTable {display: block;}
#main {display: block;}
#table1 {display: block;}
#table2 {display: block;}
#table3 {display: block;}
#head {display: none;}
 
Why not just hide all object tags instead of putting unnecessary markup around the tag for the sole purpose of hiding it?
Code:
table {display: none;}
#printTable {display: block;}
#main {display: block;}
#table1 {display: block;}
#table2 {display: block;}
#table3 {display: block;}
[s]#head {display: none;}[/s]
[!]object {display:none;}[/!]

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top