I'm trying to build a web page that displays the results of a long web form. On the actual form I have inputs with labels:
but on the print out I have linked the labels to spans so they are not user editable.
The only problem I have (well, so far!) is that when I print or resize the page, the labels are not attached to the span so you end up with
What I would like is for the label to always be in front of the data. Is this possible? How do you guys go about printing web forms after they have been filled in. I can see this being a major stumbling block to the whole project.
One more thing, I'd like it in XHTML 1.1 & css if possible, but I'll take whatever you get me!
Cheers
Ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
NoFX-The Decline
----------------------------------------------
Code:
<label for="fname" id="name_p">Forname(s):</label><input name="fname" type="text" id="fname" />
but on the print out I have linked the labels to spans so they are not user editable.
Code:
<label for="fname" id="name_p">Forname(s):</label><span id="fname">Ben</span>
The only problem I have (well, so far!) is that when I print or resize the page, the labels are not attached to the span so you end up with
with O'Hara on the next line.Forame:Ben Surname:
O'Hara
What I would like is for the label to always be in front of the data. Is this possible? How do you guys go about printing web forms after they have been filled in. I can see this being a major stumbling block to the whole project.
One more thing, I'd like it in XHTML 1.1 & css if possible, but I'll take whatever you get me!
Cheers
Ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"

----------------------------------------------