The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Add line add every 700 of the page.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #172914

    Hi Guys,

    I want to add a line at every 700px of the div.. dynamically.. please help…

    Abhijit P.


    What do you mean by “a line”?


    Thanks for reply..

    I am trying to create application where user can write a book , a chapter or article.

    Now. I have created a div and enabled the contentEditable = true.

    The user goes on writing. He / She might not understand where the page starts and end, for that we need to mark a page end , it could be <hr> , or a image at every 700px from the top of the div.

    Abhijit Pawar.


    Not sure how that would work but the fixed amount of 700px seems kind of arbitrary depending on the element width.

    I think the calculation might be a little more complex than you might be envisaging. What about font-size, a character count, whitespace and then provide a warning that a new page is required after a certain point.

    However, that’s waaaay beyond any skills I have.


    Thanks for Reply Paulie..

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.