Home |
Search |
Today's Posts |
#1
|
|||
|
|||
CSS layout question
Hi,
I have an ASP.Net project that uses HTML to output a Word document. I use inline to format the document, but I have one problem: I want to use Word's feature to keep a paragraph together (Paragraph layout, keep together). The Visual Basic line of code is: Selection.ParagraphFormat.KeepTogether = True The CSS code would be: p {page-break-inside: avoid} Word does not support this feature. Does anyone know how I would solve this problem? Thanks in advance |
#2
|
|||
|
|||
"ASP.Net programmer" wrote in
: Hi, I have an ASP.Net project that uses HTML to output a Word document. I use inline to format the document, but I have one problem: I want to use Word's feature to keep a paragraph together (Paragraph layout, keep together). The Visual Basic line of code is: Selection.ParagraphFormat.KeepTogether = True The CSS code would be: p {page-break-inside: avoid} Word does not support this feature. Does anyone know how I would solve this problem? Thanks in advance I solved this by putting the content of the page in tables, because for some ******up reason, only the tr tag supports page-braek-inside: avoid. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Reading Layout View Problematic as Default Word Attachment View | Page Layout | |||
Print layout | Microsoft Word Help | |||
new doc is in web layout from template word XP | Page Layout | |||
Print layout formatting problem | Page Layout | |||
Word 2003: Reading Layout changes page numbers in TOC | Page Layout |