How to apply an ID from Internal Style Sheets
To apply an ID from Internal Style Sheets
Step 1.
-
Note the name of the desired ID from the Style Sheet window.
Step 2.
-
In the Source view of the document window, find the paragraph or block of text to which you want to assign the ID, and remove all other formatting to reduce the risk of ambiguity.
Step 3.
-
If the text that you have to reformat is a paragraph, hand-edit the
tag by inserting the ID as an attribute in the start tag.
-
For example, if the ID name is #headerbox, edit the code as follows:
Your original source code looks like this:
TravelEZ
After you insert the ID attribute, your source code should look like this:
TravelEZ
Step 4.
-
If the text that you have to reformat is a block of text within a paragraph, you will have to enclose that text in a or
tag and insert the ID as an attribute in the start tag. -
For example, if the ID name is #headerbox, edit the code as follows:
Your original source code looks like this:
Welcome to TravelEZ
After you insert the tag with the ID attribute, your source code should look like this:
Welcome to TravelEZ
Step 5.
-
Switch back to Layout view is to view the effect.
-
If you are not satisfied with the result, select the ID style in the Style Sheet window, and edit its properties as desired.
No comments:
Post a Comment