Working with the style sheet

The next thing we will do is include our style sheet:

  1. Open the style.css file and enter the following code:
      body{
background:#000;
}
  1. Save this and reload; we'll not get a black background as the style sheet is not being read:
  1. In order for that style sheet to be seen, we'll enter the following code:
      <!DOCTYPE html>
<html <? php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet"
href="<?php bloginfo('stylesheet_url'); ?>">

The preceding code will get the style sheet from the correct location.

  1. Save this code and reload. We can now see a black background:

So whatever we put in our style sheet will now be registered.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.166.31