1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Change h1 Formatting in CSS

Discussion in 'Search Engine Optimization (SEO)' started by Safari, Jul 17, 2009.

  1. Safari

    Safari New Member

    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
     
  2. shabbir

    shabbir Administrator Staff Member

    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;}
     
  3. naimish

    naimish New Member

    h1 { font-size: 11pt; display:inline;}

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

    Safari New Member

    Yeah it worked as expected :D
     
    naimish likes this.
  5. nimesh

    nimesh New Member

    Even I was troubled with the line break problem.

    Thanks.
     
  6. shabbir

    shabbir Administrator Staff Member

    The pleasure is all mine :D
     

Share This Page