Showing posts with label CSS and HTMLTricks. Show all posts
Showing posts with label CSS and HTMLTricks. Show all posts

Create a Drop Down Menu In Blogger





Update: We have published almost 9 more menus like this one. To get them all just use the search box and type drop down menu. If you wish to add the same menu to Blogger Template Designer templates then read this post -> Custom Drop Down menu



image


Why do you run after scripts such as jquery while you can use simple CSS and HTML to create beautiful drop down menus for your blog. I already shared a list of 30 Navigation menus and now you need to learn how to create a drop down menu in a navigation. I am sharing a simple code here that can be fully customize to make your preferred changes. So lets get to work!





Live Demo





How To Create a Drop Down Menu?


A drop down menu is needed when you have too much content on your blog or you love keeping things organized. To add a drop down menu to your blogger blogs do this:


  1. Go To Blogger > Design > Page Elements

  2. Select a HTML/JavaScript Widget just under the header and paste the following code inside it,


drop down menu


<div id='mbtnavbar'>
      <ul id='mbtnav'>
        <li>
          <a href='#'>Home</a>
        </li>
        <li>
          <a href='#'>About</a>
       </li>
        <li>
          <a href='#'>Contact</a>
        </li>
  <li>
           <a href='#'>Sitemap</a>

            <ul>
                <li><a href='#'>Sub Page #1</a></li>
                <li><a href='#'>Sub Page #2</a></li>
                <li><a href='#'>Sub Page #3</a></li>
              </ul>

        </li>

      </ul>
    </div>

Replace # with your Page Links and the bolded text with relevant page names. The yellow highlighted code is responsible for the drop down menu. You can copy and paste it under any tab you want just before </li>

To add another tab just paste this code above </ul>


<li>

          <a href='#'>Tab Name</a>

        </li>

       

    3.   Now Go to Design > Edit HTML

    4.   Backup your template and search for ,


]]></b:skin>

     3.   Just above it paste the code below,


/*----- MBT Drop Down Menu ----*/


#mbtnavbar {
    background: #060505;
    width: 960px;
    color: #FFF;
        margin: 0px;
        padding: 0;
        position: relative;
        border-top:0px solid #960100;
        height:35px;

}


#mbtnav {
    margin: 0;
    padding: 0;
}
#mbtnav ul {
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
}
#mbtnav li {
    list-style: none;
    margin: 0;
    padding: 0;
        border-left:1px solid #333;
        border-right:1px solid #333;
        height:35px;
}
#mbtnav li a, #mbtnav li a:link, #mbtnav li a:visited {
    color: #FFF;
    display: block;
   font:normal 12px Helvetica, sans-serif;    margin: 0;
    padding: 9px 12px 10px 12px;
        text-decoration: none;
       

}
#mbtnav li a:hover, #mbtnav li a:active {
    background: #BF0100;
    color: #FFF;
    display: block;
    text-decoration: none;
        margin: 0;
    padding: 9px 12px 10px 12px;
       
   
       
}

#mbtnav li {
    float: left;
    padding: 0;
}
#mbtnav li ul {
    z-index: 9999;
    position: absolute;
    left: -999em;
    height: auto;
    width: 160px;
    margin: 0;
    padding: 0;
}
#mbtnav li ul a {
    width: 140px;
}
#mbtnav li ul ul {
    margin: -25px 0 0 161px;
}
#mbtnav li:hover ul ul, #mbtnav li:hover ul ul ul, #mbtnav li.sfhover ul ul, #mbtnav li.sfhover ul ul ul {
    left: -999em;
}
#mbtnav li:hover ul, #mbtnav li li:hover ul, #mbtnav li li li:hover ul, #mbtnav li.sfhover ul, #mbtnav li li.sfhover ul, #mbtnav li li li.sfhover ul {
    left: auto;
}
#mbtnav li:hover, #mbtnav li.sfhover {
    position: static;
}

#mbtnav li li a, #mbtnav li li a:link, #mbtnav li li a:visited {
    background: #BF0100;
    width: 120px;
    color: #FFF;
    display: block;
    font:normal 12px Helvetica, sans-serif;
    margin: 0;
    padding: 9px 12px 10px 12px;
        text-decoration: none;
z-index:9999;
border-bottom:1px dotted #333;

   
}
#mbtnav li li a:hover, #mbtnavli li a:active {
    background: #060505;
    color: #FFF;
    display: block;     margin: 0;
    padding: 9px 12px 10px 12px;
        text-decoration: none;
}

Make these changes:


  • Change #060505 to change background color of the Main menu

  • Change  the yellow highlighted text to change font color, size and family

  • Change #BF0100 to change the background of a tab on mouse hover

  • Change #BF0100 to change the background color of the drop down menu

  • Change #060505 to change the background color of drop down menu on mouse hover


      4.    Save your template and you are done!



Visit your Blogs to see a beautiful Navigation menu just below Header. Have Fun! :)

If you have any questions feel free to post them.

Customize Facebook Like Box With CSS






