The following piece of code will solve the problem:
background: url(‘../images/black_bg.png’) no-repeat center center fixed;
There is no placeholder attribute for the select tag. But there is a way around it. The following piece of code will help you solve the issue.
<select name=”browsers” required>
<option value=”” disabled selected>Choose a Browser</option>
Removing white background from a logo is really useful sometimes. It is annoying when you have a white patch behind the logo. There is a simple hack for this. We cold use magic tool from photoshop and can make it possible, but we could also use Microsoft powerpoint which is lying around in our applications.
Its quite simple. Open Microsoft Powerpoint and create a new slide. Now, go to the insert menu and click on the picture to insert a picture. Choose the appropriate image. After inserting the image, select the image on the slide and choose the color option from the picture tools menu. In the color drop down, select “set transparent color” and it should show a pen like cursor. Now, click on the white background of the image. That’s it, it magically removes the white background. It works most of the times but sometimes it doesn’t. You can right click on the image and select save as picture to save the image to your desired location. If you open the exported image in a any kind of image browsers, you can see that the white background has been removed.
Note: I will add screenshots to the post soon so that it will be much more easier to follow the steps.
I have been working with some designs and I had to center an image in few pages. Previously I used to use <center> tag around the image tag and it works like a charm. But the <center> tag is deprecated in HTML5 and there is a beautiful way around to do this using CSS. Add the following code to make the image aligned exactly to the center of any web page.
This piece of code works like a charm.
I recently discovered some little known ways to use your gmail address that can give you greater control over inbox and save you some time and headache. When you choose a gmail address, you can actually get more than just “email@example.com”. Here are two different ways you can modify your gmail address and still get your mail:
- Append a plus “+” sign and any combination of words or numbers after your email address. For example, if your name was firstname.lastname@example.org, you could send mail to email@example.com or firstname.lastname@example.org.
- Insert one or several dots “.” anywhere in your email address. Gmail doesn’t recognize periods as characters in addresses – we just ignore them. For example, you could tell people your address was email@example.com, firstname.lastname@example.org or email@example.com. You will receive an email at all variations with dots.
For me, the real value in being able to manipulate your email address is that it makes it really easy to filter on those variants. For example you could use firstname.lastname@example.org when you sign up for python language tutorials or mailing lists and then set up a filter to automatically star, archive or label email addresses to mrprogrammer+python. You can also use this when you register for a service and think they might share your information. For example, I added “+way2sms” when I signed up to use free messaging service once, and now when I see mails from other advertising groups to that address, I know how they got it.
Solution : filtered to auto-delete.
This really makes life easy and thanks to Google to make such a service.
We might run into cases where we have to find only the emails which contain attachments. How do we find them quickly on Gmail? Just type “has: attachment” to your query in the search bar of Gmail. Boom – it will pull up emails with attachments, so you don’t have to wade through a sea of empty messages.
A simple hack isn’t it? A real time saver!
Sometimes, it is possible that you might send a dirty e-mail to your dad instead of sending it to your girl friend 😛 That would be definitely a potential embarrassing email. So, it would be obviously awesome if we do have an option to undo that action. How can we do that? Its quite simple: Just log into your gmail account. Go to Settings, [For total noobs, it is the gear icon on the right hand side of the page: select settings from the drop down menu]. By default you will be on the General settings tab. Click on the the “Labs” tab and then scroll down until you see the “Undo Send” by Yuzo F. It will be in disable mode by default. Please choose the enable radio button to enable and press Save Changes. Go back to inbox, just refresh the page and done, there you go you have your life saving feature enabled.
How it works?
After sending a message, a yellow bar will appear at the top of your Gmail saying “Your message has been sent” and will offer you the option to “undo” or “view message “. If you click on “undo”, your message turns back into a draft. But be swift – the option will only hang around for a few seconds!
PS: What is Google Labs? — “The Labs section is where the creators test out new or interesting features, which could change, break or disappear at any time.”