d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > 500 Fg For Help With A Page Overflow Problem > Using Css Or Javascript.
Add Reply New Topic New Poll
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Member
Posts: 6,991
Joined: Apr 16 2019
Gold: 50.00
May 6 2019 12:58pm
I don't understand why you wouldn't just do this;

Code
section {
width: 7.5in;
height: 10in;
box-sizing: border-box;
border: 1px solid black;
overflow:auto;
page-break-before: always;

}


Scratch that, because I guess you want to print it, hence the title ^^;

I'll poke at it for a min but I'm no expert in CSS

This post was edited by 3oDAtlas on May 6 2019 12:59pm
Member
Posts: 6,991
Joined: Apr 16 2019
Gold: 50.00
May 6 2019 06:52pm
To anyone who does this, I'd like to see the result. I've never really used CSS but what I found from little research is its not possible, must be done with JS (Which he allows) but still curious of the result.

It seemed to me like some small amount of the HTML needs to be edited (Adding in ID's)

But yeah, might have another crack tomorrow!
Member
Posts: 8,137
Joined: Feb 7 2018
Gold: 402.00
May 6 2019 11:13pm
Edit

This post was edited by Strickland on May 6 2019 11:42pm
Member
Posts: 4,103
Joined: Dec 4 2018
Gold: 870.16
May 7 2019 09:22am
Quote (3oDAtlas @ May 7 2019 01:52am)
To anyone who does this, I'd like to see the result. I've never really used CSS but what I found from little research is its not possible, must be done with JS (Which he allows) but still curious of the result.

It seemed to me like some small amount of the HTML needs to be edited (Adding in ID's)

But yeah, might have another crack tomorrow!


you are trying to add dynamic behavior to static elements (HTML text added to the container div) through CSS, which it cannot do by itself. you need dynamic behavior, e.g. a javascript script that creates the html container divs based on overflow.

This post was edited by Touta on May 7 2019 09:22am
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
May 7 2019 09:35am
Quote (Touta @ May 7 2019 11:22am)
you are trying to add dynamic behavior to static elements (HTML text added to the container div) through CSS, which it cannot do by itself. you need dynamic behavior, e.g. a javascript script that creates the html container divs based on overflow.


I think this is exactly true for the approach.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll