Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Search Engine Optimization (SEO) (http://www.go4expert.com/forums/seo-forum/)
-   -   Change h1 Formatting in CSS (http://www.go4expert.com/forums/change-h1-formatting-css-t18589/)

Safari 17Jul2009 20:13

Change h1 Formatting in CSS
 
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 17Jul2009 21:24

Re: Change h1 Formatting in CSS
 
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 18Jul2009 08:41

Re: Change h1 Formatting in CSS
 
h1 { font-size: 11pt; display:inline;}

Seems its works for me....what about you Safari ?

Safari 18Jul2009 12:16

Re: Change h1 Formatting in CSS
 
Yeah it worked as expected :D

nimesh 18Jul2009 21:30

Re: Change h1 Formatting in CSS
 
Quote:

Originally Posted by shabbir (Post 52884)
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 18Jul2009 21:36

Re: Change h1 Formatting in CSS
 
Quote:

Originally Posted by nimesh (Post 53017)
Even I was troubled with the line break problem.

Thanks.

The pleasure is all mine :D


All times are GMT +5.5. The time now is 10:51.