1

Topic: How to control the properties of the links generated by extern.php

Hi there,

I am trying to incorperate a latest posts section into the main page of my site.

You can see my attempt on a test page here (its at the bottom):

http://www.everything.ie/index2.php

What I want to be able to do is to control the properties of the links generated (colour, rollover colour etc.) The main page of the punbb.org site seems to do this but I can't work out how.

Can someone let me know what to do?


Thanks in advance,
Robert

Re: How to control the properties of the links generated by extern.php

Just add class="whatever" in extern.php. I think you should be able to find it if you look a little harder :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by blob 2004-07-06 23:27)

Re: How to control the properties of the links generated by extern.php

Thanks Rickard,

I'm not quite sure what you mean though.

Can I control the appearance of the text through adding class="whatever" in extern.php?

I am used to controling links through css so I'm not sure of what to do on a .php page.

I tried searching the forum but no luck.

Hopefully you can help out.

Thanks,
Robert

Re: How to control the properties of the links generated by extern.php

Well, yes. You do it yourself on your page. class="cfmaincat", class="cfsubcat" etc.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5 (edited by blob 2004-07-07 16:51)

Re: How to control the properties of the links generated by extern.php

Thanks Rickard,

I've got it working at the bottom of this page

http://www.everything.ie/index2.php

I adjusted the max subject length in extern.php so the links would not be truncated.
The table I'm going to be using to display the links is wide enough for any link to fit on one line as you can see.

Yet one of the links "Anyone had any luck getting a Job through everything.ie..." is being broken into two lines half way through. What do I adjust so each full link (regardless of length is displayed on one line?

Thanks


Robert

Re: How to control the properties of the links generated by extern.php

The fact that it's broken up into two lines has to do with your tables I guess. Have a look at the markup (view source). There's no linebreak there.

"Programming is like sex: one mistake and you have to support it for the rest of your life."