Thursday, November 5, 2015

Making a fullscreen image slider

We already know videos in webpage offers a button to make the video view-able in full-screen mode. It will be really nice if we can make our high quality image slider to be presented in full-screen.

In this small tutorial we will see making the slider full-screen.

To make my demo easy, I took basic image slider from bootstrap.




Wednesday, November 4, 2015

Tuesday, November 3, 2015

Making a hamburger icon with pure css

Hamburger icon is used across all platforms, initially people were using it for mobile devices but now it is used on regular websites as well for indicating menu.

Since this hamburger icon spread ed across all devices and everybody knows what that icons means -- something hidden in there (i.e menu) or some options, So, I spent few minutes to code that with css.


Monday, November 2, 2015

Serving first HTML with node.js

Last week I have written hello world with node js i.e how to write first javascript file on the server side and how to execute it with node.js

In this tutorial, we will see how to start our own server and throwing first html with it. This is achived in two steps


Sunday, November 1, 2015

Few interesting arts with sketch.js

I just found these interesting arts with sketch.js. This minimal footprint javascript library lets you to code fun things in your web designs.

You can do unlimited things with sketch javascript library.

Below are few examples done with sketch.js

Pulling your data attributes using CSS pseudo property

I learned this recently and have been using it frequently, getting the html data attributes to content using css pseudo properties.

In this article, we will actually see how to control position of an element using css and also getting the data attribute using css content property.



Saturday, October 31, 2015

Do not make your webpage to load all images at once. Tip to speed up website

User experience is very important aspect in making a web application. One of the important factors is improving your website page load time. Where do many applications fail to make good user experience ?

  •  Trying to load lot of content at once.
  •  Loading higher dimension ed images than required by your styles
  •  Loading images before even they actually require on the screen.

Friday, October 30, 2015

Amazing Javascript work done by this website

Google has released an amazing tool to look top costume searches happening for this Halloween. The CSS effects with javascript are interesting. Thought of sharing this.

This kind of presentation would be possible with javascript library Threejs .

Thursday, October 29, 2015

How to Remove browser default css styles

Removing default browser styles is very important in our web design or development.

Many of the beginners wonder why there is a little bit of margin on the left side or styling the navigation list will not result as expected. The reason is each browser will have some set of predefined styles applied to our html web page.

Hello World with node.js

I have been hearing a lot from programmers about node.js. A server side javascript framework which can accomplish all the server side tasks. Lets see how to use node.js


Wednesday, October 28, 2015

Control elements visibility with bootstrap css

There is no doubt that bootstrap is one of the best css frameworks that are available today. It has lot useful css classes that make our web development easy.

In this small article I am explaining about hide elements with bootstrap css classes


 Hide on screens less than 768px width


.hidden-xs


 Hide on screens width between 768px(include) and 992px(exclude)


.hidden-sm


 Hide on screens width between 992px (include) and 1200px(exclude)


.hidden-md


 Hide on screens width anything above or equal 1200px


.hidden-lg


Simple demo for this is available here http://jsfiddle.net/mannemvamsi/x7dy3mcf/

Friday, October 9, 2015

Floating your sidebox between two points, Inspired by Google

I have seen google pagespeed insights floating the mobile or desktop screenshot on the sidebar between only certain points.
I just figured it out how to do it. And here is the tutorial explaning to make your website sidebar widget float between two limits.

Thursday, October 8, 2015

Offer something when user is moving out of your page

What most of the publishers are doing to convert their new visitors as returining visitors? They offer something when users visit the site.
Now, when do they offer discount or free stuff, it depends from business to business, either when user spends some time on a page or
user visiting couple of pages or when he/she is leaving the website.

Wednesday, October 7, 2015

Sidebar Navigation of smashing magazine style

I thought it will be hard to implement such beautiful navigation. I was wrong about that. This smashing magazine style left navigation is implemented with just HTML and CSS.

Monday, October 5, 2015

How to create a simple login form of paypal style

I am a paypal user and I login to my account at least once in a week. The new login interface is very modern and attractive. Hence decided to share the code to create one such login interface for websites.

Sunday, October 4, 2015

Creating twitter desktop style header navigation


Twitter navigation is one of my favorite navigation styles. So I have tried replicating the same navigation, which seems good and tested with the browsers Chrome, firefox and Microsoft Edge.

