473,813 Members | 3,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1961
Hiya Nuri

You have to remove align="right" from the last img tag then make a
second dropshadow class with "float:righ t", 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;
}

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

.DropShadow img,
.DropShadowRigh tAlign 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="DropShad owRightAlign">< 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
2280
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 table? Does anyone has an example? Thanks, James
1
3237
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, but in IE 6, the image that forms the lower "drop shadow" doesn't stick to the bottom <DIV>; instead, there's some space between it and the <DIV>. Can anybody shed some light on why this happens? I'm new to stylesheets, so maybe it's some...
3
2787
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
33772
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 calendars, and I want to add a drop shadow effect around the calendars, without having to use images.
0
3539
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 your image a bit to the left and bottom, and then grafts a shadow onto it. I want to use a full shadow (it would be about as big as the image) and shift it a bit with CSS. So, I will have the image sitting in a DIV which will have the shadow as...
3
3416
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 couple of the actors and the director. Those names are orangeish, but with a black drop shadow! And it's just text, not images. I could really use that technique on my Web site where I have some text over an image that needs to "pop" and be in...
9
2382
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): http://www.dhtmlnirvana.com/blog/archives/New-Year-New-Site.html ...and could this technique be used to create a more conventional same-font/slightly offset text drop shadow? I see from this post that sometimes text drop shadows are done in a way that leaves the text showing up double in...
2
7929
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 behind the PNG when drawing to a target image. I cannot see how I can draw to a Graphics without destroying the Alpha. Any hints?
0
1550
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 anyone seeking the answer here it is: private static void MakeShadow(Bitmap dest) { BitmapData bits = dest.LockBits(new Rectangle(0, 0, dest.Width, dest.Height), System.Drawing.Imaging.ImageLockMode.ReadWrite,...
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10669
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10426
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7686
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5707
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.