Saturday, October 13, 2012

Add github style sliding link to blogger read more link

David walsh 's blog is one of my favorite blog.Few days back he wrote this post.He explained how to crate sliding links like github.In this tutorial i,m going to style blogger's Read more link with the same way.


Read more LINK

  read more LINK HOVER 

  Step1.Update your template

1.Go to blogger>login>template>edit html
2.Backup your template.
3.Find (Ctrl+f) this line

<div class='jump-link'>
4.You will also find this code below that
        <a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.jumpText/></a>
5.Replace the code with this one
 <a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.title/></a>h
6.Save the template.

Step:-2 ADD CSS

1.Adding css is very simple.Go to template>customize>add css.Or if you are using old template code then find }]]></b:skin>.Add css code before this code.
2.I used whole david's css.did not changed any color or anything.if u want to change you can do it.

div.jump-link {
  max-width:690px;
  position:relative;
}
.jump-link a {
  position: relative;
  height: 24px;
  display: inline-block;
  top: 7px;
  color:#fff;
  vertical-align: top;
 font-family: "Consolas",Liberation Mono,Courier,monospace;
padding: 0 7px;
  background: #444;
  background: -moz-linear-gradient(#444, #222);
  background: -webkit-linear-gradient(#444, #222);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444',endColorstr='#222222')";
  border: 1px solid black;
  border-radius: 3px;
 font-size: 13px;
  line-height: 24px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  transition: 0.4s max-width linear;
  -o-transition: 0.4s max-width linear;
  -moz-transition: 0.4s max-width linear;
  -webkit-transition: 0.4s max-width linear;
  -ms-transition: 0.4s max-width linear;
}
.jump-link a:hover, .jump-link a:active {max-width: inherit;}

3.Click on Apply to blog.

Step3:-adding read more text

You must add read more text before the post title.you can do it using css.

1.just add this css into your template.
.jump-link a::before{
content:"Read more of >> "
}
2.You can edit this "Read more of >> " as you like.this simply adds Content text before the classname.

Alternative way to add Read more text


1..jump-link a::before css rule does not work on IE.so there is another way to add this text.
2. Go to template>edit html
3.find this code

<a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.title/></a>
4.Replace that code with this one
<a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.jumpText/><data:post.title/></a>

Hope this will work.if you have any problem let me know.dont forget to share the tutorial.
Thanks For reading.

7 comments:

  1. พีจี สล็อต เกมสล็อตออนไลน์บนโทรศัพท์มือถือที่เล่นได้เงินไม่มีอย่างต่ำสำหรับในการฝากแต่ละเกมจะมีสิ่งที่น่าดึงดูดไม่ว่าจะเป็นกราฟฟิคเกมของ pgslot น่าตื่นเต้นที่สุดในขณะนี้

    ReplyDelete
  2. สล็อต พีจี มีทั้งเกมสล็อตและยิงปลา รวมแล้วมากกว่า 100 เกมให้เลือกเล่น อย่างจุใจภาพสวยและแจ็คพอตแตกง่ายที่สุด เล่นง่ายได้เงินจริง เล่นเกมสล็อต กับพีจี แจ็คพอตแตกง่ายที่สุด

    ReplyDelete
  3. pgjokervip เป็นเว็บไซต์เกมออน์ที่ได้รับความนิยมมากในประเทศไทย โดยเฉพาะอย่างยิ่งในเกมสล็อตออนไลน์ PG SLOT ซึ่งมีเกมให้เลือกเล่นมากกว่า 200 เกม และมีระบบฝาก-ถอนอัตโนมัติที่รวดเร็วและง่าย

    ReplyDelete
  4. สล็อต pg เล่นได้ แม้ กำลังดู youtube ในระหว่างที่เรากำลังเพลิดเพลินกับการดูยูทูปอยู่นั้น เราก็สามารถเล่นเกมไปด้วยได้ PG SLOT เกมที่เล่นได้ทุกที่ทุกเวลาบน pc และ มือถือ

    ReplyDelete
  5. รีวิว-ezybet-789 ออนไลน์ที่มีความน่าเชื่อถือและได้รับความนิยมจากผู้เล่นในประเทศไทยอย่างแพร่หลาย บริการของเว็บไซต์นี้มีความหลากหลายกว่า 30 กีฬาบาสเกตบอล PGSLOT

    ReplyDelete
  6. superpg1688 เป็นค่ายเกมสล็อตออนไลน์ที่มีความปลอดภัยสูงด้วยเหตุว่าเล่นได้นานัปการต้นแบบ เล่นจริง ได้เงินจริง pg slot ลงทะเบียนเป็นสมาชิกค่ายฟรีอย่างเดียวสมาชิกใหม่ที่มาแรง

    ReplyDelete
  7. pg slot รับฟรีเครดิตฟรี หากคุณเป็นแฟนสล็อตออนไลน์รับฟรีเครดิตฟรีคือจุดหมายปลายทางที่ดีที่สุดสำหรับคุณโลกแห่งเกมออนไลน์ที่น่าตื่นเต้น PG SLOT ดีขึ้นด้วยโอกาสในการรับเครดิตฟรี

    ReplyDelete