Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    9
    Member #
    8387
    What is the easiest way to create a shadow behind a button, for use with CSS? I had originally designed the button with a shadow built in, but when I change the background color with CSS, I want the shadow to change with it. In other words, the shadow on a light background would be lighter than a shadow on a dark background. Is this possible?

  2.  

  3. #2
    Senior Member Trico's Avatar
    Join Date
    Feb 2004
    Location
    Nottingham, UK
    Posts
    894
    Member #
    5081
    You might want to look into .PNG transparency, unfortunately it isn't supported by all mainstream browsers.

  4. #3
    Junior Member wpein's Avatar
    Join Date
    Nov 2004
    Location
    Xiamen China
    Posts
    6
    Member #
    8120
    you with CSS like this?{filter:shadow(color=#cccccc,direction=135,strength =3);}
    maybe you can use some table,CSS like this:
    .tb1 {
    border-width: 1px 1px 1px 1px;
    border-style: solid;
    border-color: #aaaaaa #666666 #666666 #aaaaaa;
    }
    .tb2 {
    border-width: 0px 1px 1px 0px;
    border-style: solid;
    border-color: #aaaaaa;
    }
    .tb3 {
    border-width: 0px 1px 1px 0px;
    border-style: solid;
    border-color: #cccccc;
    }

    code like this:
    <table width="20" border="0" cellspacing="0" cellpadding="0" class="tb3">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb2">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb1">
    <tr>
    <td><form name="form1" method="post" action="">
    <input type="submit" name="Submit" value="OK">
    </form></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:50 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com