Showing posts with label CSS3. Show all posts
Showing posts with label CSS3. Show all posts

Simple Scroll To Top Button For Websites

Posted by Unknown on Tuesday, March 12, 2013

Click to Enlarge

Scroll to top button is used for easy scrolling to top of the page while you're on footer or everywhere in the page.
Scroll to top button using CSS is really simple to integrate in your blogger blog.
Let's Start [# Step-1]
# First make a link using a tag as shown below,
<div class="cbts2t">
<a href="#">Scroll to Top</a>
</div>
# You can change Scroll to Top to any text either 'Back to Top' or 'Go to Top'.
# Now copy and paste the whole <a> code above </body.
# After adding link, Let's style the link,
Style [# Step-2]
# Open Blogger Dashboard,
# Navigate to template
# Backup Your Template
# Click Edit Html
# Copy the below CSS code just above the ]]></b:skin> (Otherwise Read Full Instruction For Adding CSS).
 .cbts2t a
{
padding:10px 5px;
background:rgba(0,0,0,0.7);
color:#fff;
text-decoration:none;
position:fixed;
right:10px;
bottom:0px;
}
# Now you're Done.
# Save Template After previewing Styles.
# You can choose your custom color and background.
# For more help, Ask us in comments.
More aboutSimple Scroll To Top Button For Websites

14 Beautiful Loading Animations From Codepen

Posted by Unknown on Wednesday, March 6, 2013

I see some nice loading animations, I want to share them with you,You can use it in App loader or any random page etc..., So i made a collection of some awesome loaders for your app or blog.
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Check out this Pen!
Credits:Codepen
More about14 Beautiful Loading Animations From Codepen

Add NEW Ribbon To Your Latest Blogger Post

Posted by Unknown on Tuesday, February 19, 2013


You might seen "New Ribbon" in latest post...,
It's useful to interact your visitors with newest updates and releases.
How to add this widget on your blog?
1. Go to your blog dashboard and go to Template tab .
2. Back up your template.
3. After back up click on Edit HTML and check the option Expand Widget Templates .
4. Search for ]]></b:skin> and paste this code above it.

