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

Thursday, 21 February 2019

// // Leave a Comment

Using HTML & CSS code for Product card UT Design

Hey, I have written HTML & CSS code for Product card UT Design, you can use it in your client project as well as it will help you to learn new more in HTML & CSS.

HTML CODE:

<!DOCTYPE html>
<html>
<head>
<title>Product card UT Design</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="product">
<div class="imgbox">
<img src="1.jpg">
</div>
<div class="details">
<h2>Brand Name<br><span>Women's Designer T-Shirt</span></h2>
<div class="price">$55.99
</div>
<label>Size</label>
<ul>
<li>XS</li>
<li>S</li>
<li>M</li>
<li>XL</li>
<li>XXL</li>
</ul>
<label>Colors</label>
<ul class="color">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a href="#">Add to cart!</a>
</div>
</div>
</body>
</html>

CSS CODE: 

body{
margin: 0;
padding: 0;
background:#ff4faf;
font-family: sans-serif; 
}
.product
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 240px;
height: 340px;
background:#fff;
box-shadow: 0 5px 15px rgba(0,0,0,.25);
border-radius: 5px;
overflow: hidden;
}
.product .imgbox
{
height: 100%;
box-sizing: border-box;
}
.product .imgbox img
{
display: block;
width: 90%;
margin: 20px auto 0;
}
.details {
position: absolute;
width: 100%;
bottom: -130px;
background:#fff;
padding: 10px;
box-sizing: border-box;
box-shadow: 0 0 0 rgba(0,0,0,0); 
transition: .5s;
}
.product:hover .details {
bottom: 0;
box-shadow: 0 -5px 15px rgba(0,0,0.25);

} 
.details h2
{
margin: 0;
padding: 0;
font-size: 16px;
width: 100%;
}
.details h2 span
{
font-size: 12px;
color: #ccc;
font-weight: normal;
}
.details .price
{
position: absolute;
top: 10px;
right:20px;
font-weight: bold;
color:#ff4faf;
font-size: 20px;
}

label
{
display: block;
margin-top: 5px;
font-weight: bold;
font-size: 14px;
}
ul
{
display: flex;
margin: 0;
padding: 0;
}
ul li
{
list-style: none;
margin: 5px 5px 0;
font-size: 12px;
font-weight: normal;
color: #ccc;
}
ul li:first-child
{
margin-left: 0;
}
ul.color li
{
width: 16px;
height: 16px;
}
ul.color li:nth-chid(1)
{
background:#ff0;
}
ul.color li:nth-chid(2)
{
background:#f00;
}
ul.color li:nth-chid(3)
{
background:#f0f;
}
ul.color li:nth-chid(4)
{
background:#ff0;
}
ul.color li:nth-chid(5)
{
background:#0ff;
}
a{
display: block;
padding: 5px;
color: #fff;
margin: 15px 0 0;
background:#ff4faf;
text-align: center;
text-decoration: none;
transition: .3s;
cursor: pointer;
}
a:hover
{
color: #fff;
background:#ff209a;

}
Read More

Thursday, 3 November 2016

// // Leave a Comment

Menu Bar with CSS in ASP .NET C#

