[advanced search]
Results from the most recent live auction are here.
23 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Web Design Discussion
User Name
Password

Old 02-27-2008, 07:54 AM   · #1
broke-r
NamePros Member
 
broke-r's Avatar
 
Trader Rating: (10)
Join Date: Apr 2005
Posts: 172
NP$: 36.00 (Donate)
broke-r is on a distinguished roadbroke-r is on a distinguished road
Help! 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!


Please register or log-in into NamePros to hide ads
broke-r is offline   Reply With Quote
Old 02-27-2008, 08:54 AM   · #2
monaco
NamePros Regular
 
monaco's Avatar
 
Location: Tucson, AZ
Trader Rating: (0)
Join Date: Jul 2005
Posts: 649
NP$: 22.50 (Donate)
monaco is on a distinguished road
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?
__________________
My Website | My Blog
monaco is offline   Reply With Quote
Old 02-27-2008, 01:41 PM   · #3
broke-r
NamePros Member
 
broke-r's Avatar
 
Trader Rating: (10)
Join Date: Apr 2005
Posts: 172
NP$: 36.00 (Donate)
broke-r is on a distinguished roadbroke-r is on a distinguished road
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...
broke-r is offline   Reply With Quote
Old 02-27-2008, 02:39 PM   · #4
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 681.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
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.
Daniel is offline   Reply With Quote
Old 02-28-2008, 02:03 AM   · #5
broke-r
NamePros Member
 
broke-r's Avatar
 
Trader Rating: (10)
Join Date: Apr 2005
Posts: 172
NP$: 36.00 (Donate)
broke-r is on a distinguished roadbroke-r is on a distinguished road
Yes Daniel, the overflow property worked just fine!

Thank you very much guys! Rep added!!
broke-r is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
http://www.internetinvestments.com/ Proof is in the Parking Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 12:06 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0