SimplePortal

Customization => Custom Coding => Topic started by: Tonymura on November 26, 2014, 03:57:39 AM

Title: Links appearing as one continuous line
Post by: Tonymura on November 26, 2014, 03:57:39 AM
Ok this will be a fairly simple one for you guys with more experience but for me i am still scratching my head.
The issue i am having is my links are appearing as one continuous line.
For example
i have  (Google Yahoo Google drive Statutory declaration NSW fair trading contact us Bunnings warehouse) ....appearing in my blocks.
I would rather prefer having it look like this....

Google
Yahoo
Google drive
Satutory Declaration
Nsw fair trading
Contact Us
Bunnings Warehosue

The code i have set up looks like this below
<a href="httpxxxx://www.google.com.au">Google</a>
<a href="httpxxxx://www.yahoo7.com.au">Yahoo</a>
<a href="httpsxxxx://www.google.com/drive/">Google Drive</a>
<a href="httpxxxx://www.ag.gov.au/Publications/Documents/CommonwealthStatutorydeclarationform.PDF">STATUTORY DECLARATION </a>
<a href="httpxxxx://www.fairtrading.nsw.gov.au/ftw/About_us/Contact_us/Fair_Trading_Centres.page">NSW Fair Trading</a>
<a href="mailto:xxxxxxxxxxxxx">Contact Us</a>
<a href="httpxxxx://www.bunnings.com.au/">Bunnings Warehouse</a>

I know i need to place something in between to separate this and allow it to start a new paragraph .
Problem is i just dont know enough about this script to get me out of trouble.
Could someone please assist me here.
I am pretty sure it should be that difficult.
Title: Re: Links appearing as one continuous line
Post by: andy on November 26, 2014, 07:27:30 AM
<br>

There are many html 'school' site on the internet for this kind of thing. Better to try and search on internet "why links are not on a new line html" before asking for support.

Support is free here and limited so you should think about trying to find yourself - I put that in google and here are lots of answers.

http://www.google.com/search?q=why+links+are+not+on+a+new+line+html
Title: Re: Links appearing as one continuous line
Post by: Tonymura on November 26, 2014, 01:57:35 PM
I actually did as this question in StacksOverflow, all they told me is to ask this question here.
No problem i will just add the <p> before and after the </p> it should do the trick for now.
A bit spaced out but at least its noticeable.
Thanks for your help.
Title: Re: Links appearing as one continuous line
Post by: andy on November 27, 2014, 02:03:37 AM
There is more than one way to do it.

BTW
Correction, I should have said "<br>" without the slash.
Title: Re: Links appearing as one continuous line
Post by: Burke Knight on November 27, 2014, 05:29:40 AM
To be XHTML compliant, the slash should be there: <br />
Title: Re: Links appearing as one continuous line
Post by: [SiNaN] on November 28, 2014, 04:51:02 PM
I would say a list is more suitable for what you are trying to achieve but both line breaks (<br>) and paragraphs (<p>) should work fine.
SimplePortal 2.3.8 © 2008-2024, SimplePortal