custom-like-boxStyling Facebook plugins is unfortunately not an easy job because very limited details are shared on the Facebook Developers page. Custom plugins help you to stand out as a brand and promote your business well. In April 2010, Daddydesigns published a tutorial on how to style and apply modifications to Facebook Fan box. Their tutorial was well entertained but with the introduction of Facebook Like Box instead of Fan Box, the change in algorithms made it difficult to modify the plugin using the same guide. After several trials and errors, we managed somehow to make the necessary small changes made by DaddyDesigns to fully customize the Like box with custom flavors of fonts and colors. This would surely have not been possible with their brilliant help.


I have made this tutorial as easy to implement as possible. You just need to carefully follow the easy steps below. I have divided the tutorial in two parts:


  1. Creating The style sheet for Like Box

  2. Creating a custom Like Box code


This Method works 101% till today :)



Update: We only showed you what you can  do. You can edit the CSS to try your creativity and make any design you like. See Likebox with mouse hover effect





1. Creating the Stylesheet For Like Box


Custom like box

Creating a style sheet is really easy. Just do this,

    1.  Copy and paste the code below inside a notepad


/*---------------MBT's Custom Like Box Start--------------*/

.fan_box a:hover{

  text-decoration: none;

}



.fan_box .full_widget{

  height: 200px;

  border: 0 !important;

  background: none !important;

  position: relative;

}



.fan_box .connect_top{

  background: none !important;

  padding: 0 !important;

}



.fan_box .profileimage, .fan_box .name_block{

  display: none;

}



.fan_box .connect_action{

  padding: 0 !important;

}



.fan_box .connections{

  padding: 0 !important;

  border: 0 !important;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;

  font-weight: bold;

  color: #666;

}



span.total{

  color: #0080ff;

  font-weight: bold;

}



.fan_box .connections .connections_grid {

  padding-top: 10px !important;

}



.fan_box .connections_grid .grid_item{

  padding: 0 10px 10px 0 !important;

}



.fan_box .connections_grid .grid_item .name{

  font-family: "lucida grande",tahoma,verdana,arial,sans-serif;

  font-weight: normal;

  color: #289728 !important;

  padding-top: 1px !important;

}



.fan_box .connect_widget{

position: absolute;

bottom: 0;

left: 0px;

margin: 0 !important;

}



.fan_box .connect_widget .connect_widget_interactive_area {

margin: 0 !important;

}



.fan_box .connect_widget td.connect_widget_vertical_center {

padding: 0 !important;

}



/*---------------MBT's Custom Like Box End--------------*/

To keep it simple make these changes:


  • To change the font size edit font-size: 11px;

  • Replace the heading color ( #0080ff ) with a color of your choice. You can use our color generator tool

  • Replace the Profile Nick Names text color ( #289728 ) with one of your choice.


      2.   Now save the file by going to File > Save as

Save the file with the extension FB.css as shown below,

css extension

      3.   Finally upload the file on your hosting server or you can try any other free hosting service. I recommend Google Code.

You can use our link too: http://themobilehub.blogspot.googlecode.com/files/facebook.css

      4.   Once you have uploaded the stylesheet file, you will be provided with a direct link to it. Keep it safe as we would need it later.

     5.    You are done!





2. Creating a Custom Like Box Code


Instead of using the new code provided on the developers page, we will use and modify a custom code. This is the modified code you need to use:


<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script>

<script type="text/javascript">FB.init("");</script>

<fb:fan profile_id="LIKE PAGE ID" stream="0" connections="10" width="300px" height="200px" header="0" logobar="0"   css="STYLE SHEET LINK"></fb:fan>

The above code structure consists of 4 important sections which must be filled properly.


  1. Like Page ID

  2. Connections i.e. Number of Profile Faces/pics

  3. Width and Height Dimensions

  4. Stylesheet link


Make these changes:


  • Replace  with the 12-15 digit numeric ID of your Facebook Like Page. You can find this ID inside your Like Page URL. For example: The URL of my like Page is,



https://www.facebook.com/pages/My-Blogger-Tricks/147104632016744


  • I have kept the number of profile pics denoted by connections equal to 10. You can reduce it if you want.

  • Replace STYLE SHEET LINK with the link of the stylesheet your previously uploaded. I will mention later how to create



Your Custom Facebook Like Box is now ready to be served! That's All. Paste this code anywhere you want and your personalized and styled box will show up just perfectly. If you face any problems just let me know. I will publish more designs and tutorials on this topic within this week.







Credits


Readers and developers are requested to kindly link back to this page if they wish to share this working tutorial with their visitors. It's the only tutorial published after daddydesigns tut which provides a modified solution.



Please let us know if you needed any help. Peace and blessings pals. :)

Zoom In/Out Images On Mouse Hover With Single Image






zoom-imagesThere are many tutorials online which show users how to achieve a hover effect on their buttons and other images using mouse hover and they often instruct to use a second, larger image.  Another method used is using jQuery to enlarge the size of the image. But with a little bit of trickery, this can be done solely using Css3 and normal html.

Here is a demo:



Live Demo




Note : This trick is best viewed in the latest version of any browser other than IE.

This tutorial has been split into two parts:


  1. CSS implementation

  2. HTML Implementation





CSS implementation:


1. Go To Blogger > Design > Edit HTML

2. and search for


]]></b:skin>


