|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
The opposite of *
I have a column on a Nuke site which is getting pushed too wide. The info I'm giving is a domain name and I can put spaces after the . in the name
ie bots.pcpropertymanager.com becomes bots. pcpropertymanager. com and I don't have my problem, but it looks horrible. What I'd like is a code to put inplace of the . or just after to tell the browser that it's ok to break now if necessary. any ideas anyone? |
|
#2
|
|||
|
|||
|
RE: The opposite of *
you could use preg_replace to strip out spaces:
$string=preg_replace("/ /", "","bots. pcpropertymanager. com"); |
|
#3
|
||||
|
||||
|
RE: The opposite of *
Sorry, can't have explained properly. I'm putting the spaces in to allow the browser to wrap the text.
What I need is someway of telling the browser that although there aren't spaces it's ok to break the string "here". I've been using spaces because I didn't know a better way. |
|
#4
|
|||
|
|||
|
RE: The opposite of *
Can you post a link to it? I just want to make sure we are thinking the same thing.
|
|
#5
|
||||
|
||||
|
RE: The opposite of *
take a look at
http://bots.pcpropertymanager.com/#lv39 I've temporarily put in the normal text and the "spaces" option. |
|
#6
|
|||
|
|||
|
RE: The opposite of *
cant you just put a <br /> where you want it to wrap at?
|
|
#7
|
||||
|
||||
|
RE: The opposite of *
In this case yes, but another user may have a long domain name and I don't want to have to be alerted everytime a domain gets added so I can see if it's too long, and where the right place to break is.
Right now I'm not getting many added every day but that could change. |
|
#8
|
|||
|
|||
|
RE: The opposite of *
|
|
#9
|
|||
|
|||
|
RE: The opposite of *
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > The opposite of |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|