rizwansyed Posted October 4, 2018 Share Posted October 4, 2018 Hi I need a text to insert in a horizontal thick line. How to do it.Please suggest Thanks and Regards Rizwan Syed Link to comment Share on other sites More sharing options...
JMRKER Posted October 4, 2018 Share Posted October 4, 2018 Expand upon as necessary ... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> HTML5 page </title> <style> span { background-color: red; color: white; text-align: center; font-size: 2em; display: inline-block; width: 20em; } </style> </head> <body> <span> Hello world! </span> </body> </html> Link to comment Share on other sites More sharing options...
JMRKER Posted October 4, 2018 Share Posted October 4, 2018 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> HTML5 page </title> <style> span { background-color: red; color: white; text-align: center; font-size: 2em; display: inline-block; width: 20em; } </style> </head> <body> Message <span> Hello world! </span> contents </body> </html> Link to comment Share on other sites More sharing options...
dsonesuk Posted October 4, 2018 Share Posted October 4, 2018 OR maybe https://www.w3schools.com/code/tryit.asp?filename=FVWUUVJZRHKB Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now