3. Now right above it, paste this code:


/*------- MBT ZOOM-OUT ZOOM-IN -------*/

.mbtzoom {
padding:5px;
position:fixed;
bottom: 35px;
right:10px;
cursor: pointer;
text-decoration: none;
border: 0px solid transparent;
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
-webkit-transition: all 0.3s ease-out; 
-ms-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out; 
}

.mbtzoom:hover  {
  zoom: 2;
  text-enlarge: 2;
  -moz-transform: scale(2);
  -o-transform: scale(2);
  transform: scale(2);
}



Same procedure as the other option, edit the values to your picture, and change the zoom to how big you want the picture after the transition.




HTML Implementation:


Now whenever you wish to apply the zoom effect to any image you want simply use this code,


<a href="URL OF PAGE" class="mbtzoom"><img  width="60px" height="60px" src="IMAGE LINK" alt="back to top"  /></a>


  • Replace URL OF PAGE with the page link. On clicking the image the user will be taken to that page

  • Replace IMAGE LINK with the link of the picture

  • Make sure to Keep width and height equal to half the size of original image. For example if the image size is 100px by 100px then set width="50px" and height="50px"




That’s it! Your image should be zooming/enlarging beautifully on your blog/website!


DEMO


As a DEMO simply paste this code on MBT HTML Editor




<style>
.mbtzoom {
padding:5px;
position:fixed;
bottom: 35px;
right:10px;
cursor: pointer;
text-decoration: none;
border: 0px solid transparent;
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
-webkit-transition: all 0.3s ease-out; 
-ms-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out; 
}

.mbtzoom:hover  {
  zoom: 2;
  text-enlarge: 2;
  -moz-transform: scale(2);
  -o-transform: scale(2);
  transform: scale(2);
}
</style>

<a href="#" class="mbtzoom"><img  width="60px" height="60px" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWazhVJ81mdaK4ppVAr23LpA84L7zPLhdNxtY0EJFF3Bj72xl7B6AgXTDZZy4dRWgccdp2myQnafl1pf0mhSHQB4xUA9c6lAp0QgSxD-HyOah4L4aBvUuWAzfzXCNRR-2FWgXlIEBNeFM/s800/rss-128.png" alt="back to top"  /></a>






Anims



About the Guest Author:

Anims is freelance web designer and enjoys playing around with and learning coding in his free time. He likes to write about Web Technologies such as HTML, CSS and SEO.



How To Style BuySellAds Empty Ad Spots With CSS?






Customize-BSA-adsBuySellAds is a name that is known to all. It is an advertisement service where you can buy and sell ads out of thousands of blogs and websites. Ads are displayed in different format sizes, the most popular being 125 by 125 and 468 by 60 and 300 by 250. By default the empty Ad Posts look dull and grey in color just like these,



















468 by 60

125 by 125

I am sure no one would like the default look so lets play with some CSS!


Customizing BSA Ad Spots


Whether you are a blogger user or wordpress or a webpage holder, this tutorial works for all. We just need to add the CSS code to our style sheet and that's it. So follow up,


  1. Go To Blogger > Design > Edit HTML

  2. Backup your template

  3. Search for

  4. and just above paste the code below,



.adhere{ background:#ffffff !important; border-color:#B7DBFF !important; }

.adhere:hover{ background:#EAF5FF !important; }

    5.   Save your template and you are done!

View your webpage to see your Ad spots with a more attractive look as shown below,

Active Mode Look:

customized bsa ad spot

Mouse Hover Look:

image

You can observe clearly how the ad spot changes color when the mouse cursor is hovered on it. So lets customize the colors.

Make these changes,


  • To Change the border color, kindly change #B7DBFF . Our Color Generator tool or Color Chart can be helpful.

  • To Change background color in active mode, kindly change #ffffff

  • To change background color in Mouse Hover mode, kindly change #EAF5FF



That's All! :>

PS: To change the Advertise Here font style and color. Kindly edit it from your BSA account.

How to Customize Each Sidebar Header Differently?




Customize-Sidebar After successfully customizing Blogger Comment Form and then the About me/Profile widget we have again got something really different this time. Few months back while looking at some word press templates I observed that some Sidebars had each sidebar headers with a different Look. I kept looking for a way through which this trick could be implemented in Blogger and just last week while editing my test bog I came across an interesting fact about Blogger Widgets. All widgets that I added on sidebars had a unique ID assigned to it by Blogger. I used this ID and tried if I could use it to customize the Sidebar Header and amazingly it worked wonders! With this ID I could customize any portion of the widget I wanted. So I am curious to share this brilliant trick with you. Today we will keep it simple. We will learn first on how to customize the Sidebar Headings and in our coming posts we will keep on doing more interesting things to today’s tut. So lets jump on to the tutorial..

 

First kindly view a demo to see how each sidebar headings have been customized differently,

Live Demo


How To Find out Unique ID Name of each Blogger Widget?

Simply follow these steps,

  1. Log into your Blogger Account
  2. And click the link that says  View your Blog
  3. At your Blog below each widget you will find this Edit key image,Blogger Edit-key
  4. Hover your mouse cursor on it and right Click and choose Copy Link Location
  5. The link will look something like this,

http://www.blogger.com/rearrange blogID=#####&widgetType=HTML&widgetId=HTML4&action=editWidget

Copy your Widget ID and keep it save as it will be used in the next part. In my case you can easily see that the widget Id is HTML4

HTML/JavaScript widgets are usually assigned such ID’s as HTML1, HTML2, HTML3 and so on.

About me widget will have an ID like Profile1 and Link lists widgets have Ids as LinkList1, LinkList2 etc.

The ID’s are case sensitive so use them as they appear.

How to Customize a Widget using its Unique ID?

Now here comes the interesting part. We will now customize the Widget’s Heading Style i.e H2 tag. Customization of other portions of the Widget will be shared in future posts.

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Search for ]]></b:skin>
  4. Paste the following code just above ]]></b:skin> ,