Saturday, October 3, 2015

Google apps style navigation

I have seen different types of navigation menu styles for websites and apps. But the most user friendly menu style I have come across is google apps style navigation.

An example app that I can refer is gmail app and an example website I can give is google store

Thursday, October 1, 2015

Making a full page navigation for all devices

Having responsive site navigation is important for a website and also it is necessary to have good user experience on all the platforms

Wednesday, September 30, 2015

A Simple Mobile Menu

I have created a simple mobile menu using html, javascript(jquery) and css. I have used similar mobile menu for couple of websites.


Below is how I created the menu. You can also edit and play with the code here https://jsfiddle.net/mannemvamsi/j9m571ve/

1. HTML for the menu(Navigation)


<div class="mobile-menu-wrapper">
    <div class="mobile-menu-control">
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
    </div>
<div class="mobile-menu">
    <ul>
        <li ><a href="#"><div class="header item-height" ><strong>The Main 1</strong></div></a>
            <ul>
                <li><a href="#"><div class="item-height">Sub Item</div></a></li>
                <li><a href="#"><div class="item-height">Sub Item</div></a></li>
            </ul>
        </li>
        <li ><a href="#"><div class="header" ><strong>The Main 2</strong></div></a>
            <ul>
                <li><a href="#"><div class="item-height">Sub Item</div></a></li>
                <li><a href="#"><div class="item-height">Sub Item</div></a></li>
            </ul>
        </li>
    </ul>
</div>
</div>


2. Add CSS to the html document( basically adding css only to above navigation part)


.mobile-menu-wrapper{
    position:fixed;
    left:-220px;
    width:260px;
    cursor:pointer;
}

div.mobile-menu {
    width:210px;
   
    float:left;
    background-color:#222;
}
.mobile-menu ul {
    list-style:none;
    margin:0;
    padding:0px;
   
}
.mobile-menu ul ul li {
    padding-left:8px;
   
}
.mobile-menu li {
    margin:0;
    padding:0;
}
.mobile-menu li, .mobile-menu li a {
    color:#fff;
    font-family:calibri, sans-serif;
    text-decoration:none;
}
.mobile-menu li li:hover {
    background-color:#111;
}
.mobile-menu .item-height{
    padding:10px 2px;
}

.mobile-menu-control {
    float:right;
    //border:1px solid green;
    cursor:pointer;
    background-color:#222;
    padding:5px;
}
.mobile-menu-control .bar {
    width:25px;
    margin:4px 0;
    border:2px solid #fdbd12;
}
.mobile-menu .header {
    color:#fdbd12;
    padding-left:4px;
    width:100%;
}



3. Use Jquery for actions


$(function() {
    var wrapper = $(".mobile-menu-wrapper");
    var mobileMenu = $(".mobile-menu");
    var mobileMenuWidth = mobileMenu.width();
    $(".mobile-menu-control").bind("click",function() {
       
        if(mobileMenu.hasClass("opened-menu")) {
           
           $(".mobile-menu-wrapper").animate({
               left:-(220)
              
           });
            mobileMenu.removeClass('opened-menu');
        }
        else
        {
           $(".mobile-menu-wrapper").animate({
               left:0
           });
            mobileMenu.addClass('opened-menu');
        }
    });
})
Fiddle is available for the same here : https://jsfiddle.net/mannemvamsi/j9m571ve/

Sunday, September 20, 2015

How to edit wordpress theme or change styles

Editing wordpress theme is a simple task. But before doing that I would recommend have little bit idea about PHP, HTML and CSS.

Assuming you know at least HTML and CSS, first install a plugin called wpide. Though it is outdated, I often use this one for every site that install. This helps me to edit the site quick or to make changes pretty fast.

Lets work on a simple example:
    Installed 2015 wordpress theme. Increase the default site title font-size.



Step 1: Checking the existing styles :

Open your site in your browser, after opening the site, press ctrl+shift+I .

Press the inspect icon(looks like search icon), and inspect the title .. you will see element styles 



1. select the device on which platform you want to test. In our case I selected Laptop.
2. Title we want to modify
3. Elements section shows the element we have selected
4. Styles shows the styles of the element we have selected. 

So, at moment we do not have any styles to the site title. Note that the site title(h1) has classname as site-title.



