13 replies [Last post]
welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Right, after 90 mins i give up. All im trying to do is breadcrumbs, but each link goes on a seperate line.

[url]
www.cookieonline.net
[/url]

All is well, untill you press on contact us - then it goes to pot. WHY!?!?!?!?

Much appreciated.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 39 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Links force new line, a bit inconvinient in breadcrumbs!!!

You will have to explain better what it is that you are having a problem with, I can see no anomalous behavior with your breadcrumb as described!

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

jlhaslip
Offline
Enthusiast
Last seen: 13 years 20 weeks ago
Timezone: GMT-6
Joined: 2006-02-02
Posts: 199
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

It isn't a CSS problem. Check your php script to ensure the script is including the anchor code for the breadcrumb.
I chose the 'contact us' page, did a view source and the html is doing exactly what it is being told to do. There is most likely a php script problem there. You want the script to do something like this:

echo '<a href=' . $var_name . '" \/>';
*not tested*

where $var_name is the name of the current page. It seems to be outputting the $var_name, but not the anchor tag code wrapping around it. Might also be spitting out a newline character or an html br tag, too.

That should point you along the trail. Good luck with it.

I'm having a good day...so far.

welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

Honestly, its nothing to do with the php. in fact, i can put lots of links following each other, and they all appear on a new line: like

<a href="./index.php">Welcome &gt;&gt;</a> <a href="./index.php">Contact &gt;&gt;</a>

It outputs on different lines, making a new line and box for each link!!

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 16 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

Hmm much like Hugo I can't see this on the link you provided above, what browsers are you seeing this behavior in?!?

welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

you need to press on the contact link to make the second link appear

firefox and ie

welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

OOPS!! Sorry... i meant

www.cookieonline.net/index.php

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 39 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Links force new line, a bit inconvinient in breadcrumbs!!!

Yes we understood that! and lo and behold a second entry for the current page appears inline with the first/root link.

As Briski asked what browser/s are you observing this in?

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

Sorry about that, it would have helped if I gave you the right information. I registered here last night after I gave up!

I'm sure one of you lot can crack it Wink

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 39 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Links force new line, a bit inconvinient in breadcrumbs!!!

welshblokemiles wrote:
Sorry about that, it would have helped if I gave you the right information. I registered here last night after I gave up!

I'm sure one of you lot can crack it Wink

Sorry, but what on earth are you on about? crack what ? do you not get the fact that we can see nothing wrong.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 16 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

Ah that's better now we're looking at the same thing.

There are at least two things wrong.

Fisrtly you breadcrumb thing is a class not an id so use

.breadcrumbs not #breadcrumbs.

But the actual problem is because of this.

.sectionLinks a:link, a:visited { border-top: 1px solid rgb(204, 204, 204);
    padding: 2px 0px 2px 10px;
    display: block;
	text-decoration:none;
	  color: rgb(0, 102, 153);
    }

specidicalls the display block and the a:visited. dicplay block makes the links start on a new line, which is fine for what you want in the sectionLinks bit. But you have bad selectors. you really want

.sectionLinks a:link, .sectionLinks a:visited

you have to add the full selector to each of the comma seperated parts, they are quite seperate from one another.

.sectionLinks a:link, a:visited

means apply stuff to all links whithing somehting with a sectionLinks class AND all links that are in the Visited state - ie most links on the page which is not what you want.

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 16 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

Hugo wrote:
welshblokemiles wrote:
Sorry about that, it would have helped if I gave you the right information. I registered here last night after I gave up!

I'm sure one of you lot can crack it Wink

Sorry, but what on earth are you on about? crack what ? do you not get the fact that we can see nothing wrong.

Hugo.

The new link does point to a page that's in error luckily, we're not going mad after all Yay! Laughing out loud

welshblokemiles
Offline
Regular
Last seen: 16 years 31 weeks ago
Joined: 2006-03-06
Posts: 20
Points: 0

Links force new line, a bit inconvinient in breadcrumbs!!!

I LOVE YOUUUUUU!!!!!!!!!!!!!!!!

Bejesus Mary Joseph, that was like pulling teeth..... I have spent 2 hours on this problem alone, all caused by one word missing. I never looked at that block, because it was not supposed to affect then breadcrumbs!

I'm a Software Engineer by trade, so I should be used to this kind of fun and games :oops:

Cheers once again, I shall become a regular visitor here Laughing out loud

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 39 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Links force new line, a bit inconvinient in breadcrumbs!!!

Oh I see, you updated the link, say so next time

Well that was a lot of fun Smile glad it's solved and that we weren't going mad!

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me