#ID h2{
background:#575656;
margin:10px 0 10px 0;
padding:8px 0 8px 10px;
font-size:12px;
font-family: Sans-serif, Arial, Helvetica;
font-weight:bold;
text-transform:uppercase;
color:#ffffff; text-shadow:0 1px 0 #fff;
}

 

Now replace ID with your unique widget ID. To change the background color change #575656 and to change the Font colour change #ffffff. May be you will like using our Colour Code Generator Tool

   5. Hit save and you are Done!

View your blog to see the new dress :)

That’s All!

Hope you find it useful and worth trying. More interesting CSS tricks on it will be shared soon InshAllah.

Note: Kindly respect Copyrights. Most of our tricks are being duplicated without attaching any credits and this really destroys our efforts. It’s a request from all our readers to respect the content of the original author.

How To Use Google Fonts In Blogger? Part-1





Read Part-2 here -> Style Post Titles and Sidebar titles With Google fonts in Blogger

Google Font-Previewer-Tricks It is no wonder that web technology has developed tremendously over the recent years. Fonts that were once stored in user’s computers are now embedded in templates. Few years back you could use only those fonts in your templates which were available on major operating systems and in order to view those stylish fonts on your websites, the user should already had fonts installed on their PCs. Today you can use any font you like for your designing purposes and the reader doesn’t need having those fonts installed on his PC. Thanks to Google Fonts API you can now embed any font you like in your templates out of the popular fonts available at Google Font Directory.

Google Font Previewer Tricks

For making things as simple as possible I would first discuss in detail some important things about this excellent Font Previewer tool provided by Google itself. We will use this tool to produce our desired embeddable code and CSS code. For this reason I have divided this article in two parts. Part- 1 will let you know how to properly use Google Font Previewer and Part- 2 will involve the use of these fonts in different parts of your Blogger template so keep track of both parts.

This is how Google Font Previewer looks like,

google-font-previewer 

As you can see that there is a Tools menu at your left and the display at right. You set the options to create your custom font. You can change everything through this tool except the color. Once you have set your preferred text you just need to copy the embedding code which appears below the display like this,

<link  href="//fonts.googleapis.com/css?family=Lobster:regular" 


rel="stylesheet" type="text/css" >



This embedding code can be edited in many ways to make the text appear bold, regular or italic  but when you have CSS then why bother disturbing the HTML? :)



and just below this code appears the CSS code which looks like this,




<style>
body {
font-family: 'Lobster', serif;
font-size: 36px;
font-style: normal;
font-weight: 400;
text-shadow: none;
text-decoration: none;
text-transform: none;
letter-spacing: 0em;
word-spacing: 0em;
line-height: 1.2;

}
</style>


 




The blue part is what that will be used in Part- 2 of this tutorial. This CSS code is the most important part and even if you don’t use the Google Font Previewer you can easily customize the Custom Font using this CSS. Now how would you use these custom fonts in blogger? So create your custom Font with your preferred look and feel and keep the embeddable code and blue part for Part- 2.



How To Embed Google custom Fonts in Blogger?



The method is simple. Do this,




  1. Go To Blogger > Design > Edit HTML


  2. Backup your Blogger Templates


  3. Search for </head>


  4. Just above it paste the embeddable code that you copied from Font Previewer with one adjustment. By default the embeddable code ending tag is not closed and it looks like this,




<link  href="//fonts.googleapis.com/css?family=Lobster:regular" 


rel="stylesheet" type="text/css" >


 




You must add a back slash at the end like this,




<link  href="//fonts.googleapis.com/css?family=Lobster:regular" 


rel="stylesheet" type="text/css" />



 



You can add as many embeddable fonts as you wont. You just need to end each code with a closing tag.



Now how would you use this font in Blogger posts, titles, block quotes, sidebars, headers, footers and how would you further customize the font, all this will be shared in Part –2 so keep in touch. I have shared below the embeddable codes of some of the best fonts available which will be required in Part –2. The list below will help you use the best fonts for yourself and would save your time too. So here we go,



1.  Fontdiner Swanky    



image




<link  href="//fonts.googleapis.com/css?family=Fontdiner+Swanky:regular" 


