user6898822
user6898822

Reputation:

How to put hyperlink on same line?

I was just wondering how to put a hyperlink after the text:

If you require any further information on PCSE, please visit the FAQ section of the PCSE website.- (HYPERLINK HERE)

<div class="panel-body">
<p>If you require any further information on PCSE, please visit the FAQ section of the PCSE website.-</p> <a href="http://pcse.england.nhs.uk/help/"></a>
</div>

Thanks

Upvotes: 0

Views: 91

Answers (3)

Ervis Trupja
Ervis Trupja

Reputation: 2810

You need to put the <a></a> tag inside the <p>...</p> tag. In your case the solution would look like:

<div class="panel-body">
     <p>
         If you require any further information on PCSE, please visit the FAQ section of the PCSE website.- <a href="http://pcse.england.nhs.uk/help/"></a>
     </p>
</div>

Upvotes: 0

user5328504
user5328504

Reputation: 764

Well, if div was big enought, it shouldnt break from starts.

Next, dont use "-". Dash character is used to break the line Instear, use a non breaking char : ‑

Upvotes: 0

Kinexus
Kinexus

Reputation: 12904

You are ending the <p> and then adding the <a>. If you include the <a> in the <p>, it should be fine.

<div class="panel-body">
<p>If you require any further information on PCSE, please visit the FAQ section of the PCSE website.- <a href="http://pcse.england.nhs.uk/help/"></a></p>
</div>

Upvotes: 2

Related Questions