Jump to content

Buttons without using ul or input (sliding door technique)


Jarod

Recommended Posts

how do I make a button without using unordered lists or inputs? I am using the sliding doors technique, which seems to not be working at all... I get a weird image like this:

 

1ylvev.png

 

here is the code I used:

<style>
.category { background: url("images/button_slide.png") no-repeat top right; }
.category a { background: url("images/button_door.png") no-repeat top left; display: inline-block; padding: 8px 15px; }
</style>

<span class="category"><a href="#">Link</a></span>

 

Any reason why it's looking like the image above???

still not working  :(

 

<style>
a.category { background: url("images/button_slide.png") no-repeat top right; }
a.category span { background: url("images/button_door.png") no-repeat top left; display: inline-block; padding: 8px 15px; }
</style>

<a class="category" href="#"><span>Category</span></a>

 

btw I uploaded the images, maybe u can fix them??

 

1440a3c.png2zsp93m.png

 

<style>
a.category { background: url("http://i47.tinypic.com/2zsp93m.png") no-repeat top right; }
a.category span { background: url("http://i48.tinypic.com/1440a3c.png") no-repeat top left; display: inline-block; padding: 8px 15px; }
</style>

<a class="category" href="#"><span>Category</span></a>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style>
p.category { background: url("http://i47.tinypic.com/2zsp93m.png") no-repeat top right; float:left }
p.category span { background: url("http://i48.tinypic.com/1440a3c.png") no-repeat top left; padding: 8px 15px; float:left }
a{cursor:hand;}
p{margin:0px; padding:0px;}
</style>
</head>

<body>
<p class="category"><a href="#"><span>Category</span></a></p>
</body>
</html>

 

vineet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.