rel="stylesheet" type="text/css" />



2.  Geo    



image




<link  href="//fonts.googleapis.com/css?family=Geo:regular" 


rel="stylesheet" type="text/css" />



 



3.  Homemade Apple



image




<link  href="//fonts.googleapis.com/css?family=Homemade+Apple:regular" 


rel="stylesheet" type="text/css" />



 



4.  UnifrakturCook



image




<link  href="//fonts.googleapis.com/css?family=UnifrakturCook:regular" 


rel="stylesheet" type="text/css" />



5.  Irish Growler



image




<link  href="//fonts.googleapis.com/css?family=Irish+Growler:regular" 


rel="stylesheet" type="text/css" />



 



6.  Orbitron



image




<link  href="//fonts.googleapis.com/css?family=Orbitron:regular" 


rel="stylesheet" type="text/css" />



 



7.  Permanent Marker



image




<link  href="//fonts.googleapis.com/css?family=Permanent+Marker:regular" 


rel="stylesheet" type="text/css" />



 



8.  Rock Salt



image




<link  href="//fonts.googleapis.com/css?family=Rock+Salt:regular" 


rel="stylesheet" type="text/css" />



 



9.  Slackey



image




<link  href="//fonts.googleapis.com/css?family=Slackey:regular" 


rel="stylesheet" type="text/css" />



 



10. Sniglet



image




<link  href="//fonts.googleapis.com/css?family=Sniglet:regular" 


rel="stylesheet" type="text/css" />



 



11. Tangerine



image




<link  href="//fonts.googleapis.com/css?family=Tangerine:regular" 


rel="stylesheet" type="text/css" />



 



12. Kenia



image




<link  href="//fonts.googleapis.com/css?family=Kenia:regular" 


rel="stylesheet" type="text/css" />



 



13. Kranky



image




<link  href="//fonts.googleapis.com/css?family=Kranky:regular" 


rel="stylesheet" type="text/css" />



 



14. Lobster



image




<link  href="//fonts.googleapis.com/css?family=Lobster:regular" 


rel="stylesheet" type="text/css" />



 



15. Luckiest Guy



image




<link  href="//fonts.googleapis.com/css?family=Luckiest+Guy:regular" 


rel="stylesheet" type="text/css" />



 



16. Mountains of Christmas



image




<link  href="//fonts.googleapis.com/css?family=Mountains+of+Christmas:regular" 


rel="stylesheet" type="text/css" />



 



 



17. IM Fell English SC



image




<link  href="//fonts.googleapis.com/css?family=IM+Fell+English+SC:regular" 


rel="stylesheet" type="text/css" />



 



18. Allerta Stencil



image




<link  href="//fonts.googleapis.com/css?family=Allerta+Stencil:regular" 


rel="stylesheet" type="text/css" />



 



19. Cherry Cream Soda



image




<link  href="//fonts.googleapis.com/css?family=Cherry+Cream+Soda:regular" 


rel="stylesheet" type="text/css" />



 



20. Chewy



image




<link  href="//fonts.googleapis.com/css?family=Chewy:regular" 


rel="stylesheet" type="text/css" />



 



21. Coda



image




<link  href="//fonts.googleapis.com/css?family=Coda:regular" 


rel="stylesheet" type="text/css" />



 



22. Coming Soon



image




<link  href="//fonts.googleapis.com/css?family=Coming+Soon:regular" 


rel="stylesheet" type="text/css" />



 



  23. Covered By Your Grace



image




<link  href="//fonts.googleapis.com/css?family=Covered+By+Your+Grace:regular" 


rel="stylesheet" type="text/css" />



 



24. Droid Serif



image




<link  href="//fonts.googleapis.com/css?family=Droid+Serif:regular" 


rel="stylesheet" type="text/css" />



 



25. Corben



image




<link  href="//fonts.googleapis.com/css?family=Corben:regular" 


rel="stylesheet" type="text/css" />


 




 



If you found anything unclear till now so please feel to post your question. The next part is more interesting so make sure you have subscribed to our Updates. Till then Take care! :)


How to link text and Image in Blogger posts?




Link-Text-Images I often link texts and images in posts so that readers may find it easy to jump from one portion of the post to another without leaving the post. Linking texts indeed make a post enjoyable for readers. These are more like anchor Tags added to texts. Further you can also link one image to another or you can link a text to an image or vice versa. For instance if you click the link below it will take you straight to the text That’s All! Try it –> Click Me Your Highness :)

 

 

 

How to Link texts Within Blogger Posts?

The method is far easy then you can imagine.

1.    First we need to enclose the text we want to link with a small code as shown below,

<a name="Text-Name">Desired Text</a>

 

In my case since I wanted to link That’s All! so I replaced  Text-Name with thatsall and Desired Text with  That’s All!   You can name it anything like 123 or xyz.

2.    Now we need to create a link that will take us straight to our desired text. Use this code,

<a href="#Text-Name">Jumping Text</a>

In my case I have replaced #Text-Name with #thatsall and Jumping Text with Click Me Your Highness :)

How To Link Images Within Blogger Posts?

