CSS triangle containing text

For your plan B (to center the text within the triangle both vertically and horizontally), which I prefer as solution, you could add this css rule: .up p { text-align: center; top: 80px; left: -47px; position: relative; width: 93px; height: 93px; margin: 0px; } Try it here: .up { width: 0px; height: 0px; border-style: inset; … Read more

What is the algorithm for finding the center of a circle from three points?

Here’s my Java port, dodging the error condition when the determinant disappears with a very elegant IllegalArgumentException, my approach to coping with the “points are two far apart” or “points lie on a line” conditions. Also, this computes the radius (and copes with exceptional conditions) which your intersecting-slopes approach will not do. public class CircleThree … Read more