Jump to content

Buttons without using ul or input (sliding door technique)


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.