This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Front Page > September 2004 > Editing HTML directly





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Editing HTML directly
Chuck Duchon

2004-09-29, 4:15 am

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....



Ronx

2004-09-29, 7:14 am

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.

--
Ron

Reply only to group - emails will be deleted unread.


"Chuck Duchon" <cduchon@yahoo.com> wrote in message
news:Zcq6d.26192$uk1.2999@fe2.columbus.rr.com...
> 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....
>
>
>



Chuck

2004-09-29, 7:17 pm

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


"Ronx" <ronx917@hotmail.com> wrote in message
news:eaevw$fpEHA.1816@TK2MSFTNGP09.phx.gbl...
> 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.
>
> --
> Ron
>
> Reply only to group - emails will be deleted unread.
>
>
> "Chuck Duchon" <cduchon@yahoo.com> wrote in message
> news:Zcq6d.26192$uk1.2999@fe2.columbus.rr.com...
>
>



Thomas A. Rowe

2004-09-29, 7:17 pm

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)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Chuck" <cjduchon@yahoo.com> wrote in message news:hAA6d.135622$787.41399@fe2.columbus.rr.com...
> 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
>
>
> "Ronx" <ronx917@hotmail.com> wrote in message
> news:eaevw$fpEHA.1816@TK2MSFTNGP09.phx.gbl...
>
>



Chuck

2004-09-29, 7:17 pm

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

"Thomas A. Rowe" <tarowe@mvps.org> wrote in message
news:OmoA5tjpEHA.644@tk2msftngp13.phx.gbl...
>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)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Chuck" <cjduchon@yahoo.com> wrote in message
> news:hAA6d.135622$787.41399@fe2.columbus.rr.com...
>
>



Ronx

2004-09-29, 7:17 pm

<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>

--
Ron

Reply only to group - emails will be deleted unread.


"Chuck" <cjduchon@yahoo.com> wrote in message
news:cWB6d.135636$787.132550@fe2.columbus.rr.com...
> 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
>
> "Thomas A. Rowe" <tarowe@mvps.org> wrote in message
> news:OmoA5tjpEHA.644@tk2msftngp13.phx.gbl...
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews