Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make the text in the header of my table not bold?

I need to use a rowspan for my table, therefore I (believe) I must use a table header. However, using a table header makes my font bold, which is unwanted. For this HTML, how would I make sure the font in my table header isn't bold? Or, if it's possible, how can I use rowspan without using a table header?

<table border="1">
  <tr>
    <th rowspan="2">Telephone:</th>
<td>555 77 854</td>
  </tr>
  <tr>
    <td>555 77 855</td>
  </tr>
</table>
like image 324
Demi Avatar asked Mar 19 '15 00:03

Demi


People also ask

How do I change text from bold to normal?

Note: If you just need to convert to regular text, press Ctrl + B in the Find What box and then click in the Replace With box and press Ctrl + B twice. This tells Word to replace Bold with Not Bold.

How do I turn off bold text in HTML?

The easiest way would be to remove the <strong> tag from your HTML, but if you can't do that for some reason then just add font-weight:normal to that bit of the CSS.

How do I make my font bold in the header?

There are four tags you can use for bold and italic: <strong> and <b> for bold. <em> and <i> for italic.


2 Answers

Simply overhide the font-weight of the th element in CSS :

th{
    font-weight: normal;
}

JSBin : http://jsbin.com/lizakatuwe/1/

like image 119
Drown Avatar answered Sep 19 '22 12:09

Drown


You don't need table header at all, you can use rowspan with td too. To make it not bold, override the font-weight in css to normal.

like image 34
orion Avatar answered Sep 18 '22 12:09

orion