Tutorial, Scalable HTML Box With Rounded Corners & Transparent Shadow

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,805
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 11, 2009

Here's a complete tutorial on how to make a scalable HTML box with rounded corners and transparent shadow from scratch. I used Adobe Photoshop to design the box and cut out the needed images, but you can use any other software, I just find Photoshop the easiest to use. The transparency of the shadow is done through 24bit PNG images for smooth blending, you can also use GIF images but you'll get rough edges because of the single-color alpha channel. If you're having trouble figuring out the HTML, you can find it on the web development section of my personal website at vxcriss.com

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (vxcriss)

  • thanks nice one..

    but i have a problem..

    i want to create several boxes like this is my html file..but i am thinking that it might be messy and redundant because i want to create at least 8 boxes..

    any ideas on how to lessen the code or create a css file for the box? thanks

  • To lessen the code you can try using a div and css approach instead of my pure table example. However even the div approach is pretty bulky.

    An alternative would be using a client-side template parser. I have a demo of a javascript template parser on my website under the web development section, you can download a .zip archive with everything you need from there. The version that I have there is more of a beta version but it does work and the code is clean and well documented.

  • MAN I LOVE YOU! THANK YOU SO MUCH FOR THIS!

    Can I use this technique without shadows (only fill and background color)?

  • Of course you don't need a shadow. Just download the source files that go with this tutorial from my website, open the .psd file (photoshop file), select the rounded box layer, right click it, select blending options, and uncheck "shadow". Then use "save for web", to export the images that form the corners and the borders and overwrite the old images that had shadow. And that's it.

  • The source HTML, images and .psd files are also avilable on my personal website under the web development -> tutorials section if anyone needs them.

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • GREAT NICE MUSIC TOO

  • Thanks again :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more