Jump to content

Sliding Window?


herghost

Recommended Posts

Hi all, I have been using this css as a sliding door technique for buttons.

a.button {
    
background: transparent url('../images/bright.png') no-repeat scroll top right; 
display: block;
float: left;
height: 35px; 
margin-right: 6px;
padding-right: 20px; 
text-decoration: none;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:bold;
}
a.button span {
background: transparent url('../images/bleft.png') no-repeat; 
display: block;
line-height: 22px; 
padding: 7px 0 5px 18px;
} 
a.button:hover span{
text-decoration:underline;
color:#00F;
}

 

What I am trying to do is create a window style instead (buttons vertical)

 

My two images have dimensions as follows

 

top image : 200x580

buttom image 200x8

 

Basically I have between 3-4 lines of text to go in each 'window' as well as an tweet this button.

 

Any pointers? I have been playing around trying to configure the door code for hours!

 

Link to comment
Share on other sites

HTML:

<div id="outer">
  <div id="inner">
    <p>Line 1</p>
    <p>Line 2</p>
    <p>Line 3</p>
  </div>
</div>

CSS:

#outer
{
  background:url(big-image.png) repeat-y;
}
#inner
{
  background:url(bottom-image.png) no-repeat left bottom;
}

 

Try that.

Link to comment
Share on other sites

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.