Click this text –> Take me to the Image at Top

Such a link will link texts to images. So lets do it.

1.    First enclose the image with this code,

<a name="Image-Name"><img src="Image Link Goes Here"/></a>

Replace Image Link Goes Here with URL of image where it is saved.

2.    Now we need to create a text that will link the image. Use this code,

<a href="#Image-Name">Jumping Text</a>

Simply replace Jumping Text  with a text that will take you to the image.

In my case I have replaced Jumping Text with Take me to the Image at Top

How to link One Image To Another Image in Blogger Posts?

Here you just need to use an image instead of a Jumping text. For example click the jumping image below and it will take you to the image at top left,

images

Liked it? Now follow these easy steps,

1.   First enclose the landing image with this code,

<a name="Image-Name"><img src="Image Link Goes Here"/></a>

Replace Image Link Goes Here with the URL of your landing image.

2.  Now create a Jumping image using this code,

<a href="#Image-Name"><img src="Jumping Image Link Goes Here"/></a>

Just replace Jumping Image Link Goes Here with the Image URL of the jumping image.

 

 

That’s All!

 

Hope you will find it unique and useful. Let your readers jump within your posts. :) Take me Up!

Add Drop Shadows to Images and Expand them on Mouse Hover




Image-Drop-Shadows CSS is a fun thing to play with. With the growing development of cascading style sheet and with the accepting compatibility of new browsers, web designing is becoming more and more creative. We once used Photoshop to manually add drop shadows to images but now thanks to CSS3 you can add drop shadows to all your images automatically. We will learn today how to minimize the size of large images and how can we make them expand to their original size on mouse hover. I am sure you will love it :)

Please see a demo first,

Live Demo

 

How To add Drop Shadows and Enlarge Images on Mouse Hover?

The methods are really simple.

  1. Go to Blogger > Design > Edit HTML
  2. Back up your template
  3. Search for ]]></b:skin>
  4. Just above ]]></b:skin> paste the following code,

.MBT-CSS3 img{
-webkit-transform:scale(0.7); /*Webkit 0.7 times the original Image size*/
-moz-transform:scale(0.7); /*Mozilla 0.7 times the original Image size*/
-o-transform:scale(0.7); /*Opera 0.7 times the original Image size*/
-webkit-transition-duration: 0.5s; /*Webkit: Animation duration*/
-moz-transition-duration: 0.5s; /*Mozilla Animation duration*/
-o-transition-duration: 0.5s; /*Opera Animation duration*/
opacity: 0.5;
margin: 0 10px 5px 0;
}

.MBT-CSS3 img:hover{
-webkit-transform:scale(1.1); /*Webkit: 0.5 times the original Image size*/
-moz-transform:scale(1.1); /*Mozilla 0.5 times the original Image size*/
-o-transform:scale(1.1); /*Opera 0.5 times the original Image size*/
box-shadow:0px 0px 30px gray;
-webkit-box-shadow:0px 0px 30px gray;
-moz-box-shadow:0px 0px 30px gray;
opacity: 1;
}

 

If you wish to further decrease the image size then decrease 0.7 or if you wish to further fade the image then decrease 0.5

You are almost done. Now when ever you want the image to appear with this effect, simply use this code,

<div class="MBT-CSS3">
<img src="Image URL Goes Here" />
</div>

 

Upload your image to Blogger editor and replace Image URL Goes Here with your image link. You are done. Now visit your blog to see the effect working in action and yell out Bravo! :P

If you wish to add this effect to another image just keep on adding <img src="Image URL Goes Here" /> before </div>

This effect is compatible with latest versions of Mozilla, Safari, Opera, Chrome and as usual not that effective with boring IE. I just hope you liked it.

HTML Form For Blogger




HTML Contact Form I received several emails this week regarding how to create a contact form, web form, email form etc. Few months back I wrote a detailed tutorial on how to create a HTML and CSS based Email Me form. In that tutorial I mentioned every single step of embedding a high quality free Contact form in your blogger blogs just the way I have done on my blog. See my Contact Me page.

Kindly read this tutorial to learn the best way or trick of adding a free Contact Form on your websites -> Learn How to Create HTML and CSS based Contact Form

Note:- This was a recall post.

Creating Customized HTML Text Area Boxes




HTML-Text-Boxes Its really important to keep everything as attractive as possible while writing posts. Text Area boxes are a useful method of showing long bunch of text or code on your blog. Just last month I wrote two posts 25 Vertical Navigation Menus and 30 Horizontal Navigation Menus where I have used a lot of coding and all those coding were displayed inside fully customized text areas that made the post looked clean and neat. Text boxes are good only if there length and height is well controlled and today with this tutorial we will learn several ways of styling our default text areas.

Kindly see a demo first,

 

Live Demo

 

Before

text-boxes

After

text-boxes

How to Customize the Text Area Box?

To do this follow the steps below,

  1. Go to Blogger > Layout > Edit HTML
  2. Search for </b:skin>
  3. And just above it paste the code below,