STEP 2: Adding the styles :

Lets add couple of style properties to the site-title in our style.css file. 

open your wordpress admin panel and also wpide screen. It should look like below


Select your theme and you should see style.css file 

Add the below style to that file 

.site-title {
   font-size:45px;
}


Or you can edit in your chrome dev tool.. just click on the element style and add that style property to see the changes instantly.
But since we have added that style in our stylesheet file, I am not doing that.

So, the result of our style will increase the font-size of the title.
Below is the result.


Tuesday, May 12, 2015

10 Royalty free image sites -Do what ever you want

I know many people do need royalty free images like I do for web applications or apps.
These below websites has free stock images for websites and they are free for commercial use.

1. Unsplash




Wednesday, April 29, 2015

Testing HTML on Real Devices - No wires required

Testing on Real devices

Making html pages or templates should be easy. If you are beginner w3schools.com might be the right place to start with. It is not just only developing things, testing is another important aspect of any our work.

Say if you have developed a simple html layout or a page, and you tested it using chrome browser and it looks so good and when you test it on other browsers like firefox and IE, there could few things that you would correct and make it works well on these browsers.

Tuesday, April 28, 2015

Best CSS for buttons


Some of the best CSS buttons collection with browser compatibility.

CSS Buttons play vital role for the website. Here is some css buttons examples like download buttons and social buttons. These nice css buttons will definitely help web developers and web designers.


How to show widget on mobile devices

We have lot of free blogger themes available and they have good template designs as well. By default when you add any widget to the theme you have, it will not be available on mobile. In order to show widget on mobile devices, in my case it was HTML widget that I wanted to display on mobile device.

I searched a lot on google and haven't found a proper solution to it. Everybody says that widget has an attribute called "mobile" and you just say "yes" to it. It is absolutely right but the thing is, it didn't work for me.

Sunday, April 26, 2015

Simple CSS trick to place author pic and name inline

This CSS styling helps when you need to place two elements inline. Often we need to place two elements to together of different heights.

Say we have an element one of height 60px and element two of 20px and we need the second element to be vertically center of the first element, below trick might be helpful

Some useful CSS3 Generators and Tools

Although web developers have many css3 frameworks to style their websites, we might sometimes need css generaotrs for a special button to do some actions on our site - say download, signup, explore etc.. or different forms for subscribe and contact.

Some css3 tools available online that are free and can help us to generate customized buttons, borders and some animations.

Friday, April 24, 2015

Do Something new with these Jquery plugins and Javascripts

Web designing is always been a challenge for web designers and developers. Unless you have some good tools to work, it is most likely difficult to develop great UI.

Below are some tools that might help you to come up with some great designs to your apps or websites.

Tuesday, April 21, 2015

Top CSS frameworks for web developers

I know the web developers like to code and also they would love things like readily made css frameworks that will ease their development process.

So, I collected some of the most popular CSS frameworks which can help beginners and web designers.



Monday, April 20, 2015

Internet browser statistics

Web browser statistics are important information for the users, especially for the developers, if you are making an app that is specific to a browser, it is very vital to know that how much percentage of users are actually using which browsers. 


Friday, April 17, 2015

Top 10 Javascript Frameworks 2015

My favorite part in any web application development is working on Javascript. A script is usually something which you can change instantly and run it, you do not need any deployment stuff. In this post I listed down some of the best javascript frameworks that I used for my personal projects.


How to place any element vertically center inside another using CSS

Placing an element vertically center inside of another element is easy with CSS. I will show you how to do it.

Thursday, April 16, 2015

How to create a simple html page using HTML5 and CSS

Once you know little bit of what is html and css, you can start creating you own websites, for that you should understand how to design a simple layout using html.

Wednesday, April 15, 2015

How to make your own website for free

In this post, I am going to explain about how to make a website for free.
Even myself in the beginning, was wondering how do people were able to create such amazing websites with good web design. 

Website Development

 Developing website can be free or you can spend few bucks and ask somebody to do it. Lets talk about how to create it for free yourself. I bet you do not need to know much about coding part. 

I recommend creating a website with simple web design on either blogger.com or wordpress.com.
Reason : It is easy :-)

How to make your own website for free

Blogger.com

 Blogger.com is provided by google and absolutely free of cost. Just sign in and few simple clicks to create a new blog and start writing posts or articles.

