Home » , » Cascading Style Sheets WordPress (wp css)

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.

2.Internal Style Sheet: 
It is a way that we coding with a single html file that we define it in the head section of document page.
<style type="text/css">
body {background-color:gray; font-size:12px; text-lign:center;}
p {color:blue; padding:10px;}

3.External Style Sheet: 
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.


<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

Share this acticle :


Post a Comment


Proudly powered by Blogger