Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Allowing Widows and Orphans

  • 2 απαντήσεις
  • 0 έχουν αυτό το πρόβλημα
  • 4 προβολές
  • Τελευταία απάντηση από Jaws

more options

Changing Default Behavior (CSS)

When I'm reading on a computer screen, I hatehatehatedespisehatehatehate "widow and orphan" control. This is especially annoying when reading a long narrative passage that reflows so that a break (often a blank paragraph) falls at the bottom or top of a column/page. There are two relevant CSS properties, each taking a nonzero positive integer as an argument:

    widows: [number of lines]
    orphans: [number of lines]

It appears that Firefox has (like most browsers) established a "default" value of 2 in each of these parameters, which seldom appear in site-specific stylesheets. Do Not Want.

Is there a way to change this default behavior to the equivalent of:

    body {
         widows: 1;
         orphans: 1;}

without either (a) breaking anything or (b) having to redo whatever change every time there's a Firefox update?

'''Changing Default Behavior (CSS)''' When I'm reading on a computer screen, I hatehatehatedespisehatehatehate "widow and orphan" control. This is especially annoying when reading a long narrative passage that reflows so that a break (often a blank paragraph) falls at the bottom or top of a column/page. There are two relevant CSS properties, each taking a nonzero positive integer as an argument: widows: [number of lines] orphans: [number of lines] It appears that Firefox has (like most browsers) established a "default" value of 2 in each of these parameters, which seldom appear in site-specific stylesheets. Do Not Want. Is there a way to change this default behavior to the equivalent of: body { widows: 1; orphans: 1;} without either (a) breaking anything or (b) having to redo whatever change every time there's a Firefox update?

Όλες οι απαντήσεις (2)

more options

Where did you get that css that your using?

Χρήσιμο;

more options

That is code that works if embedded in the stylesheet for an individual webpage (or epub using any of a variety of epub readers). (Obviously there may well be other styles embedded in the body element.) By setting the CSS properties to "1", it overrides — for that page only — the browser/reader-within-browser default behavior of "2". I'm asking how to change the default for Firefox (on my machines) so that I don't have to suffer through this for pages whose code I can't control (like 99.99998% of the 'net).

Χρήσιμο;

Υποβολή ερώτησης

Πρέπει να συνδεθείτε στον λογαριασμό σας για να απαντήσετε σε δημοσιεύσεις. Ξεκινήστε μια νέα ερώτηση εάν δεν διαθέτετε ακόμα λογαριασμό.