Wordpress.com

Wordpress.com is another free blogging domain that helps you to make your own website. 

Both blogger and wordpress provide plenty of website templates or themes to customize your blog or website. 
Note: Both will give a subdomain like -- yourwebsite.blogger.com or yourwebsite.wordpress.com

In order to get your own domain like yourwebsite.com you need to purchase it. Go to any domain seller like godaddy or bigrock and you can purchase it for around $10. I suggest you try with some deals or coupons.

What if you don't choose blogger or wordpress.

Yes, you can still create a website without using blogger or wordpress. Then you should do the following.

-- > Know what is website hosting. 
--> Know how much you should spend on website hosting.

Basically you need to handle whole stuff, from choosing a domain name to developing it with either Content Management System( CMS) or with your own code. 


How to use javascript settimeout to call functions in sequence


Using Javascript setTimeout to call javascript functions is easy. This simple tutorial explains the usage of javascript setTimeout function

Friday, March 20, 2015

How to place text inside a circle using css

We often require some text to be placed inside a circle. I am gonna show you how to do it in very simple steps.

Monday, March 16, 2015

Centering a div inside a div - Responsive Design

When I was creating a simple html theme, I wanted to create a basic page that will be good for both desktops and mobiles. So, I created this simple div structure to put my contents in the center of the screen.

Wednesday, March 4, 2015

A Simple Jquery ajax example - HTML form submission made easy


You might be wondering about using jquery ajax method. Here is a simple Jquery ajax post example that explains easy way to send data to server and fetch data from server asynchronously.

Jquery ajax tutorial for beginners


1. Include Jquery in your html header 
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

2. Create a html form to submit sample data asynchronously 
    <form id ="myForm">
      ENTER YOUR NAME   <input id ="myInput" name="myInput"/>
      <button type="submit" id="submit">SUBMIT</button>
   </form>

3. Create jquery method $.ajax to submit data to server

     In your javascript add function like this
      $.ajax();   // primary method
     It takes some arguments like
        a) Jquery ajax action-type (type), eg: post, get etc..
        b) file to call (url ),
        c) data to send (data),
        d) what to do upon success ajax call (success)
        e) what to do upon server error (error)

      So, adding up the arguments, it finally looks like this
      $.ajax(
           {
             type: "post",
             url :   "/path/to/my.php",
             data : $("#myForm").serialize();
             success : function(data) {
                      // alert(data);
                            } ,
              error : function(data) {
                   // alert('Report Server Error');
                         }
           }
         );
    
4. Call ajax on clicking the submit button 

   So, our jquery ajax method is ready to send data to server.
   NOTE : $("#myForm").serialize() method will send all the form elements to server.

      Create handler to submit button 
      $("#submit").click(function () {
                // add ajax function here.
        });
      It should look like 

      $("#submit").click(function () {
           $.ajax(
           {
             type: "post",
             url :   "/path/to/my.php",
             data : $("#myForm").serialize();
             success : function(data) {
                       // alert(data);
                            } ,
              error : function(data) {
                       // alert('Report Server Error');
                         }
           }
         );
        });
 
5. Handling form elements on the server side

  On your server side PHP or servlet get the form elements

   In our example we passed our server file as "/path/to/my.php". Jquery ajax will send form to that location.

 if it is PHP, use
                     $_POST["myInput"];
 if it is jsp/servlet use
                     request.getParameter("myInput");

 do what ever you want on the server side and you can send signal saying either it is good or bad or you can throw any exception.

   Throwing exception will be treated as error by $.ajax();

So, what I have done in my example php file is
       echo $_POST["myInput"];

6. Once it is success (Jquery ajax success)
    

  It is all happy on the server side, the $.ajax parameter success function is invoked.

  There is another important thing is to block default form submission.

  Because, html form is submitted to server when you click on submit button.
   In order to avoid such form submissions, you can say event.preventDefault(); Use this on button click

     So, our final form submission using jquery will look like this.
  $("#submit").click(function (e) {
           e.preventDefault();
           $.ajax(
           {
             type: "post",
             url :   "/path/to/my.php",
             data : $("#myForm").serialize();
             success : function(data){
                      // alert(data);
                            } ,
              error : function(data) {
                     // alert('Report Server Error');
                         }
           }
         );
        });