HTML Help Needed: Removing Gap Under Big Text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eMonk
    Confirmed User
    • Aug 2003
    • 2310

    #1

    HTML Help Needed: Removing Gap Under Big Text

    i'm using a 30 px font in my title but it creates a large unwanted gap right under it. is there a way to remove this whitespace?
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #2
    using an <h1> tag?
    Use css to remove the margins.

    <h1 style="margin: 0px;">Title</h1>
    This is me on facebook
    This is me on twitter

    Comment

    • eMonk
      Confirmed User
      • Aug 2003
      • 2310

      #3
      Code:
      .title { 
      font-size: 30px; font-family: "Trebuchet MS"
      }

      Comment

      • The Truth Hurts
        Zph7YXfjMhg
        • Nov 2002
        • 15732

        #4
        try using line-height set the same as your font size.
        Last edited by The Truth Hurts; 04-10-2008, 06:05 AM.

        Comment

        • fluffygrrl
          So Fucking Banned
          • May 2006
          • 2187

          #5
          This thread is useless without either link or else html quote.

          Comment

          • skrinkladoo
            Confirmed User
            • Oct 2007
            • 629

            #6
            If you paste the code or a link to the html code, or send it via ICQ - I can help you.
            It's just next to impossible to do it blind.
            *** Andrew Love ***

            Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development,
            (5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting

            Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627

            Comment

            • severe
              Confirmed User
              • Dec 2007
              • 331

              #7
              Originally posted by The Truth Hurts
              try using line-height set the same as your font size.
              yeah sounds like line-height would fix it, maybe smaller font size though. some fonts are odd like that.

              Comment

              • Eriic
                So Fucking Banned
                • Jan 2008
                • 2995

                #8
                User a spacer.gif and size it very small

                Comment

                • quantum-x
                  Confirmed User
                  • Feb 2002
                  • 6863

                  #9
                  Probably the h* issue to. As suggested, just remove the margin.
                  Does using H1, H2 tags still have SEO relevance?
                  PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                  Comment

                  • MediaGuy
                    Confirmed User
                    • Sep 2004
                    • 5500

                    #10
                    Like they said, it's hard to determine without the page as an example.

                    My guess/contribution would be to create an h1 style like so:

                    h1 {display: inline;
                    font-size: 30px;}

                    or if the title is a class or element:

                    .title {display:inline;
                    font-size: 30px;}

                    #title {display:inline;
                    font-size: 30px;}

                    The display:inline; attribute will remove the auto-linebreak of h and other tags in css.

                    You might want to float:center the thing too if what follows your title wants to wrap to it...

                    YOU Are Industry News!
                    Press Releases: pr[at]payoutmag.com
                    Facebook: Payout Magazine! Facebook: MIKEB!
                    ICQ: 248843947
                    Skype: Mediaguy1

                    Comment

                    • eMonk
                      Confirmed User
                      • Aug 2003
                      • 2310

                      #11
                      HTML
                      Code:
                      <div align="center" class="title">GFY Rocks The Box</div>
                      CSS
                      Code:
                      .title { 
                        font-size: 30px; font-family: "Trebuchet MS"
                      }
                      i tried adding 'display:inline;' into my css title tag but i'm not sure if that did what i was looking for because it aligned my title left when its suppose to be centered. any ideas?

                      Comment

                      • p!nk
                        Confirmed User
                        • Jun 2006
                        • 124

                        #12
                        Code:
                        .title { font-size: 30px; font-family: "Trebuchet MS";
                        line-height: 2px;
                        margin: 0px;
                        }
                        try that
                        Last edited by p!nk; 04-10-2008, 01:51 PM.
                        no sig

                        Comment

                        • eMonk
                          Confirmed User
                          • Aug 2003
                          • 2310

                          #13
                          Originally posted by p!nk
                          try that
                          thanks bro.. i believe this is what i was looking for... but i had to make some minor adjustments to the line-height value...
                          Code:
                          .title { 
                            font-size: 30px; font-family: "Trebuchet MS";
                            line-height: 30px;
                            margin: 0px;
                          }
                          i'm using <body topmargin="0" bottommargin="0"> in my html file so when line-height is set to anything lower then 30 then my title gets cut off at the top.

                          Comment

                          • Angry Jew Cat - Banned for Life
                            (felis madjewicus)
                            • Jul 2006
                            • 20368

                            #14
                            Originally posted by Eriic
                            User a spacer.gif and size it very small
                            go back to 1997...

                            Comment

                            • skrinkladoo
                              Confirmed User
                              • Oct 2007
                              • 629

                              #15
                              glad to here you got that covered. nice work p!nk
                              *** Andrew Love ***

                              Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development,
                              (5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting

                              Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627

                              Comment

                              Working...