...

View Full Version : Spacing between two blocks of text...



1957Goldtop
07-21-2011, 09:06 PM
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>

teedoff
07-21-2011, 09:38 PM
If I understand you correctly, you can just add

margin-bottom: 0;

to your nameLogo div.

1957Goldtop
07-21-2011, 09:50 PM
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!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum