Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 11-16-2007, 02:54 AM CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
We’re using CSS mouse over effect to pop up larger image.
We added shadow effect to that window but it wouldn’t come up in FF.

Is there something we can do to have the same effect in both browsers?

To see what I mean, please visit AMRAY Web Directory

Thanks for taking your time


fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2007, 03:42 AM Re: CSS Shadow
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
CSS filters are proprietary to IE. Have a look at;

http://www.mandarindesign.com/opacity.html

http://www.mathertel.de/AJAXEngine/S...hadowdemo.aspx
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-16-2007, 04:39 PM Re: CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
Thanks Chris but, neither sample will work for us and here is why

This is our page code part

<a class="thumbnail" href="!!url!!" target="_blank">!!thumb!!<span>!!thumb!!</span></a>

and this is CSS

.thumbnail img{
position: relative;
z-index: 0;
border: 1px solid gray;
padding: 0px;
width: 111px;
height: 82px;
}

.thumbnail:hover{
background-color: transparent;
z-index: 1;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
padding: 0px;
width:435px;height:325px;
filter:shadow(color:#333333,strength:12, direction:135);
margin-left: 50px;
visibility: hidden;
}

.thumbnail span img{ /*CSS for enlarged image*/
border: 5px solid brown;
padding: 0px;
width: 400px;
height: 300px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
position: fixed;
visibility: visible;
bottom: 200px;
left: 175px; /*position where enlarged image should offset horizontally */
}


As you can see there is no <DIV> but pure 100% CSS that work like a charm
and all we need is the same kind of elegant solution that we can apply to have shadow
on the right and bottom or around whole image. Good example would be Ask.com


fastreplies

Last edited by fastreplies; 11-16-2007 at 08:41 PM..
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 11-18-2007, 02:55 PM Re: CSS Shadow
shivaji's Avatar
Ultra Talker

Posts: 318
Trades: 0
Hi,
you can simple to insert image background. I am insert your small shadow for try and works fine. When you insert right image just carefully change position.

Code:
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
position: fixed;
visibility: visible;
background-image: url('http://www.amray.com/images/thumb-bg.gif');
background-repeat: no-repeat;
background-position: 299px 226px;  
bottom: 200px;
left: 175px; /*position where enlarged image should offset horizontally */
}
Shivaji
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels

Last edited by shivaji; 11-18-2007 at 02:56 PM..
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 11-18-2007, 03:44 PM Re: CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
Thanks Shivaji for your suggestion but...
it's not working. No BG image at all.






fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 11-18-2007, 07:43 PM Re: CSS Shadow
shivaji's Avatar
Ultra Talker

Posts: 318
Trades: 0
Ah, sorry. You wrote "Good example would be Ask.com" and they use bg images.

Shivaji
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 11-18-2007, 09:00 PM Re: CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
Quote:
Originally Posted by shivaji View Post
Ah, sorry. You wrote "Good example would be Ask.com" and they use bg images.
ask.com uses jave and CSS, we're trying to use CSS only

I think we need something that will put BG image below Large Image

.thumbnail:hover span{ /*CSS for background image on hover*/

whereas BG image just slightly larger than principal Image


fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 11-19-2007, 08:16 AM Re: CSS Shadow
shivaji's Avatar
Ultra Talker

Posts: 318
Trades: 0
Quote:
I think we need something that will put BG image below Large Image
That is exactly what I am sugest to you.
BTW background-image: url( is valid W3 CSS

.thumbnail:hover span{ /*CSS for background image on hover*/

and

.thumbnail:hover span{ /*CSS for enlarged image on hover*/

is the same css definition. Of course you can use separately definition for background.

Code:
.thumbnail:hover span{ /*CSS for background image on hover*/
background-image: url('http://www.amray.com/images/someImage.gif');
background-repeat: no-repeat;
background-position: 10px 10px;  
}

Shivaji
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 11-19-2007, 05:59 PM Re: CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
Thanx shivaji

With your help and little twicking it's work like a charm



fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 11-29-2007, 11:07 PM Re: CSS Shadow
Banned

Posts: 2,898
Location: Canada
Trades: 0
Something else.

How can I make this code cross-browser compatable?






fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Shadow
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31223 seconds with 12 queries