By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

drop shadow

html on wheels
P: 35
Does anyone know whether or not it is possible to add a drop shadow to a graphic using hml?
Mar 9 '07 #1
Share this Question
Share on Google+
4 Replies


ronverdonk
Expert 2.5K+
P: 4,258
Thanks to Stuart Nicholls, try this one
[html]<style>
.out {
display:block;
background:#bbb;
border:1px solid #ddd;
position:relative;
margin:1em 0;
}
.in {
text-align:center;
background:#fff;
border:1px solid #555;
position:relative;
padding:5px;
font-weight:normal;
}
.rtin {
left:5px;
}
.tpin {
top:-5px;
}
.image {width:412px; padding:0;}
</style>
<div class="out image">
<div class="in rtin tpin">
<img src="photo1.jpg" title="My Picture" />
</div>
</div>[/html]

Ronald :cool:
Mar 9 '07 #2

html on wheels
P: 35
That's a huge help to me, Ronald. Thanks a lot. I have two questions about it.

1. Any web source for info on this? The two html books I have do not address this. I have also tried "html drop shadow" in IE and did not come up with anything (I just ask because I am not yet up to speed on some of the coding used to do this).

2. I noticed that during the process of trying to mold some of this code to my own ends, I went back to Notebook and the whole configuration had been skyjacked - code had been capitalized and sort of squeezed together, meta tags added - all this made it more confusing to read. I have had this happen to me once before. What is going on? Is there any way to avoid this?
Mar 10 '07 #3

ronverdonk
Expert 2.5K+
P: 4,258
As mentioned, I had the sample from the Stuart Nicholls site. What it actually does is place an image over a grey box, simulating the shadow. Look there to see if you can get any more info http://www.cssplay.co.uk/index.html . Otherwise contact Stu himself.

On your other question: I really don't know anything about Notebook or its workings. I never use those applications / services.But maybe some member in this forum knows more than I do on that subject.

Ronald :cool:
Mar 10 '07 #4

Expert 100+
P: 1,892
I'm not familiar with Notebook either.
Mar 11 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.