css draw a line before and after text code example Example: css text line in middle h2 { text-decoration: line-through; }