Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Spacing between two blocks of text...

    Needless to say I'm very new to HTML/CSS. I've been figuring out everything on my own so far but I'm stuck on this one... I'm trying to get the spacing right on this text and it's not working. The page is extremely basic so it's rather embarrassing I can't figure it out.

    Here is a link to the page:
    http://jeffsingerphotography.com/newindex.html

    I can get the spacing right within the two blocks but not between the two blocks. I need remove the space between the top block and bottom block.

    Any help appreciated.

    Here's the relevant code:
    #namelogo
    {
    text-decoration: none; color: #ffffff; font-size: 150px; line-height:80%;
    }

    #infologo
    {
    text-decoration: none; color: #ffffff; font-size: 12px; line-height:110%
    }

    ...

    <p id="namelogo">
    <a title="Enter Website" href="http://jeffsingerphotography.com">
    TTTT<br>TTTTTT</a>
    </p>

    <p id="infologo">
    TTTT TTTTT TTTTTTTTT<br>
    TTTTTTTTTTT<br>
    TTTTTTTTT TT TTTT<br>
    +N NNN NNNN
    </p>
    Last edited by 1957Goldtop; 07-21-2011 at 08:08 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    If I understand you correctly, you can just add

    margin-bottom: 0;

    to your nameLogo div.
    Teed

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I figured it out... I was using "p id" and changed it to a "div id" and that got the spacing to work.

    But now all the text jumped to the top of the page and I wanted it centered (it was when using "p id".

    Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •