Editing HTML directly

C

Chuck Duchon

Does FrontPage "step" on code entered directly on the HTML page.

I am trying to insert the following to force a page break when (for
printing) <tr class="page"></tr>

I an get it to work but once the page is published I look at the HTML and my
code is gone....
 
R

Ronx

FrontPage will remove or change any HTML it considers to be illegal or badly
formed.
An empty row <tr></tr> is illegal HTML, it must contain at least one cell -
which can be empty (FrontPage will place a &nbsp; in empty cells).

Try the following:
<tr><td class="page" colspan="xxx"><img src="images/transparent.gif"
width="1" height="1" alt=""></td></tr>

Replace xxx with the number of columns in the table. The row will display
as a 1px high gap in the table, and the .page definition will need to turn
off top and bottom borders for the cell.

You will need a transparent .gif image.
 
C

Chuck

Ron,

I already have a table cell defined with the text pagebreak in the cell.
It's hidden since it's the same color as the table background and it let's
me quickly add the code that FP is stripping out.

This code works like I want it to:


<td width="100%" height="19"><font color="#336699">pagebreak</font></td><tr
class="page"></tr>



FrontPage changes it to this:



<td width="100%" height="19"><font color="#336699">pagebreak</font></td>



Would the following code "work"?



<td width="100%" height="19" class="page"><font
color="#336699">pagebreak</font></td>



Chuck
 
T

Thomas A. Rowe

I insert page breaks in HTML / Code View as:

<DIV style="page-break-before:always"></DIV>

before or after a complete table, I never break the table.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

Chuck

Thomas,

I laid out a 24 row (single column) table and then nested a table formatted
as a calendar into every other cell.

So... I need a method for forcing a page break on the 24 row table, so the
Calendars will print on individual pages.

If there's a way to format 12 individual tables (calendars) without the
"parent" table your approach would work for me.... but I couldn't figure out
how to do it without the 1x24 table behind my calendars.

Chuck
 
R

Ronx

<DIV style="page-break-before:always">
calendar month 1 goes here
</DIV>
<DIV style="page-break-before:always">
calendar month 2 goes here
</DIV>
.....
<DIV style="page-break-before:always">
calendar month 12 goes here
</DIV>
 
Top