1. Open the file that contains your CSS styles. Though the tag is obsolete, you can create a new element to add to any part of a page to center text within its ... 2. Create a class that centers text. The tag will tell your HTML document to reference a specified section of text, so you'll create a class for that tag. Type ... 3. Add the text-align property. Type text-align: center; into the space between the two curly brackets in the div.a section. The header should now look like this:
確定! 回上一頁