Problem with Link formatting - Post...

User 431255 Photo


Registered User
8 posts

Hello,

I'm having a problem with links in the body of my pages.
There is probably a simple, simple answer but, I have no idea. I've checked my code, there are no break lines specified. I'm at a loss.

The link should be in the middle of the sentence, such as

"Click *Here* for blah, blah, blah"

Instead its formatting it as

"Click

*Here*

for blah, blah, blah"

You can see an example here www.glitteratiproductions.com/RH_Home.html

Thanks in advance!
User 364143 Photo


Guest
5,410 posts

Replace this

<P><STRONG>
Robert Hilliard<BR>RHilliard@GlitteratiProductions.com
<P></STRONG>Click <A href="http://www.glitteratiproductions.com/page38.html">here</A> for Robert's Hair &amp; Make-up Portfolio</P>

With this

<P><STRONG>Robert Hilliard<BR><a href="mailto:RHilliard@GlitteratiProductions.com">
RHilliard@GlitteratiProductions.com</a></STRONG></P>
<P>Click <A href="http://www.glitteratiproductions.com/page38.html">
here</A> for Robert's Hair &amp; Make-up Portfolio</P>

NOTE: You need to be aware of tag formation. You close tags in exactly the opposite order you opened them.

This is correct.

<p><strong><u>text</u></strong></p>

This is wrong

<p><strong><u>text</u></p></strong>
CoffeeCup... Yeah, they are the best!
User 431255 Photo


Registered User
8 posts

Thanks for you reply Tom! I replaced the code with what you had provided and i'm still experiencing the same problem. The actual link in on a different line from the text before and after it. :-\

www.glitteratiproductions.com/RH_Home.html
User 364143 Photo


Guest
5,410 posts

Notice the edit in my post. When I copied and paste, the forum jacked my code.

This

<P><STRONG>Robert Hilliard<BR><a href="mailto:RHilliard@GlitteratiProductions.com">
RHilliard@GlitteratiProductions.com</a></STRONG></P>
<P>Click <A href="http://www.glitteratiproductions.com/page38.html">
here</A> for Robert's Hair &amp; Make-up Portfolio</P>

Looks like this

Robert Hilliard
RHilliard@GlitteratiProductions.com

Click here for Robert's Hair & Make-up Portfolio
CoffeeCup... Yeah, they are the best!
User 431255 Photo


Registered User
8 posts

Thanks again!

I copied and pasted exactly as you indicated and checked to be sure the order of the coding was as you had pointed out to prevent getting anything wrong and i'm still getting the same result.

I really do appreciate your help though! I have no idea why it keeps doing this.
User 37670 Photo


Registered User
2,138 posts

I am jumping in a bit late here, but it looks like maybe a style sheet issue. For the link tag <a> you have this style:
a{display:block;color: #981793;padding:10px}

Maybe I am wrong, but the {display:block; part of that code may be telling the link to dispaly as a block element, so it wont't let anything else display on the same line of code. Try removing the display:block; so that the style for a looks like this:
a{color: #981793;padding:10px}
and see what happens.

Good Luck
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 37670 Photo


Registered User
2,138 posts

Now, if you find that you have too much space on either side of the link element, you can modify that on the same line of code:
a{color: #981793;padding:10px}
the padding increases as the number gets bigger, so a padding:2px will give less space around the link, making it look more natural.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 355448 Photo


Ambassador
3,144 posts

Cliff,

That is why I like reading your posts. There is always something for me to learn. I just looked at the site in question, and the block has been removed. I had looked all over and couldn't find anything, so I kept watching this topic. Now I have learned something NEW and will be playing with it soon just to see how I can use it.
User 431255 Photo


Registered User
8 posts

Better late than never I always say!

And a BIG thank you to you! You're suggestion worked!

There is still some spacing weirdness, but I am guessing if I tweak the padding value the space will decrease.

Thank you both for help!!
User 364143 Photo


Guest
5,410 posts

Yes. Good catch. I didn't even look at the style section. I guess that's why I'm not an E-Learning Specialist.
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.