.mbt-textarea {
padding:0;
margin:0;
background: #fff;
width:400px;
height:40px;

color:#666;
font:12px arial;
border:1px dotted #289728; }

.mbt-textarea:hover {
color:#289728;
border:2px solid #666;
}

 

     4.  Finally save your template!

How to show the Stylized Text Area Effect inside Blogger Posts?

To display this customized text area you only need to add the following code in the Edit HTML section of your Blogger Editor,

<textarea class="mbt-textarea" readonly="readonly">WRITE-TEXT-HERE</textarea>

 

Simply replace WRITE-TEXT-HERE with your text that you want to appear inside a box.

How to Customize The CSS of The Text Box?

If you wish to change the font, color or in short the entire look of the text box then you just need to edit the following areas in the CSS code above,

background: #fff; –> This Changes background color of the text area
width:400px; –> This changes width size of box
height:40px;  -> This changes box height

color:#666;  -> This changes font color inside text box
font:12px arial; –> This changes font size and font family respectively
border:1px dotted #289728; } –> This changes the border size, style (i.e dotted, solid, dashed) and color. Editing it will change the look of the border/outline across the text

.mbt-textarea:hover {
color:#289728; –> This changes font color on mouse hover
border:2px solid #666;  -> This changes border size, style and color on mouse hover

Now Simply edit the above codes as guided and create a perfectly suiting Text box for your beloved blogs. I hope it will be as interesting for most of you as it seems :> Do not hesitate to ask for any help if needed!

Show Off Follower Counts For RSS, Twitter and Facebook Followers




Follower Counter for facebook, twitter and  feedburnerYou have seen many mind blowing widgets on wordpress blogs but its now time to make Blogger a better place! Presenting to you just another beautiful and yet useful widget that displays the current number of your blog subscribers, twitter and facebook followers. This widget is based solely on pure CSS and HTML with no JavaScript involved therefore you just need to update the counts manually. At present I am learning programming too so as soon as I develop some good command in programming, I will automate all MBT widgets but at present bear with me as a designer only :p

 

Take a look on how the widget will look like on a blog with narrow sidebar (The screenshot above is taken on a blog with wide sidebar)

Follower Counter

 

Follow the Steps Below To Add The Follower Counter To Your Blogger Blogs

  1. Go To Blogger > Layout
  2. Choose Add a Gadget or Add a Page element
  3. Select HTML/JavaScript widget
  4. Paste the code below inside it,

<style>
.rss-mbt {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgstjhqDdgIlmN1vOrUw3QqIL7Bgi4boZuLDGqyipYLU-FQjqyxDfcig5qvoC3uc-q87T1x0K3GgKA8f6zrgTtiZqrUtKDpJI7HksFj8yqpGTlh4nzGYFNJuVrv9RwdHWpKSEhSWuIGzzg/s800/RSS1.png) no-repeat;
    height: 64px;
    padding: 0px 20px 0px 80px;
    margin-top: 20px;
}

.twitter-mbt {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYUA3P-eJJZlbgWC4ywMj_V0DRENm6LtB8bEEsnRQmT3VdEup0pvIvNcd8J_9LNd2izmjr-wP4_BcM-xpCSMS07B3IEzaZBzIDIuKKTH3HkRAavqq7tH0BKCjUe7fY8EzZjlUQ72-asnc/s800/TWITTER1.png) no-repeat;
    height: 64px;
    padding: 0px 20px 0px 80px;
    margin-top: 20px;
}

.facebook-mbt {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZ2E3vssh5DSEHm2cuH8Jq3kKZc3WbvRw_rrBsnOn1ZxyffOlF_6XrBlFiTbdvLRmgOO3umTj1VE5GN1sWiPrLY481fzphJIXoBgO6iZK8FLBGobIdYvjecDY9Gyqru22NcajPp5JalM/s800/FACEBOOK1.png) no-repeat;
    height: 64px;
    padding: 0px 20px 0px 80px;
    margin-top: 20px;
}

.follower-rss, .follower-twitter, .follower-facebook {
    font-family: Georgia,  sans-serif, Times;
    font-size: 1.1em;
        font-style:italic;
        color:#289728;
}

.follower-rss span {
    font-size: 1.9em;
    font-weight: bold;
        font-style:italic;
        color:#FFB93C;    
}

.follower-twitter span {
    font-size: 1.9em;
    font-weight: bold;
        font-style:italic;
        color:#6DB6E6;    
}

.follower-facebook span {
    font-size: 1.9em;
    font-weight: bold;
        font-style:italic;
        color:#3889BA;    
}

</style>

<div class="rss-mbt">
<div class="follower-rss"> <span>515</span> loyal readers
</div>
<a href="ADD-RSS-FEED-URL-HERE" rel="nofollow">RSS feed</a>
| <a href="ADD-RSS-EMAIL-FEED-URL-HERE" target="_blank" rel="nofollow">E-mail</a>
</div>

<div class="twitter-mbt"><div class="follower-twitter"><span>1058</span> followers</div>                           
<a href="ADD-YOUR-TWITTER-URL-HERE" target="_blank" rel="nofollow" title="I definitely follow you back">Follow us on Twitter!</a>
</div>                       

