Jump to content

Creating a shadow effect


Agent007
 Share

Recommended Posts

hi all,I have a couple of images on a web-page. Is it possible to add a shadow effect to an image using just javascript or CSS or any other language? Should be able to display in FIrebird and IE.. Thing is I dont want to recreate the thumbnails everytime.thanks.

Link to comment
Share on other sites

Guest LilBambi

Yes you can do this by applying two borders with CSS.If you want a bottom left shadow, simply apply a border to the bottom and left side of the element.CSS is so cool! :)

Link to comment
Share on other sites

Thing is I dont want to recreate the thumbnails everytime.
I assume that you don't want to create roll over images then?If you can do what you'd like with CSS/JavaScript without creating other images, go for it! But if that doesn't produce the desired effect, making another image with a shadow on it would be the only other way i can think of doing it.Good luck ;)
Link to comment
Share on other sites

LilBambi,I came across that tutorial sometime back...The effect wasnt satisfactory so I guess CSS is out of the question. Have found an alternative workaround. Read below....SonicDragon,Here's what I did (using frontpage)1) Create a blank image (a couple of pixels more than the thumnail) and apply a shadow effect to it.2) Create a table and select the newly created blank image as its background.3) Insert the thumbnail into the table. Since the size is the same, u will c only the shadow..This procedure is OK if u have a small amt of thumbnails...Inorder to change the displayed thumbnails, just FTP the new ones with the same filename and size as the existing ones. Layout remains same and u get the shadow effect too!ciao.

Link to comment
Share on other sites

Guest LilBambi

Sorry you had already looked at that one, but glad you found something that works for you Agent007. :thumbsup: And thanks for posting it so others who might want to do the same thing through tables will have a good jumping point.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...