I am trying to make it so that when the cursor is hovered over an image, text will display at the center of the image. Text such as &quot;Facials&quot;, &quot;Skin Care Solutions&quot; etc. should display at the center of their corresponding images when the cursor hovers on to it. A overlay effect where the images changes color when be hovered over has been added. Here is a picture for context.  HTML &lt;section id=&quot;service&quot;&gt;     &lt;div class=&quot;title-text&quot;&gt;     &lt;p&gt;SERVICES&lt;/p&gt;     &lt;h1&gt;Personalized Special Care&lt;/h1&gt;     &lt;/div&gt;         &lt;div class=&quot;service-box&quot;&gt;         &lt;div class=&quot;single-service&quot;&gt;             &lt;img src=&quot;images/facials.PNG&quot;&gt;             &lt;div class=&quot;overlay&quot;&gt;&lt;/div&gt;             &lt;div class=&quot;service-desc&quot;&gt;                 &lt;h3&gt;Facials&lt;/h3&gt;                  &lt;hr&gt;               &lt;/div&gt;         &lt;/div&gt;         &lt;div class=&quot;single-service&quot;&gt;             &lt;img src=&quot;images/skin_solutions.PNG&quot;&gt;              &lt;div class=&quot;overlay&quot;&gt;&lt;/div&gt;             &lt;div class=&quot;service-desc&quot;&gt;                 &lt;h3&gt;Skin Care Solutions&lt;/h3&gt;                  &lt;hr&gt;             &lt;/div&gt;          &lt;/div&gt;         &lt;div class=&quot;single-service&quot;&gt;             &lt;img src=&quot;images/lash.PNG&quot;&gt;             &lt;div class=&quot;overlay&quot;&gt;&lt;/div&gt;              &lt;div class=&quot;service-desc&quot;&gt;                 &lt;h3&gt;Lashes&lt;/h3&gt;                  &lt;hr&gt;             &lt;/div&gt;          &lt;/div&gt;         &lt;div class=&quot;single-service&quot;&gt;             &lt;img src=&quot;images/microblading.PNG&quot;&gt;             &lt;div class=&quot;overlay&quot;&gt;&lt;/div&gt;             &lt;div class=&quot;service-desc&quot;&gt;                 &lt;h3&gt;Microblading&lt;/h3&gt;                  &lt;hr&gt;              &lt;/div&gt;          &lt;/div&gt;         &lt;div class=&quot;single-service&quot;&gt;             &lt;img src=&quot;images/eyebrow_treatment.PNG&quot;&gt;             &lt;div class=&quot;overlay&quot;&gt;&lt;/div&gt;             &lt;div class=&quot;service-desc&quot;&gt;                 &lt;h3&gt;Eyebrow Treatment&lt;/h3&gt;                  &lt;hr&gt;              &lt;/div&gt;           &lt;/div&gt;     &lt;/div&gt;   &lt;/section&gt;  CSS #service{     width: 100%;     padding: 70px 0;     background: #b4edfa;     } .service-box{     width: 80%;     display: flex;     flex-wrap: wrap;     justify-content: space-around;     margin: auto; } .single-service{     flex-basis: 50%; /*get two services in 1 row*/     text-align: center;     border-radius: 7px;     margin-bottom: 15px;     color: #fff;     position: relative; } .single-service img{     width: 85%; /*resize image*/     border-radius: 7px; } .overlay{     width: 100%;     height: 100%;     position: absolute;     top: 0;     border-radius: 7px;     cursor: pointer;     background: linear-gradient(rgba(0,0,0,0.5),#93dced);     opacity: 0;     transition: 1s; }  .single-service:hover .overlay{     opacity: 1; } .service-desc{     width: 80;     position: absolute;     bottom: 0%;     left: 50%;     opacity: 0;     transform: translateX(-50%);     transition: 1s; } .service-desc h3{     line-height: 20% } .service-desc p{     font-size: 15px;     }  hr{     background: #fff;     height: 2px;     border: 0;     margin: 15px auto;     width: 60%; }  .singler-service:hover .service-desc{ /*create hovering effect that shows text*/     bottom: 40%;     opacity: 1; }
I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).
Entering U.S. exactly on the day of visa "expiration date" I'm a bit surprised from my US Visa. I plan to go to a conference on 3rd of April. Amazingly though, the visa expiration date is written as April 3rd.  So what does that mean. Can I enter the US on April 3rd? or should I enter one day earlier? Javascript to sort contents of select element is there a quick way to sort the items of a select element? Or I have to resort to writing javascript?  Please any ideas.  &lt;select size="4" name="lstALL" multiple="multiple" id="lstALL" tabindex="12" style="font-size:XX-Small;height:95%;width:100%;"&gt; &lt;option value="0"&gt; XXX&lt;/option&gt; &lt;option value="1203"&gt;ABC&lt;/option&gt; &lt;option value="1013"&gt;MMM&lt;/option&gt; &lt;/select&gt; Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies &amp; omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application? I am trying to prove the following by Mathematical Induction:  $$\sum_{i=1}^n i\cdot i! = (n+1)!-1\quad\text{for all integers $n\ge 1$}$$   My proof by Induction follows: First prove $P(1)$ is true,  $$\sum_{i=1}^1 i\cdot i! = (1+1)! - 1$$  Then, for all integers $k &gt;= 1$, if $P(k)$ is true then $P(k+1)$ is also true,  $$ \sum_{i=1}^k i\cdot i! = (k+1)! - 1$$ Then, we must show that $P(k+1)$ is true   $$ \sum_{i=1}^{k+1} i\cdot i! = ((k+1)+1)! - 1\\ \sum_{i=1}^{k+1} i\cdot i! = (k+2)! - 1$$  I am currently struggling with the next step to show that $P(k)$ is equal to $P(k+1)$. How would I finish this prove by induction? If the magnetic field doesn't polarize does it follow the electric field path of propagation? or does it vanish? Can I use a USB stick for a normal install? (to get platform adaptability) So I know I can make a persistent LiveUSB whereby there would be anywhere up to 4GB (I think that's the max) of persistent storage for downloads, etc.  I am asking the opposite, in a sense. I'd like to configure a USB install to have the platform adaptability that a Live OS offers while fully utilizing the 120GB of space I have.  In essence I'm hoping to have a boot up install that reconfigures most/all the hardware/drivers as necessary every boot as I'd like to be able to boot off of it on nearly any machine. (Within reason - they will all be 64-bit)  The biggest gripe with doing multi-platform booting is the video driver stuff. Sometimes the system I'm booting off of is AMD, sometimes Nvidia, sometimes Intel.  Alternatively, a usable answer may be a way to better configure the LiveUSB setup for more storage utilization and customization. Can a black hole absorb photons whose wavelengths are greater than the BH horizon size? I am trying to prove the following:  In $C[0,1]$ the functions that preserve the rationals (i.e. $f(\mathbb{Q})\subseteq \mathbb{Q}$) are dense.  So far, I have not made much progress- I am aware that $A$ is dense in $B$ iff $A$ has non-empty intersection with each open set $U$ in $B$ but am not sure how to apply this definition. I have also thought about showing that the closure of $X$ (where $X$ is the set of functions that preserve the rationals) is equal to $C[0,1]$ by a double-inclusion proof but I have also made no progress with this approach. Am I on the right track or should I change my approach? SF novel about one-way scientific expedition to inhabited planet, where telepathic aliens "talk" sort of ++like this++ and ~*~this~*~ I'm looking for a novel I read in the mid-to-late 1990s. It was a science fiction novel about an expedition of scientists sent at sub-light-speed (maybe in cryo-sleep?) to investigate a star system. Once there they set up a permanent scientific outpost.  There was at least one inhabited planet in the system, with a sentient species that communicated telepathically. The aliens' speech was represented with various symbols instead of quotation marks, with each named character having (I think) its own characteristic set of symbols, as in the title of the question. The scientists are eventually able to communicate with these (generally friendly) aliens.  The thing I remember most clearly is the end of the book. This was a one-way trip for the scientists, so gradually they all die off from various causes. When the next-to-last member of the crew dies of old age, the survivor is looking for an epigraph for her funeral, and (ironically, considering my current plight) can't find it in his search of the electronic library. He finally discovers it under "humor" because it's by Mark Twain: "Wherever she was, there was Eden." (This quote, of course, I found immediately in  and many other sources; it's from Eve's Diary.)  Other pieces of information I'm less sure of:   I don't think the planet was hospitable to humans; it may have been something like a gas giant, with the aliens "swimming" through the gas. I think the scientists stayed in an orbital space station, though they may have made expeditions to the planet in vehicles or protective suits. There may have been a "twin" planet, or a moon in an eccentric orbit, that caused periodic "flares" of some sort on the aliens' planet. There might have been some conflict between the crew early on, maybe because there was a non-scientific (military) commander, or perhaps just because people have conflict. I think the author was of sort of middling fame; respected and known by SF enthusiasts, but not a superstar like Asimov or Clarke. Almost certainly male, and probably with a professional science background. I think the science was fairly authentic, although the first-contact bit was obviously highly speculative. Is it OK to crosspost Stack Overflow questions, now that the Portuguese SO is open? How do I pass a function as a parameter to in elisp? I'm trying to pass one method to another in elisp, and then have that method execute it.  Here is an example:  (defun t1 ()   "t1")  (defun t2 ()   "t1")  (defun call-t (t)   ; how do I execute "t"?   (t))  ; How do I pass in method reference? (call-t 't1) If you are root, and you issue   rm -rf /    Then how far can the command go? Can you recover data from this kind of an action? Even after the binaries are gone, would the running processes still be active? What would it take to make the same physical machine boot again? What files would you need to restore to make this happen?  I could try this on a VM and see, but I want to know the rationale behind what to expect if I do this. Using special auto start servlet to initialize on startup and share application data Where can I find information about past versions of iOS and code-signing windows? I have an iPad 2 that is currently running iOS 5.0.1. I'm generally happy with it but some applications require a more recent iOS version. So I started to look into upgrading it, but the only upgrade that it offers is to iOS 7.  From the look of it I don't like the new design of iOS 7 too much and also upgrading to a version this fresh doesn't appeal to me. So my question is: is there a way to upgrade to some version of iOS 5.x or iOS 6.x instead of upgrading to iOS 7? I have no root access on this machine.  I would like to know if there is a way I can download Ubuntu packages and install them as non-root?  Probably in my ~/bin or ~/usr/share or something like that? Would that work? How to create a node with submissions of a webform? I'm using Drupal 7 and created a content type 'NewArticle' with the fields 'Title', 'Text' and 'Image'. Users have the permission to create a 'NewArticle', but I don't like the way of displaying the administration bar in order to let them create a 'NewArticle'.  Instead, I'd like to work with . My goal is to create a Webform with exactly the same fields as the content type 'NewArticle'. So what I want is: when users filled in the form and submit it, a new node 'NewArticle' is created with the submitted information.  How can I do this? Are there modules that make this possible? I can't find any... How to fix "error: unknown filesystem. grub rescue> I get this error:  Error: unknown filesystem. grub rescue&gt;   I'm not exactly sure what I did. I believe I installed Ubuntu over Windows on my Acer netbook. I then tried to install , but it wouldn't start installing.  I turned the netbook off and back on. Now I get the error.  I have read a lot of other questions like this, but in my case I cannot boot a CD. If I put a Ubuntu CD or a Linux Mint CD into my external CD/DVD drive and change my BIOS to boot the CD-ROM first, it just gives me the same error screen.  Update copied from comment dated 2012-05-26 02:54:29Z  Here are some results from my commands:   grub rescue&gt;ls (hd0) (hd0,msdos5) (hd0,msdos1)  grub rescue&gt;ls (hd0,msdos5) unknown filesystem  grub rescue&gt;ls (hd0,msdos1) unknown filesystem  grub rescue&gt;ls (hd0) unknown filesystem Why does Windows only show about 3.5 GB of my 4 GB of RAM? I recently upgraded my computer's RAM to 4&nbsp;GB. My 32-bit Windows installation shows only 3574&nbsp;MB of the memory. How can I make Windows use the full amount of RAM? I asked a  recently, looking for examples of an online tool. Per the , I answered my own question with a few examples that I had already found. I did this so that these examples would be included in the answers, along with the rest.  The question has received only down votes and insults saying that this shouldn't be done.   Should I not answer my own questions? I recently got the book "selected problems in real analysis", and I'm stuck solving the very first problem  $(u_n)$ is a binary sequence iff it only contains $0$ and $1$ in the sequence  Let $A$ be the set of all binary sequences  I have to prove that $A$ and ${2}^{\mathbb{N}}$ have the same cardinality, that is to say there exists a 1-1 function from one set to another  I've thought about maybe considering integers as base-2 numbers  Thanks for your help