This is topic PHP Question in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=050787

Posted by Phanto (Member # 5897) on :
 
I want to use the css trick for drop shadows where you have a really large drop shadow file that you use to backdrop an image. The list apart method.

I am using drupal/php for this. The problem is that when I try to create a div element around the picture, the div takes up a lot more space than the image does. When I change the div element to a span element, just the image is chosen, but that's no good as span =/ div.

Ideas?
 
Posted by fugu13 (Member # 2859) on :
 
Did you float the div as it says in the article?
 
Posted by Phanto (Member # 5897) on :
 
*blushes shamefacedly*

Thanks!

After doing that, however, while it works, I need the picture itself with the drop shadow to be in the center of the element.
 
Posted by fugu13 (Member # 2859) on :
 
Depending on the exact nature of the centering, you should be able to get this with YAD (Yet Another Div) wrapping the inner div, setting the left position of the outer div to where you want it, or you might be able to put a position:relative on the floating div and tweak it into the location you want.
 
Posted by Phanto (Member # 5897) on :
 
God bless you, fugu13.
 
Posted by Kwea (Member # 2199) on :
 
Hi. My name is Kwea.


Welcome to Earth.


I feel like I should enter this into babelfish or something. [Wink]
 
Posted by Phanto (Member # 5897) on :
 
I appreciate that this is all somewhat jargon-ish, so probably shouldn't post here. On the other hand, it's so convienent and I keep getting great feedback from tech guru fugu. I hope I'm not confusing the non-techies too much [Wink] .
 
Posted by Kwea (Member # 2199) on :
 
I was just kidding. I think that Hatrack is cool for a lot of reasons, but one of them is because whenever I have a question I can ask it here and almost always get a response, even if the subject matter is geeky, or obscure.

[Smile]
 
Posted by Phanto (Member # 5897) on :
 
And I'm happy when I can say the phrase tech guru fugu ^^
 
Posted by erosomniac (Member # 6834) on :
 
I got all excited to see a PHP question thread, but fugu beat me here. [Frown]
 
Posted by Phanto (Member # 5897) on :
 
If you want I could make another one. Not because I'm clueless, but just for your benefit. Right. [Wink]
 
Posted by TomDavidson (Member # 124) on :
 
Eros: I'm pretty sure that fugu beats everyone to PHP threads. [Smile] Heck, I'm half-convinced he's set up something to scrape the site for any mention of "Perl" or "PHP." *grin*
 
Posted by fugu13 (Member # 2859) on :
 
If I had something set up to scrape for mentions of "Perl" it would also automatically post "Switch to Python."
 
Posted by Mike (Member # 55) on :
 
Meh, python's ok, but its dependence on indentation relegates it to a curiosity at best. Haven't we learned anything since make(1)? [Wink]
 
Posted by fugu13 (Member # 2859) on :
 
Curiousity at best? It is frequently one of the three main languages for major software shops (such as Google, to pick one at random [Wink] ), and there are numerous startups built on it. Major parts of the infrastructure applications in several Linux distributions are written in it.

And of course, you should be writing code with pretty much exactly the indentation python enforces; that your code has all the extra stuff only makes it less readable.

Except for very rare issues with copying and pasting code (which should be avoided anyways), indentation is never a problem. Even that usually isn't an issue, as most copy/pastes do something that works or are obviously messed up (and thus quickly fixed by selecting it all and adjusting the tab level in or out a level, as needed).

I'm going to assume you were joking [Razz]

edit: oh, and for at least a while (and I think still), by far most traffic on the internet was (is?) generated by python applications. You may have heard of bittorrent?
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2