How to print a table of information in Java
You can use System.out.format(…) Example: Result: Or use the following code for left-aligned output:
You can use System.out.format(…) Example: Result: Or use the following code for left-aligned output:
I’m trying to justify the text within this p tag so that it perfectly fits the width of the p. but the text just wont justify! any idea why? thanks for any help.
Change the rule on your <a> element from: to Just add two new rules (width:100%; and text-align:center;). You need to make the anchor expand to take up the full width of the list item and then text-align center it. jsFiddle example