darkmage784
09-20-2005, 10:56 PM
I'm using XML and XSL to create a template for reports. I want the title of sections in the margin. Here is my code(in the xsl template):
<html>
<head>
<style type="text/css">
div{margin-left: 2cm; width: 10px; }
</style>
</head>
<body>
<b>Section One</b>:
<div><xsl:value-of select="//partOne" /></div>
</body>
</html>
I do not want it to break between the div and the title in the margin, but I do want it to wrap. display: inline fixes the break, but messes up the wrapping. Does anyone have a solution for this?
<html>
<head>
<style type="text/css">
div{margin-left: 2cm; width: 10px; }
</style>
</head>
<body>
<b>Section One</b>:
<div><xsl:value-of select="//partOne" /></div>
</body>
</html>
I do not want it to break between the div and the title in the margin, but I do want it to wrap. display: inline fixes the break, but messes up the wrapping. Does anyone have a solution for this?