This content has been marked as final. Show 2 replies
What you're doing is entirely contrary to HTML. The idea is that you mark up your paragraphs and the browser determines the layout, with some assistance from your CSS, but also depending on the user's choice of fonts, font size, window size, etc.
Having said that, it is indeed possible to get your vertical line spacing the way you want, with suitable CSS.
However, also, none of this is a Java question. The solution consists entirely of HTML markup and CSS styles.
915175 wrote:As EJP said, it is not and you could have easily reasoned that for yourself - there is nothing in your question that is about JSP programming. You could be creating a simple HTML page and still ask the exact same questions.
I am not sure if this question is relevant in this forum. But it is since JSP I posted here.
And that's what I advise you to do: don't try to do this in a JSP directly, just edit a simple HTML file + a CSS file and make it work there first. On top of that install the Firefox browser and install the Firebug plugin - this allows you to change the styles of the page which will be instantly visible without having to reload the page, which is an immense help to fix styling problems. Otherwise you'll be making a change, reloading the page, making a change, reloading the page, etc. etc.