<div class="facebook-mbt">                       
<div class="follower-facebook"><span>260</span> followers                            </div>                           
<a href="ADD-YOUR-FACEBOOK-URL-HERE" target="_blank" rel="nofollow">Join us on Facebook!</a>
</div>

 

NOTE:- Make sure to replace the bolded text with the required details (links of your Feedburner, twitter and facebook accounts) and replace the bolded numbers with your current follower counts. For example replace 515  with your current number of Subscribers, replace  1058 with the number of your twitter followers and replace 260 with the number of your facebook followers

     5.    Save and you are done! Now view your blog to see a stunning widget hanging on your sidebar :D

Customization:

I hope it was not difficult to add :). You can replace the images used in this widget with the image links of your choice. Below are some MBT Social Media Icons that you can use,

Kindly let me know how useful do you find this new stylized widget. I would be more than happy to help you with any query you may have. Take good care of your selves and of your dearest ones. Enjoy! :>

 

Top 10 Widely Used Image Hover Effects In Blogosphere!




 Image-Hover-Effect-for-blog You might have seen a roll over Image effect in many professional and commercial blogs. By roll over I mean that when you hover your mouse cursor on the Image, the image border colour and style/appearance changes. Well using some simple CSS you can add some amazing effects to your Blog Images. Without wasting any time lets jump straight to the steps to be followed.

This tutorial uses a simple pattern for adding codes i.e First you will need to add a CSS code just above ]]></b:skin> and then you will need to add a small HTML code like class="xyz"  to the image code inside your posts. That’s it! :>

First and Foremost See them in action!

Live Demo :- 10 Amazing Image Hover Effects!



How To Add the Top 10 Amazing Image Mouse Hover Effects To Blogger?

To do this follow these steps,

  1. Go to Blogger > Layout > Edit HTML
  2. Search for ]]></b:skin>
  3. And now paste any of your preferred CSS: code just above ]]></b:skin>

Now whenever you write a post, simply upload an image in your blogger Editor and then switch to the Edit HTML mode and search for this code <img and paste the HTML: code of your preferred Image effect just after <img as shown below,

image-hover-effects

Number #1

CSS:

.simple1 {
  padding:5px;
  border:1px solid #ccc;
  }
.simple1:hover {
  padding:5px;
  background-color:#ccc;
  }

HTML:

class="simple1"

Number #2

CSS:

.simple2 {
  padding:5px;
    background-color:#ccc;
border:1px solid #ddd;
  }
.simple2:hover {
  padding:5px;
   background-color:#eee;
border:1px solid #666;
  }

HTML:

class="simple2"

Number #3

CSS:

.black-white {
  padding:5px;
border:1px solid #ccc;
  }
.black-white:hover {
padding:5px;
  background-color:#fff;
border:10px solid #000;
  }

HTML:

class="black-white"

Number #4

CSS:

.dashed {
  padding:5px;
border:1px solid #ccc;
  }
.dashed:hover {
padding:5px;
  background-color:#fff;
border:2px dashed #000;
  }

 

HTML:

class="dashed"

Number #5

CSS:

.top-bottom {
  padding-top:5px;
  padding-bottom:5px;
border-top:3px solid #ddd;
border-bottom:3px solid #ddd;
  }
.top-bottom:hover {
  background-color:#fff;
border-top:3px solid #000;
border-bottom:3px solid #000;
  }

HTML:

class="top-bottom"

Number #6

CSS:

.curtain {
  padding-top:10px;
  padding-bottom:10px;
border-top:2px solid #ddd;
background-color:#000;
border-bottom:2px solid #ddd;
  }
.curtain:hover {
  background-color:#fff;
border-top:3px solid #000;
border-bottom:3px solid #000;
  }

HTML:

class="curtain"

Number #7

CSS:

.red {
  padding:5px;
border:1px solid #ccc;
  }
.red:hover {
padding:5px;
  background-color:#E71305;
border:10px solid #ddd;
  }

HTML:

class="red"

Number #8

CSS:

.Fadein{
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
}
.Fadein:hover{
filter:alpha(opacity=50);
-moz-opacity: 0.30;
opacity: 0.30;
border:0;
}

HTML:

class="Fadein"

Number #9

CSS:

.Fadein2{
filter:alpha(opacity=50);
-moz-opacity: 0.30;
opacity: 0.30;
border:2px solid #000;

}
.Fadein2:hover{
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:2px solid #000;
}

 

HTML:

class="Fadein2"

Number #10

CSS:

.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{
position: absolute;
background-color: #7AA1C3;
padding: 0px;
left: -1000px;
border: 1px solid gray;
visibility: hidden;
color: white;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 0px;
}
.thumbnail:hover span{
visibility: visible;
top: 0;
left: 5px;
}

 

HTML: For knowing how to apply this popping effect in detail read this post –> Image Pop-up Effect

<a class="thumbnail" href=""><img src="Add Image URL Here" width="100px" height="100px" border="0px" /><span><img src="Add Image URL Here" /><br /> Image Description here </span></a>

 

You can enjoy playing with these codes using MBT HTML Editor. I hope you will find this tutorial pretty useful in further enhancing your cool blogging experience :>>