I've got a div whose width is specified as a percentage so that if you
shrink the browser window, the div shrinks, and the text inside the div
wraps around to accommadate this. The problem is: if I put a really
long word (like a web address) in the div, then it props the rest of
the text open to the width of the word, and the text can't wrap past
that width; but if I shrink the browser window, the div also shrinks
and so the net result is that the words end up running outside of the
div. Is there a way to somehow force a word wrap in this case, or
otherwise solve the problem? 9 9640
"Joel Byrd" <jo******@gmail .com> wrote: if I put a really long word (like a web address) in the div, then it props the rest of the text open to the width of the word, and the text can't wrap past that width;
Well, then don't do that.
You're not supposed to put web addresses onto web pages as visible (or
audible) content but into attributes such as href. It's much more user-
friendly to have a link text and not a mile-long cryptic URL, or even a
reasonable URL.
Rare exceptions mostly consist of tutorial that _discuss_ web addresses.
There the best strategy is put <wbr> into critical places. There will be
remarks about <wbr> not being standard, but it's still the only practical way
to suggest potential breaks without causing trouble. More on this: http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest
P.S. CSS has nothing to offer in this respect at present, not even at the
theoretical level.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Well, I personally, would generally not put a full url as a link, but
the site I'm dealing with is a site like myspace, with a profile page
where people can put whatever content they want. But, thanks for your
reply and the link - it was quite informative.
"Joel Byrd" <jo******@gmail .com> wrote: Well, I personally, would generally not put a full url as a link, but the site I'm dealing with is a site like myspace, with a profile page where people can put whatever content they want.
That's what I suspected. The solution is to put limits on what people can put
there - or accept the consequences. If you set up, say, a guestbook where
people can put just anything, they will, sooner or later - and you cannot
expect to fix this by styling. You need control over content.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Joel Byrd wrote: Well, I personally, would generally not put a full url as a link, but the site I'm dealing with is a site like myspace, with a profile page where people can put whatever content they want. But, thanks for your reply and the link - it was quite informative.
I take it that there's no possibility of using something like scripting
to parse the content, and if necessary "chop up" lengthy character
sequences?
--
AGw.
Just out of curiosity, how does
goooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooogle
handle word-wrap?
Ok, that's interesting - looks like they check for length and add a
to break up the word. Hmmm....­ doesn't show up when I
tried adding it to a web page. Is anyone familiar with ? I
mean it renders as a dash on this page, but I'm not sure why I can't
see it on my own web page.
Another test, lets see what is does with a really long link:
http://www.w3schools.c om/vbscript/vbscript_exampl esadsfadsfasdfj ijwijoieljsdlif jljmbkjnblkmlml bkmlsimblimlsim alimslvmblskamv lismalimbsambli amfsblimfdsilbm nalidsfmbmblbmn lianflbianslvba lfkblasvblanlvb adsfblkalklviaj nsjvliasjdvlijs alidfjlksajfdlk ajsldfkjlakjsdf lkj.asp"> http://www.w3schools.com/vbscript/vb...lakjsdflkj.asp
Ok, how does that look?
Ok, they just put "..." in the address you see on the page while
retaining the full href in the html. yeah, that works. (not quite
sure why it listed it twice with a ">" between them, though...).
Joel Byrd wrote: Ok, they just put "..." in the address you see on the page while retaining the full href in the html. yeah, that works. (not quite sure why it listed it twice with a ">" between them, though...).
Have you ever heard of alt.test?
--
Jack.
Joel Byrd <jo******@gmail .com> scripsit: Ok, that's interesting - looks like they check for length and add a to break up the word.
Who? Where? What? And what was the relation to stylesheets?
Is anyone familiar with ?
Yes, but what are talking about, and why are you talking about it here?
If you mean posting to Usenet via Google Groups, that's a bad idea, and it's
not a stylesheet issue.
--
Yucca, http://www.cs.tut.fi/~jkorpela/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael Gaab |
last post by:
How would I force the compiler to throw an error for the following:
function signature -
void foo(short);
function call -
foo('d');
My compiler does not complain when I call foo() with a character argument.
I am assuming that the compiler does some type casting or that char's are
|
by: John Baker |
last post by:
Hi:
I have a query which supports a form. Te form is used to edit, update and change records
in the table the query is based on. It all works fine EXCEPT that the "New" record (blank
updatable record) always appears as the end of the form (i.e. the bottom), whereas it
would be very helpful if it appeared at the beginning (the top of the form).
Can anyone suggest a way to make this happen?
Regards
|
by: Sami |
last post by:
Problem:
Social Security number being used in a database. First problem is
that it will not permit numbers beginning in zero to be entered - it
sees it as a null or empty space from what I can tell.
Next, foreign students have & as the initial part of their SSN. How
to do this??
Finally, how do I force the cursor to the far left of the field so the
|
by: MuZZy |
last post by:
Hi,
I got a situation here :) an dwonder if someone can help me.
I have an MDI app and say, the child form has a button, clicking on which calls a database
transaction - grabbing a lot of tables to the form's TDataSet variable. One transaction grabs about
10 or more Mb of data.
If i do several transactions, the memory occupied by the app goes say goes up to 180Mb - i watch it
in Task Manager.
Now i close the child form, and...
|
by: orekin |
last post by:
Hi There
I have been programming C# for a couple of months and am trying to
master Threading.
I understand that ThreadPool uses background threads (see code example
in MSDN page titled 'ThreadPool Class ') .... however I would like
to ensure that all my ThreadPool threads have completed before I exit
my Main function.
| |
by: Neo The One |
last post by:
I think C# is forcing us to write more code by enforcing a rule that can be
summarized as 'A local variable must be assgined *explicitly* before reading
its value.'
If you are interested in what I mean, please look at this feedback my me:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=3074c204-04e4-4383-9dd2-d266472a84ac
If you think I am right, please vote for this feedback.
|
by: MWells |
last post by:
I have a simple project server which shares files from within our network.
The ASP.NET front end uses a database to authenticate users, and then based
on their permissions, reaches across the network to various project folders
and enumerates the files within. When clicked on, the file is retrieved and
streamed back across the network to the webserver and then back to the
requestor.
All of this works great; however, since the original...
|
by: teeBull |
last post by:
Hi all,
We'd like to take advantage of code we already have for transforming
XML into HTML (using XSLT) for our users to save the HTML as an MS Word
document locally. I've dug around and found the following code to
include in the code behind:
Response.ContentType = "application/vnd.ms-word"
Response.AddHeader("Content-Disposition",
"inline;filename=someFile.doc")
|
by: camphor |
last post by:
hi all,
I have a webpage with just images and am using a liquid layout for my css, go to http://www.christinebec.com/About CB/selected_editorials.htm to see what I am talking about, after the last image (vogue shops) on the page, I want to force a new line so I can add a new heading "catalogues" and then put more images under this heading.
This is my attempt:
<br class="clearboth">
<div id="contents">
<h2>CATALOGUES</h2></div>
<div...
|
by: evenlater |
last post by:
I have an Access application on a terminal server. Sometimes my users
need to export reports to pdf, rtf or xls files and save them to their
own client device hard drives.
They can do that right now the way I have this set up, but it's
confusing and slow. When they browse for a place to save the reports,
they see all of the drives on the terminal server as well as their own
client drives. So they're likely to want to choose "My...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |