How to remove bold from title?

I have a title:

<h1>THIS IS A HEADLINE</h1> 

How to make the phrase "THIS ..." not bold, but the rest unchanged? could not find any relevant tag in the text layout.

+46
css xhtml
Nov 10 '11 at 11:51
source share
9 answers

The title looks bold due to its large size, if you apply bold or want to change the behavior, you can do:

 h1 { font-weight:normal; } 

More details: http://www.w3.org/TR/css3-fonts/#font-weight-prop

+83
Nov 10 '11 at 11:54
source share

Try font-weight:normal;

 h1 { font-weight: normal; } 
+9
Nov 10 '11 at 11:54
source share
 <h1><span style="font-weight:bold;">THIS IS</span> A HEADLINE</h1> 

But make sure h1 is checked

 font-weight:normal; 

You can also set the style with the id or class attribute.

+6
Nov 10 '11 at
source share

You want font-weight , not text decoration (along with suitable additional markup, such as <em> or <span> ), so you can apply different styles to different parts of the header)

+4
Nov 10 '11 at 11:53
source share
Style

corresponds to vis css. Example

 <h1 class="mynotsoboldtitle">Im not bold</h1> <style> .mynotsoboldtitle { font-weight:normal; } </style> 
+2
Nov 10 '11 at 11:57
source share

you can just do it in the html part:

 <span>Heading Text</span> 

and in css you can make it as an h1 block using the display:

 span{ display:block; font-size:20px; } 

you will get it as h1 without courage,
if you want it to be in bold just add it to css:

 font-weight:bold; 
+1
Jun 04 '13 at 1:52
source share
 <h1><span>This is</span> a Headline</h1> h1 { font-weight: normal; text-transform: uppercase; } h1 span { font-weight: bold; } 

I'm not sure if this was just to show us, but as a note, you should always type in uppercase using CSS :)

0
Nov 10 '11 at 15:07
source share

for "THIS" should not be bold - add <span></span> around the text

 <h1>><span>THIS IS</span> A HEADLINE</h1> 

and in style

 h1 span{font-weight:normal} 
0
Apr 16 '13 at 15:50
source share

You can use font-weight:100 or lighter: this works with ie Opera 16 and later, but I don’t know why the h1 tags in Firefox are bolder, sorry.

0
Aug 22 '14 at 14:25
source share



All Articles