22nd Jan 2012, 06:34 AM | #1 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,472
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
| I have had a number of people ask me how to add transparency to certain parts of their mobile website so that the background of the page can be seen through certain sections such as your homepage menu. |
| |
The Following 22 Users Say Thank You to WillR For This Useful Post: |
22nd Jan 2012, 08:56 AM | #2 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Tucson, Arizona
Posts: 215
Thanks: 166
Thanked 69 Times in 44 Posts
|
*NICE* tip WillR! Thank You for that. Patrick |
Internet Safety Tips - The Essentials Internet Safety Tips – “The Essentials” – Examples Of Attacks Check out this chapter, then sign up to download YOUR copy! | |
28th Jan 2012, 05:45 PM | #4 |
Active Warrior War Room Member Join Date: 2011 Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
|
Great tutorial Will How do you inser an image in the backround so we could see the image throuh the menu? |
Our Actions Proves What We Really Belive In
| |
29th Jan 2012, 06:59 PM | #5 |
HyperActive Warrior War Room Member Join Date: 2007 Location: CA, USA
Posts: 295
Thanks: 258
Thanked 55 Times in 29 Posts
|
Thanks, Will, for this tip. As usual, you are on top of things |
1st Feb 2012, 04:46 AM | #6 |
In search of knowledge Join Date: 2010 Location: N. Ireland, the Golfing capital of the world
Posts: 473
Thanks: 68
Thanked 56 Times in 48 Posts
| |
Kyle | |
The Following User Says Thank You to Young Samurai For This Useful Post: |
1st Feb 2012, 06:48 AM | #7 |
HyperActive Warrior Join Date: 2011 Location: North West, England
Posts: 267
Thanks: 97
Thanked 41 Times in 34 Posts
|
Others might have this question so I will answer it publically. Your "content" div should have a background image value instead of a background color as in wills example. #content { background-image:url('background.png')} Then with your menu over the top of this, with transparency, you will see the image underneath. Obviously you will need to ensure your image will fit nicely in that content div including allowances for stretching to the "landscape" view. |
1st Feb 2012, 12:36 PM | #8 | |
Warrior Member Join Date: 2010
Posts: 26
Thanks: 11
Thanked 2 Times in 2 Posts
|
Thank you Will for the tip. Bought your WSO "My mobile business" and I still owe you a review. Reason being late?!? I am trying to figure out how to add an image in the background. I don't want just a "boring" simple version, because this one is ready yet. Want more WOW...How can I do that? Your advice will be very much appreciated Thank you Daniela | |
1st Feb 2012, 01:17 PM | #9 |
Active Warrior War Room Member Join Date: 2011 Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
| |
Our Actions Proves What We Really Belive In
| |
1st Feb 2012, 03:42 PM | #10 |
Warrior Member Join Date: 2010
Posts: 26
Thanks: 11
Thanked 2 Times in 2 Posts
|
Hey Kyle Have the same question as LiorN (How do you insert an image in the background so we could see the image through the menu?). Could you help me, please? Daniela |
1st Feb 2012, 04:40 PM | #11 |
In search of knowledge Join Date: 2010 Location: N. Ireland, the Golfing capital of the world
Posts: 473
Thanks: 68
Thanked 56 Times in 48 Posts
|
Daniela, If you want an image background to the menu alone go with JToneyUK's suggestion above. If you want an image background to the menu and click to call button then you place the image in a different location. Assuming you're using one of Will's templates - Down about line 84/85 in the style.css is the style for #wrapper The wrapper is an identifier for a div which includes the click to call button and the menu. Let's say you want to display the picture my_pic.jpg behind the menu, change the #wrapper to #wrapper { background:url(../images/my_pic.jpg) top center repeat; width:92%; float:left; padding:0px 4% 20px 4%} That should do it. I'm not totally certain about the best dimensions for the picture. It's height will depend on the size of your menu. The repeat means it will fill the whole space in anycase it's just sometimes a repeating image looks strange. The image can be .jpg .png or .gif The size in kb is the biggest issue. Try to keep it as small as possible. |
Kyle | |
1st Feb 2012, 04:45 PM | #12 |
Warrior Member Join Date: 2010
Posts: 26
Thanks: 11
Thanked 2 Times in 2 Posts
|
Thank you Kyle...will try it. And yes, I am using Will's templates...
|
3rd Feb 2012, 08:11 PM | #13 |
In search of knowledge Join Date: 2010 Location: N. Ireland, the Golfing capital of the world
Posts: 473
Thanks: 68
Thanked 56 Times in 48 Posts
|
Is there an optimum width for a background image?
|
Kyle | |
3rd Feb 2012, 08:14 PM | #14 |
Active Warrior War Room Member Join Date: 2011 Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
| |
Our Actions Proves What We Really Belive In
| |
21st Feb 2012, 01:01 PM | #15 |
HyperActive Warrior Join Date: 2009
Posts: 168
Thanks: 33
Thanked 21 Times in 20 Posts
|
#content and #wrapper does not apply to all mobile themes (like Quentin's - but I'm sure he is trying to figure this out too). My eyes are peeled for a solution. It's a really cool feature to have transparency and think it will make for more sales down the road cause it looks so elegant for a visitor. WillR, have you tried adding a background image with transparency to one of your sites? If so, may we see how it turned out? |
| |
21st Feb 2012, 10:26 PM | #17 |
Warrior Member War Room Member Join Date: 2012 Location: Florida
Posts: 27
Thanks: 13
Thanked 1 Time in 1 Post
|
Great tip Thanks
|
21st Feb 2012, 11:44 PM | #18 |
Active Warrior Join Date: 2011
Posts: 59
Thanks: 9
Thanked 46 Times in 33 Posts
|
This is a great tip! I think a lot of mobile site developers leave this out (along with background images) in preference for more speed but their is a balance that must be struck between performance and asthetics to improve the overall UX. As long as we use low res background images or repeating textures we should be able to satisfy all three goals.
|
22nd Feb 2012, 07:18 PM | #19 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,472
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
Yes, they are just what I have called those sections on my page but the same works on any other website. You just add the code to the section you are wanting to change.
|
| |
16th Mar 2012, 05:34 AM | #20 |
Dave Zegers War Room Member Join Date: 2011 Location: The Hague
Posts: 559
Thanks: 229
Thanked 207 Times in 118 Posts
|
Thanks for that great tip, i will try this out at once
|
| |
17th Mar 2012, 11:24 AM | #21 | |
HyperActive Warrior War Room Member Join Date: 2010 Location: Warrior Forum
Posts: 258
Thanks: 4
Thanked 10 Times in 9 Posts
|
Really true analysis. Thanks to thread opener too.
| |
| ||
17th Mar 2012, 01:33 PM | #22 |
HyperActive Warrior Join Date: 2011
Posts: 249
Thanks: 27
Thanked 16 Times in 15 Posts
|
Tips were really nice to enhance the quality of transparency of mobile site.
|
| |
17th Mar 2012, 11:57 PM | #23 |
Active Warrior Join Date: 2011 Location: Alabama, USA
Posts: 73
Thanks: 70
Thanked 36 Times in 31 Posts
|
You learn something new every day. Thanks Will for the tip. As always, when Will speaks, I listen. |
| |
18th Mar 2012, 05:08 PM | #24 |
Active Warrior Join Date: 2003 Location: Tulsa, Oklahoma
Posts: 50
Thanks: 14
Thanked 15 Times in 14 Posts
|
Great info. Thanx Will.
|
Visit ... The Insider's Circle 34 Free Reports. Tons of Downloads. | |
5th Apr 2012, 10:04 PM | #25 |
HyperActive Warrior War Room Member Join Date: 2007 Location: CA, USA
Posts: 295
Thanks: 258
Thanked 55 Times in 29 Posts
|
I saved this link some time ago and now that I want to use this tactic, I can't get it to work. This is what I have in css: #content { width:99.8%; float:left; position:relative} not this #content { background:#EEEDED} When I change it to: #content { background:#EEEDED; opacity:.35; filter:alpha(opacity=35);} the whole site displays funny. Why is it that I don't see what Will states in my css? i.e. #content { background:#EEEDED} I'm thinking that I may be placing the code in the wrong place but can't seem to find another div for content, but the one that is under 03. wrapper and content. Hope some of you who are more experienced can help me with this. Thanks! |
8th Apr 2012, 12:34 AM | #26 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,472
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
Tammy, Contact me via email and I'll help you out. |
| |
The Following User Says Thank You to WillR For This Useful Post: |
12th Apr 2012, 05:15 PM | #27 |
Warrior Member Join Date: 2011
Posts: 25
Thanks: 1
Thanked 1 Time in 1 Post
|
I am able to get the transparency, but that seems to have the effect of just choosing a lighter colour in the first place. I was hoping it would be possible to have a background pic such that if you navigate away, it would still be in the background. I tried JToney's suggestion, but I'm not sure if you're supposed to replace the #content { background:#EEEDED} with #content { background-image:url('background.png')}. I tried that, and it just ignores the colour aspect and goes to default white (for the menu), without having a background pic. |
Bookmarks |
Tags |
adding, mobile, transparency, tutorial, websites |
| |