.wrappercbt12
{
  margin: 50px auto;
  width: auto;
  height: auto;
  background: transparent;
  position: relative;
}
.ribboncbt123
{
  font: bold 20px Sans-Serif;
  text-align: center;
  transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  position: relative;
  padding: 7px 0;
  left: -25px;
  top: 7px;
  width: 160px;
  background-image: linear-gradient(top, #129, #12f);
  background-image: -o-linear-gradient(top, #129, #12f);
  background-image: -ms-linear-gradient(top, #129, #12f);
  background-image: -moz-linear-gradient(top, #129, #12f);
  background-image: -webkit-linear-gradient(top, #129, #12f);
  color: #fff;
  -o-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
  box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
}
.ribboncbt-wrapper12
{
  width: 86px;
  height: 88px;
  overflow: hidden;
  position: absolute;
  top: -4px;
  right: -4px;
}


5. Now Search for this :  <b:include data='post' name='post'/> and replace it with this code.

<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:if cond='data:post.isFirstPost == &quot;true&quot;'>
<div class='wrappercbt12'>
<div class='ribboncbt-wrapper12'><div class='ribboncbt123'>NEW</div></div>
<div id='first-post'>
<b:include data='post' name='post'/>
</div></div>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>


6. Save the template and watch your blog.

you're done.
Non-Spammy Reviews are welcome in Comments Below!
If you have any query, suggestion or etc just comment or send us at Wishbox.
b:include data='post' name='post'/>
b:include data='post' name='post'/>
b:include data='post' name='post'/>
b:include data='post' name='post'/>
More aboutAdd NEW Ribbon To Your Latest Blogger Post

6 Useful CSS3 Properties For CSS Beginners

Posted by Unknown on Monday, February 18, 2013


1. @import
@import property is very useful to call external css in your style sheet, When your stylesheet contains fonts or you can link external stylesheet, then you can try @import instead of using link tag. You can link stylesheet and fonts by using this property as shown in snippet below!

@import url(http://linktoastylesheetorwebfont);
/* The more css goes here...*/
2. cursor
"cursor" is a property for giving style to cursor (default,pointer,help,wait,etc...), This property can be given inside stylesheets. you can give property as shown below.

h1
{
cursor:default; /* all h1 elements will have default cursor instead it has text. */
}
p
{
cursor:pointer; /* all p(paragraph) elements will have hand pointer cursor instead it has text in it. */
}
em
{
cursor:wait; /* all em elements will have loading cursor. */
}
a
{
cursor:help; /* all a(link) elements will have help arrow cursor. */
}

Visulisation Matters [ See Live Demo Of Cursors Below ]
Default Cursor [Hover Here]
Pointer (Hand)
Help
Loading... Wait...

So you can use this property to change cursor in every element's style. It might useful while using a link named Help for help cursor...,
Or loading text with wait cursor., Let's check out another property.
3. Font-Family
Have you heard about this, this is property for integrating webfonts in your css stylesheet, More about How to Use Custom Fonts ? ,
let's get brief knowledge about its syntax,

.class
{
font-family:'Font Name',Category;
}
To know about how font categorized , Read Finding and Using custom fonts, And take a look at another useful property.
4. Overflow
You've a box with its width 200px but if text is constant (without line breaks
) then text will rander outside the box, For defining what will happen to overflowed items (eg. image, text, etc...) "OVERFLOW" property is useful.

How Overflow is used [Syntax] ?

.class
{
width:200px;
overflow:auto;
}


Other Overflow Values
auto - manage automatic with scroll bar.
hidden - overflowed content will not shown it will hide itself.
visible - overflowed content will be visible but without scrolling.
scroll - scrollbar is shown at overflow, it turns active.
5. float
Float property is useful property to set element where they float either left or right.
float:left or float:right is right syntax for giving value to element.
6. text-align
Text align property sets the alignment for text inside given class elements.
Syntax
.class
{
text-align:center; /* the text will be on center */
}

Another possible values of text align
center - Text will aligned center.
left - Text will be on left.
right - Text will be on right.
justify - Text will be justified.
CSS Basics
Grab Css Basics Here,
Adding External CSS Code to Blogger Blog
Arrow with Pure CSS
Sticky post-it Notes with Pure CSS
Responsive Menu CSS3
CSS3 Vertical Menu Animated!
More about6 Useful CSS3 Properties For CSS Beginners

Stitched Menu With PureCSS3

Posted by Unknown on Friday, February 15, 2013

Click to Enlarge


This menu works with pureCSS3 and styled with stiched borders at top and bottom, You can add this to your blogger blog or website,

Just follow this steps,
Html Code
 <ul class="cbtnav">
  <li><a href="#">Home</a></li>
  <li><a href="#">About</a></li>
  <li><a href="#">Contact</a></li>
  <li><a href="#">Support</a></li>
  <li><a href="#">Products</a></li>
  <li><a href="#">Help</a></li>
</ul>  

Now Replace Green Lighted text with Link Location and Yellow Lighted text with Link Name(Label).


Now let's give some style to this menu,
I used Custom font in this menu style, add this with css by copying the below code,
@import url(http://fonts.googleapis.com/css?family=Open+Sans);

If you don't want custom font, then you may optout from above step,
Now copy css from below in blogger template(html),

( Above ]]></b:skin>)


.cbtnav
{
  width: 810px;
  margin: 30px auto;
  list-style: none;
  border-top: 1px dashed white;
  border-bottom: 1px dashed white;
  background: #000;
  background-image:linear-gradient(top left, #222,#333,#111,#222,#444);
  padding: 15px 0;
  padding-left: 15px;
  box-shadow: 0 -10px 0 #000, 0 10px 0 #000;
}
.cbtnav li
{
  font-family: 'Open Sans' , sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  width: 130px;
  text-align: center;
  border-right:1px solid #fff;
}
.cbtnav li a
{
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: .4s;
}
.cbtnav li a:hover
{
  color: greenyellow;
  border-bottom: 1px solid greenyellow;
}
.cbtnav li:nth-child(6)
{
  border:none;
}
Copy the above code in blogger template ( above ]]></b:skin>).
And add the html code where you want to show menu (widget/footer/sidebar widget..)
You're done with Awesome Stitched Navigation Menu.
Query
If you have any query / problem then leave comment here, it will be sort out.
More aboutStitched Menu With PureCSS3

Arrow with PureCSS

Posted by Unknown on Thursday, February 7, 2013

Click to Enlarge
Have you ever thought or seen a arrow in website which is not an image but created with the help of css ? So now,
we are going to learn how to make a arrow with purecss.
You can see arrows crafted with PureCSS3 in image above.
Arrow Left

.arrowleft
{
  position: relative;
  height: 0px;
  width: 0px;
  border: 20px solid;
  border-color:transparent #444 transparent transparent;
}
Arrow Right
 .arrowright
{
  position: relative;
  height: 0px;
  width: 0px;
  border: 20px solid;
  border-color:transparent transparent transparent #444;
}
Arrow Top
 .arrowtop
{
  position: relative;
  height: 0px;
  width: 0px;
  border: 20px solid;
  border-color:transparent transparent #444 transparent;
}
Arrow Bottom
 .arrowbottom
{
  position: relative;
  height: 0px;
  width: 0px;
  border: 20px solid;
  border-color:#444 transparent transparent  transparent;
}

You can adjust arrow size with increase and decrease the size of border property which is now 20px.
If you want arrow placed at angle then you can use trasform property.

Over to You
If you wish to learn different shapes except arrow then drop your wishes in  Wish box.
If this article enjoy you a bit then feel free to leave a comment.
If you have any problem, your comment will have answer, just don't spam otherwise dustbin is there waiting for your spammy comment.
More aboutArrow with PureCSS

Sticky Notes With PureCSS

Posted by Unknown on Friday, February 1, 2013


Sticky notes are simple way to announce something to your website using a creative post-it note,

Here is some examples that will let you learn how to make those sticky notes even more gorgeous...,


Cool Jeans Pocket
This is cool sticky note as shown in demo below, Created with PureCSS, No jQuery or js. Let's have a look at this note below,




Lorem ipsum dolor sit amet, a hac nec mauris tincidunt, lacus curabitur justo quis, ad ac vitae. Vestibulum posuere rutrum neque et dui enim. Libero pede non eros rhoncus phasellus.
{
background:linear-gradient(top,#000,#333);
width:200px;
height:250px;
color:white;
padding:10px;border:1px dashed white;box-shadow:0 0 0 3px #000,0 5px 3px grey;
transform:rotate(-10deg);
background-size:2% 2%;
border-radius:5px;
}
Yellow Post-It
This postit has yellow background and a transparent color, you can create this with any background!, Try it by changing background...

Lorem ipsum dolor sit amet, a hac nec mauris tincidunt, lacus curabitur justo quis, ad ac vitae. Vestibulum posuere rutrum neque et dui enim. Libero pede non eros rhoncus phasellus.
{
background:yellow;
width:200px;
height:250px;
color:rgba(0,0,0,.3);
padding:10px;box-shadow:10px 10px 0 #000;
border-radius:5px;
}
Minimal Post-it
This is nice, simple and attractive post-it

Lorem ipsum dolor sit amet, a hac nec mauris tincidunt, lacus curabitur justo quis, ad ac vitae. Vestibulum posuere rutrum neque et dui enim. Libero pede non eros rhoncus phasellus.
{
background:linear-gradient(top,#e2e2e2,#e6e6e6);
width:200px;
height:250px;
color:black;
padding:10px;box-shadow:0 0 10px grey;
border-radius:5px;
}

These are demos with css, But this css doesn't have prefixes for cross-browser support, You may add for using cross-browser.
Recommendations
Recommend any design idea if you have one, Drop your idea in "Wishbox".
More aboutSticky Notes With PureCSS