For styling of your website you should add Cascading Style sheet (CSS) code. The CSS code plays your website as colorful. The user see your website very great looks.
In blogger websites has built in CSS code are there for display/Layout your websites like header, body , widgets according to template view style. If you add more style ,as you need , so add Custom CSS code into blogger websites.
For blogger websites can add Custom CSS code has some tricky ways. Mainly adding Custom CSS code into blogger has 4 following ways.
- Global adding Custom CSS code
- Inline adding Custom CSS code
- Widget level adding Custom CSS code
- External adding Custom CSS code
Global adding Custom CSS code
Adding of additional Custom CSS code , that works all pages in website, you should add at <head> section. So that code effects in all pages throughout website.
For these follow Steps as
Step 1: Login to blogger.com website.
Step 2: Go to Dashboard >> Theme option ,
pre {
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #f36d33;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 14px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-break: keep-all;
}
You can add more number of repeated CSS code adding, that can effect for all web pages.Inline adding Custom CSS code
<div style="border: 0px; color: #797979; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-----
-----
</div>
Normally Inline CSS apply with Style attribute to any tag.
Widget level adding Custom CSS code
<style>
#example1 {
border: 1px solid;
padding: 10px;
box-shadow: 5px 10px;
}
#example2 {
border: 1px solid;
padding: 10px;
box-shadow: 5px 10px #888888;
}
#example3 {
border: 1px solid;
padding: 10px;
box-shadow: 5px 10px red;
}
</style>
<div id="example2">
<p>You can also define the color of the shadow. Here the shadow color is grey.</p>
</div>
<div id="example3">
<p>A red shadow.</p>
</div>
Note: That Custom CSS code apply to only that widget/gadget only.
External adding Custom CSS code
<head> <link rel="stylesheet" href="mystyle.css"> <link href='//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css' rel='stylesheet'/> </head>Note: Above code effect all web pages in that website.
0 Comments:
Post a Comment