I have some code which displays a page as a .jpg according to user input and also displays html links to a previous page, next page, previous chapter, next chapter as so:
$out = "<img src=\"/images/{$pic}.jpg\" alt=\"Page {$page}\" />";
if ($prevChapter > 0) $out .= "<a href=\"/mybook.php?chapter={$prevChapter}\">Prev Chapter</a>";
and so on................
The trouble is that the links are all squashed up together, even one on top of another, so you can't see the complete working (i.e. 'next page') and don't know what link you'll get when you click on them.
I need some spacing or some newlines or something to sort it out.... anyone can help?