Sunday, 18 January 2015

CSS


  1. For TextBox and button effect adjustable 151114
    <style>
    .formtext{
     background: -moz-linear-gradient(center top , #FFFFFF, #EEEEEE 2px, #FFFFFF 25px) repeat scroll 0% 0% transparent;
         border-radius: 3px 3px 3px 3px;
         border: 1px solid #999999;
         box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
         margin: 0pt;
         padding: 5px;
         width: 300px;
            display:block;
            float:left
           }
    .formtext:hover{
     background: -moz-linear-gradient(center top , #FFFFFF, #ffffff 2px, #ffffff 25px) repeat scroll 0% 0% transparent;
         border-radius: 3px 3px 3px 3px;
         border: 1px solid #0092fc;
         box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
         margin: 0pt;
         padding: 5px;
         width: 300px;
           }
    .btnsubmit{
           background:#c83527;
           border:none;
           color:#fff;
           padding:10px 25px;
           font-size:20px;
           border-radius:2px;
           -webkit-border-radius:2px;
           -moz-border-radius:2px;
    }
    .btnsubmit:hover{
           background:#991e13;
           -webkit-transition: background .2s ease-in-out;
           -moz-transition: background .2s ease-in-out;
           -o-transition: background .2s ease-in-out;
           -ms-transition: background .2s ease-in-out;
           transition: background .2s ease-in-out;
    }
    </style>

    --Apply on
    <input type="text" name="Name" id="Name" class="formtext" style="width:50px;" />
    <td><button type="submit" class="btnsubmit" onclick="return SubmitValidation();" value="Submit">Submit</button></td>
    note :- u can change width as u wish difined in above text doesn't matter in css defined text.

    // awesome div design.

    <div style="background-color: #624e8e; line-height: 28px; color: #ffffff; font-weight: bold;
    padding: 0px 0px 0px 5px; font-size: 15px; margin: 0px 0px 10px;">Forklift Services</div>
    2.       Data Grid view look
        <style type="text/css">
            TABLE.gridCSS
            {
                border: 1px solid #999999;
                width: 100%;
            }
            TABLE.gridCSS th
            {
                background: none repeat scroll 0 0 #aeaeae;
                border-bottom: 1px solid #999999;
                border-right: 1px solid #999999;
                border-top: 1px solid #999999;
                color: #000000;
                font: bold 11px Verdana,Arial,Helvetica,sans-serif;
                padding: 6px;
                text-align: left;
            }
            TABLE.gridCSS td
            {
                background: none repeat scroll 0 0 #fff;
                border-bottom: 1px solid #999999;
                border-right: 1px solid #999999;
                color: #111111;
                padding: 6px;
            }
           TABLE.gridCSS td.alt
            {
                background: none repeat scroll 0 0 #f5fafa;
                color: #797268;
            }
            TABLE.gridCSS td.boldtd
            {
                background: none repeat scroll 0 0 #d5edef;
                color: #797268;
                font: bold 13px "Trebuchet MS" ,Verdana,Arial,Helvetica,sans-serif;
            }
        </style>
    3.       Generate Shadow on Form
    <style type="text/css" >
        .exhi_login_shade
    {
       
        background: #FAFAFA url('bg_box.jpg') no-repeat 0 0;
        box-shadow: 0 0 12px -1px black;
        height: auto;
        padding: 10px;
        position: relative;
        width:50%;
        float:right;
        margin:0 20px 0 0;
                   top: 0px;
                left: 0px;
            }
        </style>

No comments:

Post a Comment