adsense

How to Use a Div With WordPress





1. Sign in to your WordPress account. Hover your mouse over the Appearance pane and choose 'Editor.' Open the 'style.css' file.
2. Scroll to the bottom of the document. Type in a name for your div class and specify attributes that you want the text to have. For example, if you want to create a div called 'newdiv' with font size 14 and black text, you use the following code:.newdiv {font-size: 14px; color: #000;}Save the CSS file.

3. Click the name of HTML or PHP file to which you want to apply the div's formatting. Find the text that you want to style and enclose it within 'div' tags as in this example:
Your text goes here
Save the document. Load the page in a new browser window to verify that your div displays as you intend.

Comments

0 Responses to "How to Use a Div With WordPress"

Post a Comment

Popular Posts

About