Source code:-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
  <style type="text/css">
        #cssmenu ul
        {
            margin: 0;
            padding: 0;
            list-style-type: none;
            position: relative;
            display: block;
            height: 36px;
            text-transform: uppercase;
            font-size: 12px;
            font-weight: bold;
            background: transparent url('image/img (3).gif') repeat-x top left;
            font-family: Helvetica, Arial, Verdana, sans-serif;
            border-bottom: 4px solid #004c99;
            border-top: 1px solid #74b0c6;
            width: auto;
        }
        #cssmenu li
        {
            display: block;
            float: left;
            margin: 0;
            padding: 0;
        }
        #cssmenu li a
        {
            display: block;
            float: left;
            color: #6d7078;
            text-decoration: none;
            font-weight: bold;
            padding: 12px 20px 0 20px;
            height: 24px;
            background: transparent url('image/img (1).gif') no-repeat top right;
        }
        #cssmenu li a:hover
        {
            background: transparent url('image/img (2).gif') no-repeat top right;
            color: #6d7078;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id='cssmenu'>
                        <ul>
                            <li><a href='index.html'><span>Home </span></a></li>
                            <li><a href='about.html'><span>About Us</span></a></li>
                            <li><a href='career.html'><span>Career </span></a></li>
                            <li class='last'><a href='contact.html'><span>Contact Us</span></a></li>                           
                        </ul>
                    </div>
</form>
</body>
</html>
Read More

Tuesday, 10 May 2016

// // Leave a Comment

How to Enable/Disable the password using JavaScript and CSS?

As we apperceive that for the aegis purpose, we accept apparent password consistently password approach agency in ammo form, but abounding times we wish to appearance password on bang on a control. So this cipher will be allowance you and its attending as well good.

Source Code:-
<%@ Page Language="C#" AutoEventWireup="true"CodeFile="hideandshowpassword.aspx.cs"
    Inherits="hideandshowpassword" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Show Hide Password</title>
    <script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript">
        function ShowHidePassword(ID) {
            if (document.getElementById($("#" + ID).prev().attr('id')).type == "password") {
                $("#" + ID).attr("data-hint", "Hide");
                $("#" + ID).find("i").removeClass("icon-eye").addClass("icon-eye-slash");
                document.getElementById($("#" + ID).prev().attr('id')).type = "text";
            }

            else {
                $("#" + ID).attr("data-hint", "Show");
                $("#" + ID).find("i").removeClass("icon-eye-slash").addClass("icon-eye");
                document.getElementById($("#" + ID).prev().attr('id')).type = "password";
            }
        }
    </script>
    <style type="text/css">
        body {
            width: 500px;
            margin: 20px;
            font-family: "Titillium", Arial, sans-serif;
        }

        .textAreaBoxInputs {
            min-width: 260px;
            width: auto;
            height: 30px;
            font-size: 15px;
            padding: 7px 10px;
            border: 1px solid #00ff21;
            outline: medium none;
            border-radius: 2px;
            line-height: 30px;
            float: left;
        }

        .dvShowHidePassword {
            font-size: 15px;
            font-weight: bold;
            margin-left: -38px;
            border-left: 1px solid #00ff21;
            padding: 7px 10px;
            cursor: pointer;
            line-height: 50px;
            ser-select: none;
            -webkit-user-select: none; /* webkit (safari, chrome) */
            -moz-user-select: none; /* mozilla */
            -khtml-user-select: none; /* webkit (konqueror) */
            -ms-user-select: none; /* IE10+ */
        }
                @font-face {
            font-family: 'FontAwesome';
            src: url('fonts/fontawesome-webfont.eot?v=4.1.0');
            src: url('fonts/fontawesome-webfont.eot?#iefix&v=4.1.0')format('embedded-opentype'), url('fonts/fontawesome-webfont.woff?v=4.1.0') format('woff'), url('fonts/fontawesome-webfont.ttf?v=4.1.0') format('truetype'), url('fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular') format('svg');
            font-weight: normal;
            font-style: normal;
        }

        .icon {
            display: inline-block;
            font-family: FontAwesome;
            font-style: normal;
            font-weight: normal;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }


        /* makes the font 33% larger relative to the icon container */
        .icon-lg {
            font-size: 1.33333333em;
            line-height: 0.75em;
            vertical-align: -15%;
        }
          .icon-eye:before {
            content: "\f06e";
        }

        .icon-eye-slash:before {
            content: "\f070";
        }
    </style>
</head>
<body>
    <h2>Welcome to Code Solutions</h2>

    <div style="margin-bottom: 10px;">
        Enter your password in below textbox
    </div>
    <input id="txt_Password" class="textAreaBoxInputs"type="password">
    <span id="ShowHidePassword" class="dvShowHidePassword hint--top hint--bounce hint--rounded"
        data-hint="Show" onclick="ShowHidePassword(this.id);"><iclass="icon icon-eye"></i>
    </span>
   
    <p>Please click to see the password</p>
</body>
</html>
Read More