Using Javascript or CSS, how can I add additional space at the end of a block of text, but only if it does not start on a new line?

If you wrap the content before the link in a span and apply a margin-right to that, you'll get the desired effect. (Unfortunately, this, too, is not really a nice solution).

Doing it backwards, clever! But yes, not exactly elegant :). – Daniel T.

Sep 10 at 1:35.

You could set a width on the paragraph and then float the span to the right. That way the (more...) remains on the the right always. Not exactly what you are after but I think it looks decent.

Example: jsfiddle.net/WFuBd/1.

1 for floating the span... – Wex Sep 10 at 1:46.

Why not use 2 div's. Div one floats left, div two floats right... Make sure overflow=hidden on div one, and (more...) is on div two. Div 1 lots of text i.e.

: 300px div 2(more...) i.e. : 40px It will look perfect every time. You'll have to play around with it to look right, but it'll work.

You could then just do a little jQuery when you click more...to show the rest and hide 'more'.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions