![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to have a label followed by a line to the right margin, such as this: Label: __________________________________________________ ___________ |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I guess I'd best throw in my ugly hack. |
#5
| |||
| |||
|
|
In future don't waste our time if you are going to persist with a method after having been made aware that it is broken and having been given a proper solution. |
#6
| |||
| |||
|
|
I was not told the method was "broken", but simply ordered to use a different one. |
|
In fact it is not broken, for I demonstrated how to draw such a line from a label to the right margin. I recognized some weaknesses in my approach, and so I simply asked if there were a better way to do it in CSS. There may be reasons why I should choose PDF instead, but so far no one has said what they are. |
|
I did try to convert the HTML to PDF directly, but had a problem with a character that I'm using for a "checkbox": □, which is interpreted literally rather than as a character. This is not the forum in which to discuss this problem. I realize that the best approach to create a PDF is to go from TeX to PS to PDF, but since I already had a html file and no reason to think I couldn't draw the needed lines, I saw no reason to go to the extra trouble. |
#7
| |||
| |||
|
|
I was not told the method was "broken", but simply ordered to use a different one. In fact it is not broken, for I demonstrated how to draw such a line from a label to the right margin. I recognized some weaknesses in my approach, and so I simply asked if there were a better way to do it in CSS. There may be reasons why I should choose PDF instead, but so far no one has said what they are. |
#8
| |||
| |||
|
|
I would like to have a label followed by a line to the right margin, such as this: Label: __________________________________________________ ___________ There are ways to define lines having specific length, but I wanted one that would have variable length, surviving a change in display window size or font. I came up with the ugly markup below. It looks OK in a browser, but for some reason the line disappears when I print it. span.label { float: left; padding-right: 2px; } hr.line { border-style: solid; border-width: 1px 0 0 0; position: relative; top: 1em;} span class="label">Label:</span><hr class="line" / Is there a better way to go about this? |
#9
| |||
| |||
|
|
Haines Brown wrote: I was not told the method was "broken", but simply ordered to use a different one. In fact it is not broken, for I demonstrated how to draw such a line from a label to the right margin. I recognized some weaknesses in my approach, and so I simply asked if there were a better way to do it in CSS. There may be reasons why I should choose PDF instead, but so far no one has said what they are. What you're looking for is a method of transmitting material laid out specifically for the printed page. HTML is not designed for or well suited for that purpose. PDF is designed precisely for that purpose. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |