/    Sign up×
Community /Pin to ProfileBookmark

Where’ve My Carriage Returns Gone?

I have a webpage which I constructed solely by using the help of others. Because I’ve got precious little skills and this page uses some pretty clever tricks, far beyond me – like no matter how much I study it I still don’t know how it does what it does. But I like it. It’s great.

The foreground scrolls and the background remains still.
The background has numerous areas that contain a link – ‘click’ and you go off to that link.

The URL’s of these links are associated with page coordinates in the code.
Very nice to have them all listed top to bottom, easy to read, easy to edit.

The problem is that for some reason only the first four or so will remain in a list, one line under the other. The remainder all join together in a long straggle that goes off the page to infinity on the right. Apparently carriage returns are cast out as soon as I put them in.

You can see this behaviour for yourself if you look at the source code for mbccc.net

Or if you can’t I’d like to know why it happens to me and not you.

Note it happens when I take the page into NVU for editing, too.

Can anyone point a finger at what’s going on here?

And if anyone has a critique of the page – knows of a better way to implement this good trick, I’d like to hear it, too.

regards,

ab

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMar 05.2009 — instead of carriage returns insert a <br /> tag
Copy linkTweet thisAlerts:
@WebJoelMar 05.2009 — I see a few deprecated ("old") tags being used, a few small validational warnings and a missing !doctype identifier. -Page looks a bit different in IE than is does in Firefox.

I would opt for a semantic approach, -for these are 'paragraphs' being used, but there is not one "<p> </p>" in the entire document. :o If those were used, you could get rid of all of the outdated "<br>" tags, and the block-level "<p>" tag would provide all the top & bottom margins required. then you can specify width making this page 'fluid' for different browsers.

But all-in-all, there is little wrong here. What it would take to totally fix this up is about 10 or 15-minutes. :-)
Copy linkTweet thisAlerts:
@IndreshSinghMar 05.2009 — I have no idea........
Copy linkTweet thisAlerts:
@FangMar 05.2009 — Just press Enter after each array item and save.

There is no indication of a link. Why would anyone then click on the page? It's pointless.

The text is difficult to read with such a dark background.
×

Success!

Help @abrogard spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...