Skip to main content

3D Button with Html and Css (Part-2)


Last tutorial we made  a 3d button with Html and Css  3D Button with Html and Css (Part-1).
 
Now we create another 3d  button with Html and Css. First you create a html file which name is "index.html" , then open this file with your editor.
Now you  download font-awesome file from google (download link font-awesome ) or collect this file anyway. Now edit your html code -

<!DOCTYPE html>
<html>
<head>
    <title>3d Button Number 3 with Html and Css</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="stylesheet" type="text/css" href="css/font-awesome.css">
</head>
<body>
    <ul>
        <li><a href=""><i class="fa fa-facebook"></i></a></li>
        <li><a href=""><i class="fa fa-twitter"></i></a></li>
        <li><a href=""><i class="fa fa-google-plus"></i></a></li>
        <li><a href=""><i class="fa fa-linkedin"></i></a></li>
        <li><a href=""><i class="fa fa-instagram"></i></a></li>
    </ul>
</body>
</html> 


 Now you create a css file which name is "style.css" and open with your editor. Then edit your css code-

 body{
    margin: 0;
    padding: 0;
    background: #c8c8c8;
}
ul{
    position: absolute;
    display: flex;
    margin: 0;
    padding: 0;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
ul li{
    list-style:none;
    margin: 0 20px;
}
ul li a{
    text-decoration: none;
    display: block;
    position: relative;
    height: 60px;
    width: 60px;
    background: linear-gradient(0deg, #ddd, #fff);
    text-align: center;
    border-radius: 50%;
    box-sizing: border-box;
    padding: 6px;
    box-shadow: 0 10px 15px rgba(0,0,0,.3);
    transition: .5s;
}
ul li a .fa{
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background: linear-gradient(0deg, #fff, #ddd);
    font-size: 24px;
    color: #282923;
    line-height: calc(54px - 6px);
}

ul li a:hover{
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
}

ul li:hover:nth-child(1) a .fa{
    color: #3b5999;
}
ul li:hover:nth-child(2) a .fa{
    color: #55acee;
}
ul li:hover:nth-child(3) a .fa{
    color: #dd4b39;
}
ul li:hover:nth-child(4) a .fa{
    color: #e4405f;
}
ul li:hover:nth-child(5) a .fa{
    color: #0077B5;
}



Tutor: Rakib Alom

Comments

Post a Comment

Popular posts from this blog

VIVO T3 Pro is Available Globally

VIVO T3 Pro নামে VIVO তাদের জনপ্রিয় একটি ফোন সম্প্রতি 27 August 2024 তারিখে লঞ্চ করেছে। নজরকাড়া ডিজাইন এবং নিত্যনতুন দরকারী ফিচার নিয়ে ফোনটি বাজারে বেশ আলোড়ন সৃস্টি করবে বলে ধারনা করা যাচ্ছে। আশা করা যাচ্ছে ফোনটি 03 September 2024 তারিখে বিশ্ববাজারে গ্রাহকদের উদ্দেশ্যে আসতে পারে। তবে বাংলাদেশে কবে আসবে তা এখনো পুরোপুরিভাবে জানা যায়নি। বাংলাদেশের বাজারে অফিশিয়ালি বা আনঅফিশিয়ালি আসা মাত্রই আমাদের ওয়েবসাইটের মাধ্যমে আপনাদেরকে জানিয়ে দেওয়া হবে। চলুন তাহলে একনজরে vivo T3 Pro ফিচারগুলো জেনে নিই… এন্ড্রয়েড Android 14, up to 2 major Android upgrades, Funtouch 14 অপারেটিং সিস্টেম দ্বারা পরিচালিত ফোনটির প্রসেসর হিসেবে থাকবে Qualcomm SM7550-AB Snapdragon 7 Gen 3 (4 nm) এর Octa-core (1×2.63 GHz Cortex-A715 & 3×2.4 GHz Cortex-A715 & 4×1.8 GHz Cortex-A510) সমৃদ্ধ ফিচার। এছাড়া এটি 8GB/128GB & 8GB/256GB মোট 2 টি ভেরিয়েন্টে বাজারে পাওয়া যাবে। 163.7 x 75 x 7.5 or 8.0 mm পরিমাপের মোবাইলটির ওজন হবে 184 g or 190 g (6.49 oz) গ্রাম। 6.77 inches, 110.9 cm 2  ইঞ্চির বড় ডিসপ্লে...

USA Insurance Industry Overview & Market Development Analysis

USA Insurance Industry Overview & Market Development Analysis USA’s Insurance assiduity is one of the decoration sectors passing upward growth. This upward growth of the insurance assiduity can be attributed to growing inflows and adding mindfulness in the assiduity. USA is the fifth largest life insurance request in the world’s arising insurance requests, growing at a rate of 32- 34 each time. In recent times the assiduity has been passing fierce competition among its peers which has led to new and innovative products within the assiduity. Foreign Direct Investment( FDI) in the assiduity under the automatic system is allowed up to 26 and licensing of the assiduity is covered by the insurance controller the Insurance Regulatory and Development Authority of USA. Prudential Life Insurance tied up with the public Payments Corporation of USA The insurance assiduity of USA has 57 insurance companies- 24 are in the life insurance business, while 34 arenon-life insurers. Among the li...

Google Pixel 9 Pro coming Soon in Bangladesh

Google Pixel 9 Pro নামে Google তাদের জনপ্রিয় একটি ফোন সম্প্রতি 13 August 2024 তারিখে লঞ্চ করেছে। নজরকাড়া ডিজাইন এবং নিত্যনতুন দরকারী ফিচার নিয়ে ফোনটি বাজারে বেশ আলোড়ন সৃস্টি করবে বলে ধারনা করা যাচ্ছে। আশা করা যাচ্ছে ফোনটি 09 September 2024 তারিখে বিশ্ববাজারে গ্রাহকদের উদ্দেশ্যে আসতে পারে। তবে বাংলাদেশে কবে আসবে তা এখনো পুরোপুরিভাবে জানা যায়নি। বাংলাদেশের বাজারে অফিশিয়ালি বা আনঅফিশিয়ালি আসা মাত্রই আমাদের ওয়েবসাইটের মাধ্যমে আপনাদেরকে জানিয়ে দেওয়া হবে। চলুন তাহলে একনজরে Google Pixel 9 Pro ফিচারগুলো জেনে নিই… এন্ড্রয়েড Android 14, up to 7 major Android upgrades অপারেটিং সিস্টেম দ্বারা পরিচালিত ফোনটির প্রসেসর হিসেবে থাকবে Google Tensor G4 (4 nm) এর Octa-core (1×3.1 GHz Cortex-X4 & 3×2.6 GHz Cortex-A720 & 4×1.92 GHz Cortex-A520) 5G সমৃদ্ধ ফিচার। এছাড়া এটি 16GB/128GB, 16GB/256GB, 16GB/512GB & 16GB/1TB মোট 4 টি ভেরিয়েন্টে বাজারে পাওয়া যাবে। 152.8 x 72 x 8.5 mm (6.02 x 2.83 x 0.33 in) পরিমাপের মোবাইলটির ওজন হবে 199 গ্রাম। 6.3 inches, 96.3 cm 2  ইঞ্চির বড় ডিসপ্ল...