Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 
BDFL - Memuneh
60569 posts

Uber Geek
+1 received by user: 11507

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 1423112 8-Nov-2015 12:20
Send private message

I tried lots of solutions, including CSS stuff but really each browser does it different and wrap words without considering spacing, etc.

At the end we just rely on people reporting long URLs. These only happen once or twice a week, really.






gzt

9808 posts

Uber Geek
+1 received by user: 1464


  Reply # 1423117 8-Nov-2015 12:39
Send private message

This one is interesting - two long links. The one in the quote block looks like a good wrap:

http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=183938&page_no=13

I assume the other one is the cause of failure.

2483 posts

Uber Geek
+1 received by user: 4

Trusted

  Reply # 1423122 8-Nov-2015 12:56
Send private message

gzt: I noticed in many the cause is a long hyperlink at the end of an existing line. Is it possible to force a break prior? Ie; where text and href are the same. That would prevent a fair proportion.

But what is a long term solution for this?


The problem really lies with the use of tables for layout. They're quite hard to get right, and table cells are generally flexible no matter how you try to style them, which causes all sorts of trouble such as browsers being unable to calculate the width of the container so that words can break properly.

(Think about it - if you have a flexible box, why is it that you need to break words? Why not just resize them to fit the content - which is exactly what happens.)

So the long term solution really is to properly use block elements and/or flexbox. However I do have something in mind for tables that I'll be posting soon.

gzt: This one is interesting - two long links. The one in the quote block looks like a good wrap:

http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=183938&page_no=13


That happens to break properly because it has a hyphen which generally breaks well in most browsers.

If I don't use nicely worded links...



EDIT: Fixed wording




Find me on Twitter!

I posted 1, 2 x 10^3 times!

2483 posts

Uber Geek
+1 received by user: 4

Trusted

  Reply # 1423123 8-Nov-2015 13:03
Send private message

Following on from my previous post: How about setting the table element that holds the main part of the thread and each forum post as "table-layout: fixed"?

I can't explicitly name the elements (because there are no class/ids frown) but applying them fixes them very easily in my short time messing about in my browser.

EDIT: Before you think that it's not possible to have variable widths with "table-layout: fixed" - it is possible!




Find me on Twitter!

I posted 1, 2 x 10^3 times!

BDFL - Memuneh
60569 posts

Uber Geek
+1 received by user: 11507

Administrator
Trusted
Geekzone
Lifetime subscriber

mdf

1797 posts

Uber Geek
+1 received by user: 514

Trusted
Subscriber

  Reply # 1427074 12-Nov-2015 17:46
Send private message

Finally pushed the button on the Win10 upgrade for my main machine. Looks even better than it did on Win8.1.

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 
View this topic in a long page with up to 500 replies per page Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.