Subscribe:

Ads 468x60px

Monday, September 3, 2012

How to get Yahoo Wide Screen Effect in your website


Day Before yesterday I came across Yahoo Widescreen and was thinking, How we can achieve this with minimum APIs or code. 


After putting sometime, I realised that it's very much possible with Plain CSS only. Using the Selector, Property and Value correctly.

Selector is normally the HTML element you want to style.
Each declaration consists of a property and a value.
The property is the style attribute you want to change. Each property has a value.

Here for getting Yahoo Widescreen effect as shown in iFrame above. We need to set two things.

background-repeat: no-repeat; and  background-attachment: fixed;
So, a sample html code I have written below. Copy-Paste it to your local machine in .html format and open in browser to see the effect.



You can use other effects in stylesheet to make it more beautiful like border, border line etc etc.


<html>
<head>
<style type="text/css">
.common {
    height: 1000px;
    width: 1500px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 300px 300px;
 border: 5px;
}

.first {
    background-attachment: fixed;
    background-image: url(http://res2.windows.microsoft.com/resbox/en/Windows%207/main/ce6a03b3-6b4f-434a-864c-b740da6a0e23_9.jpg)
}
.second {
    background-attachment: fixed;
    background-image: url(http://res2.windows.microsoft.com/resbox/en/Windows/Main/e6e80b35-7d83-4943-8eac-9c4bdbfe9a4b_5.jpg)
}
.second {
    background-attachment: fixed;
    background-image: url(http://res1.windows.microsoft.com/resbox/en/Windows%207/main/01defee4-da8a-4cf2-9a7a-4284730a72eb_9.jpg)
}
.third {
    background-attachment: fixed;
    background-image: url(http://res2.windows.microsoft.com/resbox/en/Windows/Main/40022383-c690-42cc-8933-77605410bb21_5.jpg)
}
.fourth {
    background-attachment: fixed;
    background-image: url(http://res2.windows.microsoft.com/resbox/en/Windows/Main/c8ef84a5-69bf-45b3-8c24-7d08d6181a82_5.jpg)
}
.fifth {
    background-attachment: fixed;
    background-image: url(http://res1.windows.microsoft.com/resbox/en/Windows%207/main/5d5eceb3-995b-4403-8df5-f9d01ceed7c0_5.jpg)
}
.container {
}
</style>
</head>
<body>
<div class="container">    
 <div class="common first"></div>
 <div class="common second"></div>
 <div class="common third"></div>
 <div class="common fourth"></div>
 <div class="common fifth"></div>
</div>
</body>
</html>
 


[Please like/share/comment if you find it useful !]

6 comments:

  1. Imagesretouch.com is a professional Clipping Path Service Company. We at Best Outsource Photo Editing Services, all our editors are professionally trained and they come with experience & expertise in their field and provides Real Estate Photo Editing Service and Image Retouching Services
    Images Retouch is an Image Editing Company and provides Image Editing Services and Photo Editing Services India
    Image processing Services
    Outsourcing Photo Editing Services
    Digital Marketing Agency in Hyderabad

    ReplyDelete
  2. This is really a great piece of information. Great work Om Sao. For learning more about Software in Lucknow you can walk in to Software Training in Lucknow
    to get the best hands on training in Lucknow.

    ReplyDelete
  3. Thanks for sharing valuable Information, I really very impressive on your blog.
    SEO Company Amravati

    ReplyDelete
  4. (Cheap Yeezys For Sale) 30s less expensive 40s, Based on a variety of sun tan confuses. At some point, Quite need most likely gloomy atmosphere within the region, And help keep particularly heat light greater (Michael Kors Outlet) than typical instantaneously.

    The type of SoBe snowfall niche during the Fiesta Rancho will show it's 13th annual customary holiday trip verify on to, "Santa claus lands on las sin city, Showing sin city consider skaters of various age groups. Pricing is $10 per woman / man at the doorway or $15 to obtain very important (Michael Kors Outlet Online) personel with capacity of. Onto Dec.

    Choose pull (Cheap Yeezy Shoes Sale) in tidy running sneakers. To make ins (Yeezy Boost 350 Cheap) and outs interaction 705 653 2283. January.22 June 11: Eastminster palm Quilters provide for just about every tues right provided by 9am 2pm to Eastminster u. Allow us truly glimpse for tp prepare the culprit over the past. Let's (Coach Outlet Online) not at all seek out to refurbish the culprit in the past. Be realistic and possibly not even glimpse for to repair the culprit (New Yeezys 2020) over the past.

    ReplyDelete
  5. The guy had a fantastic courtroom presence. Even properly Coach Outlet Store after his top he commanded double and triple communities. And no different participant ought to hold the ball in one Ray Ban Outlet hand the way he ought to that been pronounced that as quickly as he and Wilt shook arms that Wilt could no longer locate his hand.

    Participants also identified 27 relevant criteria which were organised into seven thematically related Ray Ban Glasses clusters. State control was Yeezy Discount the preferred regime for both alcohol and cannabis. The ranking Yeezy Boost 350 of the regimes was New Jordan Shoes 2020 robust Coach Handbags Clearance to variations in the criterion specific weights..

    NHL, the NHL Shield, the word mark and image of the Stanley Cup and NHL Coach Outlet Conference logos are registered trademarks of the National Hockey League. NHL, the NHL Shield and the word mark NHL Winter Classic are registered trademarks and the NHL Winter Classic logo is a trademark of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams.

    ReplyDelete