473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Drop Shadow with CSS problem

Hi All,

I made a CSS Drop Shadow with help of www.alistapart.com.

http://www.halimsasmaz.com/DropShadow/test.htm

On above link, If I set IMG tag's Alignment attribute to Right it works
wrong.

How can I solve this problem?

Best Ragards,
Nuri AKMAN

Feb 22 '06 #1
2 1939
Hiya Nuri

You have to remove align="right" from the last img tag then make a
second dropshadow class with "float:right", this almost works but the
text overlaps the image so add margin-left:10px to stop this.

Change the css to

.DropShadow {
background: url(shadow.gif) no-repeat right bottom ;
clear:both;
float:left;
}

.DropShadowRightAlign {
background: url(shadow.gif) no-repeat right bottom ;
clear:both;
float:right;
margin-left:10px;
}

.DropShadow img,
.DropShadowRightAlign img {
bottom: 6px; right: 6px;
position: relative;
clear:left;
border: 1px solid #999999;
padding: 4px;
}

and in the html change the last img to

<td><div class="DropShadowRightAlign"><img src="test_files/1322.JPG"
alt="" border="0" height="180" hspace="0" width="135"></div>

Tim

Feb 22 '06 #2
Hello Tim,

My CMS content has users dynamic entrys including Images. I'm changing
IMG tag dynamicly with PHP.

Thanks your response. Do you know any other nice effect for drop
shadow?

Best Regards,
Nuri AKMAN

Feb 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: james | last post by:
Hi guys! I´ve got a centerd table on my site with a black 1 pixel border. What i would like to do is to add a drop shadow to the table. Anyone know if it's possible to create a drop shadow for a...
1
by: Paulo Jan | last post by:
Hi all: I've got the following example page: http://www.arrakis.es/~paulj/test.html, where I try to simulate a drop shadow effect in the upper and lower <DIV>s. It works perfectly in Mozilla,...
3
by: surajitkhan | last post by:
Hi Can anyone tell me how to make a drop shadow for a table or td through css. I dont want to use any image. I want it done through background color. Thanks Surajit
3
by: Pawel | last post by:
Hi, What is the best way to add a drop shadow around table borders with just html and css that looks nice and works in most browsers? I have written a program for making online web site...
0
by: juglesh | last post by:
Hello, I've searched and d/l'd but cant seem to find a way of creating a semi-transparent drop shadow for an image. Let me say, be fore I go on, I *do not* want one of those scripts that resizes...
3
by: mechphisto | last post by:
So I'm Web browsing and I go to rottentomatoes.com, and I see something interesting: If you go to any movie page, you'll see on the top left, above and below the film poster image, the names of a...
9
by: adastic | last post by:
Any idea how this guy does his AJAX drop shadows (see the post title "New Year New Site" in blue with the light gray in larger font offset from it): ...
2
by: Peter Morris | last post by:
I have a 200x200 PNG file which has an Alpha layer. What I would now like is a 200x200 image that is completely black, but with the same alpha mask. This is so that I can use it as a drop shadow...
0
by: Peter Morris | last post by:
A while ago I asked how to replace an image with a solid black colour whilst preserving the alpha mask/channel, this was so that I could automatically create a drop shadow. For future reference of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.