I am trying to create a text editor and I thinking to have a horizontal ruler on the top so the user can set margins top bottom left right as desired.

Check here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.