Sunday, June 28, 2015

#box{
width:500px;
height:500px;
background: -webkit-linear-gradient(bottom,red,yellow);
background: -moz-linear-gradient(bottom,red,yellow);
background: -ms-linear-gradient(bottom,red,yellow); 
background: -o-linear-gradient(bottom,red,yellow);
}


 */   use TOP, BOTTOM, LEFT, RIGHT for gradient direction     */

Transparency with gradient

body {
background: -webkit-linear-gradient(black, transparent 70%),
                      url('images/sky.jpg'), white;
background-repeat: no-repeat;
background-attachment:fixed;
}

How to give gradient to text

h1{
font-size:72px;
font-family:sans-serif;
text-transform:uppercase;
background: -webkit-linear-gradient(yellow,red);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

Friday, June 12, 2015

HTML Contact Form

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
.title_form{font-size:16px; padding:10px; width:49%; margin-left:10px; margin-top:20px; float:left; border:1px solid #333;}
.title_form > form{width:100%; float:left;}
.title_form > form label {float: left;padding-left: 20px;padding-top: 10px;width: 208px;}
.career_area ul{width:100%; float:left; padding:10px;}
.career_area ul li{width:100%; float:left; line-height:1.5em;}
/*.123{width:100%; text-align:center; float:left;}*/

select {padding: 8px;width: 200px;}
button:hover{background:#f00;}
.title_form > h1 {background: #333 none repeat scroll 0 0;color: #fff;margin-bottom: 20px;}

.title_form input[type="submit"] {
    background: #666 none repeat scroll 0 0;
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    margin: 0 auto;
    text-align: center;
}
input{padding:10px;}
</style>
</head>

<body>


   <div class="title_form">
   <A NAME="top"></A>
   <h1>Apply for job</h1>
   <form method="post">
  <p> <label for="name">Name</label><input type="text" id="name" name="name" value="" placeholder="Your Name"  required></p>
<p><label for="tel">Contact Number</label><input type="tel" id="name" name="contact_number" value="" placeholder="9800098000" required></p>
<p><label for="email">Email Address </label><input type="email" id="name" name="email" value="" placeholder="abc@sample.com" required></p>        
<p> <label for="name">Apply for the post of :</label>
<select>
  <option value="volvo">PHP</option>
  <option value="saab">Web Designing</option>
  <option value="opel">Graphic Designing</option>
  <option value="audi">Mobile Apps</option>
</select>
</p>
<p><label for="attachment" class="123">Attach Resume </label><input type="file" id="name" value="abc@sample.com" required></p>
<p><label for="description" class="123">Description </label><input type="text" id="name" value="abc@sample.com" required></p>
 <p class="123"> <input type="Submit" name="submit" value="Submit"></p>
  
   </form>
  
   </div>
</body>
</html>

Wednesday, June 3, 2015

Form formatting input type

form{text-align:center;}
input[type=email]{
width:300px;
}

input[type=button]{
background:#06C;
border-radius:4px;
padding:5px 10px;
box-shadow:none;
color:#fff;
font-size:16px;
text-transform:uppercase;
}

Full page fixed background in css

body {
background: url(images/bg.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Thursday, May 28, 2015

@charset "utf-8";
/* CSS Document */

/* -------------------------------- 

reset style

-------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, main {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* -------------------------------- 

Primary style

-------------------------------- */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  /* you need to set this to assign to the main element a min height of 100% */
  height: 100%;
}

body {
  font-size: 100%;
  font-family: "Titillium Web", sans-serif;
  color: #4e6361;
  background-color: #f5f4e9;
  margin:0px;
  padding:0px;
  }

a {
  color: #043e8b;
  text-decoration: none;
}