Centering & Formatting Text on Your Web Page

From TheBestLinux.com
Revision as of 05:08, 15 December 2022 by Jamie (talk | contribs)
Jump to navigation Jump to search

This is how you can format text on your web page, making it centered, changing the font size and color, and other options. Here is an example of how I change font alignment, size and color on the fly, without having to manage a separate CSS file:

<p style="text-align:center; font-size:42px; fg-color:red;">
Here is the text which will be now be centered with a font size of 42 pixels and green in color.

And here is the resulting line with the style modified with our example:

Here is the text which will be now be centered with a font size of 42 pixels and RED in color.