 |
Results from the most recent live auction are here.
19 members in the live chat room. Join Chat!
| |
02-27-2008, 07:54 AM
|
· #1 | | NamePros Member Join Date: Apr 2005
Posts: 172
NP$: 36.00 ( Donate)
| Long url in multiple lines (not in just a very long one) How can I break very long URLs (generated dynamically) in two or more lines?
The "code":
<table>
<td>URL:</td><td>PHP_GENERATED_URL</td>
</table>
On the table above, if the link is very long, my page looks pretty ugly as everything moves to the right.
I have tried divs with css (word-wrap etc.), fixed width, but nothing seems to work.
Any ideas? Thanks! |
| |
02-27-2008, 08:54 AM
|
· #2 | | NamePros Regular Location: Tucson, AZ Join Date: Jul 2005
Posts: 649
NP$: 22.50 ( Donate)
| Are you trying to do something like "host.com/somet...blah.php" where you replace the bulk of the url with an ellipsis? Or something else? Do you just want the url to wrap to many lines in the table? |
| |
02-27-2008, 01:41 PM
|
· #3 | | NamePros Member Join Date: Apr 2005
Posts: 172
NP$: 36.00 ( Donate)
| Thanks for the reply monaco.
No, I don't want an ellipsis. Just need to make the url break/split in several lines, (instead of just one), in order for long urls to stop making my site "stretch" to the right.
I have used word-wrap but it doesn't do the trick... |
| |
02-27-2008, 02:39 PM
|
· #4 | | Danltn.com Name: Daniel Neville Location: Danltn.com / Nottingham, UK Join Date: May 2007
Posts: 1,185
NP$: 681.56 ( Donate)
| At a guess, the CSS overflow property could hide excess text or the PHP wordwrap function could ensure it's a fixed length.
Last edited by Daniel : 02-27-2008 at 02:44 PM.
|
| |
02-28-2008, 02:03 AM
|
· #5 | | NamePros Member Join Date: Apr 2005
Posts: 172
NP$: 36.00 ( Donate)
| Yes Daniel, the overflow property worked just fine!
Thank you very much guys! Rep added!! |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |