Cascading Style Sheets WordPress (wp css)
CSS is stand for Cascading Style Sheets that is a language for web developer use to decoration website interfaces that written by HTML and XHTML language.
There are three ways to write css.
1. Inline CSS or Inline Styles:
a way that use write the attribute of style to the relement html tags, which it can contain any CSS property codes.
Now join an example code of inline style:
<div style="border:solid thin red; width:100px; height:350px; color:blue;">
This is an article that you want to show on your website.
</div>
It is a way that we coding with a single html file that we define it in the head section of document page.
<head>
<style type="text/css">
body {background-color:gray; font-size:12px; text-lign:center;}
p {color:blue; padding:10px;}
</style>
</head>
An external style sheet is a css file use to modify many pages in your project. in wordpress the standard of style sheet is style.css and like to index file by using <link> tag. and it in the head section of website.
and many worpress developer they always device index file into many file like: header.php home.php, footer.php, sidebar.php ...
but style.css like to a file that is a header of website in general is header.php
and liking of style sheet in head section of website file.
example:
<head>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
</head>
0 comments:
Post a Comment