Is there a way to align text within <th>
tags of a table so that it appears in a row-like fashion, rather than up and down? I want the headings to be level with each other.
For example, titles like Americas Center, Asheville, ..., Coopersville should be displayed in one row; XX% in the second row; Eligible: xxxx in the third row; Registered: xxxxx in the fourth row.
The desired result should look like this:
How can I achieve this alignment in the <th>
tags while keeping the background color consistent and without adding borders like the other rows have?
I have tried using <br/>
tags to separate the text, but it doesn't give the desired aligned look. Is there a way to display data in <th>
tags in a row-like format?
The code can be found here: https://jsfiddle.net/kirankapur/dka361qz/