Oh ye Gods of Style, I have been having fun making buttons with CSS:
<div class='cssnav2' >
<a href='#'
onClick="docume nt.location.hre f='/catalog/index.php?brand =94'">
<img src='images/Scart_buttonl.j pg' alt='Continue Shopping' />
<span>Continu e Shopping</span>
</a>
</div>
..cssnav2{
background-image:url(image s/Gcart_buttonl2. jpg);
width: 180px;
}
..cssnav2 a:hover img{visibility: hidden}
..cssnav2 span {
position: relative;
float: left;
left: 5px;
top: -22px;
margin: 0px;
padding: 0px;
cursor: pointer;
width: 190px;
height: 14px;
text-align:center;
}
Now I want to use this technique for form submit buttons. Is this
possible ? How do I do it ?
Here is the button I want to replace:
<input type='hidden' name='login_cre ate' value='yes'/>
<input type='image' src='images/Scart_create.jp g' name='login_new '>
When the user hits the button, the next page looks for 'login_create' to
equal 'yes'
<div class='cssnav2' >
<a href='#'
onClick="docume nt.location.hre f='/catalog/index.php?brand =94'">
<img src='images/Scart_buttonl.j pg' alt='Continue Shopping' />
<span>Continu e Shopping</span>
</a>
</div>
..cssnav2{
background-image:url(image s/Gcart_buttonl2. jpg);
width: 180px;
}
..cssnav2 a:hover img{visibility: hidden}
..cssnav2 span {
position: relative;
float: left;
left: 5px;
top: -22px;
margin: 0px;
padding: 0px;
cursor: pointer;
width: 190px;
height: 14px;
text-align:center;
}
Now I want to use this technique for form submit buttons. Is this
possible ? How do I do it ?
Here is the button I want to replace:
<input type='hidden' name='login_cre ate' value='yes'/>
<input type='image' src='images/Scart_create.jp g' name='login_new '>
When the user hits the button, the next page looks for 'login_create' to
equal 'yes'
Comment