CSS - Wrapping very last text to another line if it doesn't fit

Nassou

New Member
I have a link at the very end of 4 paragraphs. Something like:\[code\]Here is my text, and it's just an example of text to showAnd I am wanting to wrap the last bit of text, which happensto be a link, but I need the link to either stay on the linethat is the available width and not break to another line,unless it can't fit left-aligned on that line like thishttp://mylink.com\[/code\]So, the actual code for this would be as follows in HTML:\[code\]<p>Here is my text, and it's just an example of text to showAnd I am wanting to wrap the last bit of text, which happensto be a link, but I need the link to either stay on the linethat is the available width and not break to another line,unless it can't fit left-aligned on that line like this<br /><a href="http://mylink.com">http://mylink.com</a></p>\[/code\]I am using \[code\]<br />\[/code\] here, but I don't want to use \[code\]<br />\[/code\] because the screen captures how much text actually shows and sometimes it could look like this:\[code\]Here is my text, and it's just an example of text to show And I am wanting to wrapthe last bit of text, which happens to be a link, but I need the link to either stayon the line that is the available width and not break to another line, unless it can't fit left-aligned on that line like thishttp://mylink.com\[/code\]So, in a situation like above, I would need it to not use a \[code\]<br />\[/code\] tag to break it up and it should render like this instead:\[code\]Here is my text, and it's just an example of text to show And I am wanting to wrapthe last bit of text, which happens to be a link, but I need the link to either stayon the line that is the available width and not break to another line, unless it can't fit left-aligned on that line like this http://mylink.com\[/code\]Is this possible to do via CSS? Some \[code\]text-align\[/code\] value perhaps, or something else in order to accomplish this without using \[code\]<br />\[/code\] tags at all? But if the link can fit on the line naturally, than it shouldn't move to the next line down. Instead it should stay on that line.Thanks!
 
Back
Top