markknowsley
Programmer
Hi,
I would normally use tables to layout text on a web form, but I've been having a go at using CSS to do the same and found that it is much more powerful.
My question regards the spacing of lines; normally I would use the <tr> command and insert web controls such as labels inside. I could control the vertical spacing between each control by using the
syntax.
Now I'm using CSS, I would like to know the best way to set the vertical height. If I use the <p></p> syntax to essentially create new table rows inside a <div> how can I control the vertical height, or is there a better way than using <p></p>?
Thanks in advance.
I would normally use tables to layout text on a web form, but I've been having a go at using CSS to do the same and found that it is much more powerful.
My question regards the spacing of lines; normally I would use the <tr> command and insert web controls such as labels inside. I could control the vertical spacing between each control by using the
Code:
style="height: 10px";
syntax.
Now I'm using CSS, I would like to know the best way to set the vertical height. If I use the <p></p> syntax to essentially create new table rows inside a <div> how can I control the vertical height, or is there a better way than using <p></p>?
Thanks in advance.