Change h1 Formatting in CSS

Safari's Avatar, Join Date: Oct 2007
Ambitious contributor
I want to use <h1> tags in my header but I do not want the text to be huge like the default <h1>.

I have tried something like:
h1 {
font-size: 11;
}

Also whenever I have h1 I dont know why but the content does not remain in one line

Say

This is something that should not be in h1 and<h1> this should be in h1</h1>

Outputs

This is something that should not be in h1 and
this should be in h1

But I want it to be

This is something that should not be in h1 and this should be in h1
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It should work

h1 { font-size: 11pt; }

Just add pt

Also for the line break problem add display:inline;

h1 { font-size: 11pt; display:inline;}
naimish's Avatar
Banned
h1 { font-size: 11pt; display:inline;}

Seems its works for me....what about you Safari ?
Safari's Avatar, Join Date: Oct 2007
Ambitious contributor
Yeah it worked as expected
nimesh's Avatar, Join Date: Apr 2009
Invasive contributor
Quote:
Originally Posted by shabbir View Post
It should work

h1 { font-size: 11pt; }

Just add pt

Also for the line break problem add display:inline;

h1 { font-size: 11pt; display:inline;}
Even I was troubled with the line break problem.

Thanks.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by nimesh View Post
Even I was troubled with the line break problem.

Thanks.
The pleasure is all mine