Be A Hero: How To Use Full Screen Images On Your Website

  



How do I set a Bootstrap background image for a header? You can set a Bootstrap background image for a header with JS or CSS Flexbox. Flexbox is not even required, but you can use it to align the content vertically within the container instead of using the good old display: table + display: table-cell or positioning (not so old, most of the people still use it). Here are just a few reasons to consider why to put hero images/full page sliders on your website: They catch attention. New visitors of your site only have 0.05 seconds to form an opinion about your website and you want your first impression to be a good one. They add a personal touch. Use a hero image to show off products or services (or both.

Are you going to build a fullscreen homepage? And looking for a solution to add a responsive background image using CSS? Today tutorial is about to make CSS background images responsive to fit the fullscreen.

I will guide you how you can set the background-attachment so it covers all over the screen, no matter about screen size or resolution.

If you are developing a site related to photography or portfolio, It is important, It should have a great looking background. If a background will cover fullscreen, it will make your site look outstanding.

The purpose of making a background image on a website that includes the full browser window all the time. It fills the entire page with the picture in a way that no white space left. It is also important that the image should be scaled according to screen size and retains image proportions.

It is also important to make sure that, the image should be centered on the page and doesn’t cause scrollbars. It also has a cross-browser compatible as much as possible.

How to Make Responsive Fullscreen Background Images

To add an image as a background and to make it fit with fullscreen usually can be done by using the jQuery plugin. These plugins resize the image according to the browser window and cover the image width and height of the page.

But what about to make it without Jquery and build it with pure CSS?

Today I search out and see different solutions are available but one of them I would like to share with you, and this is, I personally use for my client while developing their websites.

1- Responsive Image Using Background Size Property

With background-size property, it’s so easy to make a responsive image. You just need to define background image with no-repeat and then define background-size value cover.

Let’s have a look example of the code below.

This property used two types of values: contain and cover: I prefer to use cover. The answer is below. See definition of cover and contain:

  • A cover is really interesting because it makes the background is entirely taken up by the image. It resized the image to the smallest size that allows covering the entire element. Cover element best used for the responsive full-screen background.
  • Contain didn’t take up an entire page. Contain element only cover the page according to the size of an image.

There is another solution that I would like to recommend for you to use is provided by css-tricks.com

2- Inline Image Method

First of all, I will use an inline <img> element, which will be able to re-size in any browser.

We set the position fixed so the image doesn’t change its position and take all over the place of a page. And by setting the top and left zero allow us there is no white space.

To keep it filling the browser window vertically, we set min-height to 100%. Similar we set the 100% min-width which will keep the image filling horizontally.

The purpose of making min-width to make sure that the image never gets smaller than its actual width.

3- Wrap Image into DIV

The above method works well but an issue is, it will not center the image on the page, so we need to fix that by wrapping an image with a div. This div we’ll make twice as big as the browser window.

The wrapper div need to set the position fixed but the value of top and left should be -50%. Next, we will make the DIV twice as big as an image so we will set the width and height to 200%.

To handle an image, we will set the position absolute and all of the values to zero for its all position. But the min-width and min-height It will be 50%.

That’s It. I hope you find this post useful. Which method do you like? Let me know in below comment section.

Hero image is one of the most popular and compelling web design trends.

According to Wikipedia: Hero image refers to a large web banner image, prominently placed on a web page, generally in the front and center.

The hero image is often the first visual element a visitor encounters on the site; it presents an overview of the site's most important content. A hero image often consists of image and text, and can be static or dynamic (e.g. a rotating list of images and/or topics).

The content presented varies with the purpose of the site: for instance, it can present relevant news about the site. Hero image can make a good first impression and will definitely capture the user’s attention, ultimately converting users into customers.

Advantages of a Hero image design:

Be A Hero: How To Use Full Screen Images On Your Website
  • Visual appeal
  • Text readability
  • Interactivity
  • Storytelling

1. Hiring Artists Website Design

Website

Designer: Tubik

Be A Hero: How To Use Full Screen Images On Your Website

This is a web platform that helps artists and their clients easily find each other and together make the world even more beautiful. Its homepage features a hero image designed to find a skilled artist for a design or marketing project. This is a new web design with a vivid hero illustration, clear layout, prominent headline. and CTA.

2. Apps Illustration

Designer: Zahidul

It is a design concept that helps users beat loneliness. When you are lonely you can use the app and spend your time discovering beautiful illustrations. The eye-catching and beautiful background illustrations make it stand out and capture the visitor’s attention.

3. Homes of the Future Website

Designer: Tubik

This is a website of a company that designs and builds sustainable homes using solar power. Moving from tab to tab, users can see the model house iduring different times and in different environments and can learn about the benefits of solar power.

Animation is of great importance to hero image design, especially when compared with a flat landing page design. The animated design is dynamic and interactive with the user, which provides user greater visual enjoyment.

4. Hero Image Illustration for Wild Press

Designer: Zahidul

This is a hero image Illustration created by Zahidul for wildpress.co. It is a beautiful website concept where the web designer used a full-screen to grasp the user’s attention.

5. Architecture Magazine Website

Designer: Tubik

This is a online magazine covering a broad range of topics in the domain. Here you can see a part of the slide gallery featuring the Pritzker Prize winners and nominees. The artistic digital portrait of Zaha Hadid works as a bright hero image to attract the attention of the users.

6. Books for Children Website

Images

Designer: Tubik

This is an e-commerce website selling books for kids. It is full of captivating illustrations and cool stories. It is a great example which adopts the hero image and the layout includes a full-screen image, a highlighted heading, and a “send” button.

7. 3D Website Header

Designer: Pham Huy

This website header uses a 3D concept, including an exquisite and eye-catching background and great functionality.

8. Activitrack - Hero Illustration Exploration

Designer: Andri Prasetia

This is an illustration hero image about sport tracking. It has a professional layout, as well as a full-screen image with amazing and colorful illustration to get people’s attention.

9. Animated Hero Illustration

Designer: Rudi Yulianto

This is an animated hero illustration for a SEO analyst website. It uses a big and clear heading, a creative illustration, and more.

10. Sea Adventure Website

Designer: Aryo Pamungkas

This is an amazing sea adventure website with a vivid and creative illustration that definitely catches the user’s attention.

Hero image best practices

1. Apple

Be A Hero: How To Use Full Screen Images On Your Website

Apple's official website is a typical example of the use of the hero image. The product-directed hero image website primarily presents a full-screen image that shows specific product information and feature on the site. Apple tends to use 'chromeless' images that have no borders and a clear and transparent background.

2. Charbonnel Town

Charbonnel Towns is an amazing real estate web design example which fully embraces the hero image. It features a dynamic home page video that clearly displays the structure and details of the luxury real estate sector. The site also showcases plush architectural elements with traditional colors and fonts.

3. Coca-cola

Coca-cola is another wonderful hero image website which includes full-screen high-quality images, colorful backgrounds, and animations.

4. Fivefootsix

Fivefootsix is a wonderful hero image website.It has a full-screen, a black background, and a highlighted slogan placed in the center of the page which grasps people’s attention.

5. Caledonbuild

Caledon Build is a project management and construction company specializing in new residential builds and major renovations. The homepage is designed with a large screen hero image.The simple frame layout and vibrant images show the house information clearly and intuitively. It has a simple design style that evokes a feeling of modernity coupled with sophistication.

Hero image CSS and Bootstrap templates free download

1. Hero Image Portfolio

Designer: Stanley Haladej

2. Hero image

Designer: JakiYa AfsaNa

3. Camping a Travel Category Bootstrap Responsive Web Template

Designer: w3layouts

Compatible Browsers: Google Chrome, Firefox, Safari, IE 10, Opera etc.

Be A Hero: How To Use Full Screen Images On Your Website Page

Source Files included : HTML files (.html), Style Sheets (.css),Images (.jpg/png/gif), Fonts (.ttf).

4. Yoga Lite a Sports Category Bootstrap Responsive Web Template

Designer: w3layouts

Be A Hero: How To Use Full Screen Images On Your Website Free

Compatible Browsers: Google Chrome, Firefox, Safari, IE 10, Opera etc.

Source Files included: HTML files (.html), Style Sheets (.css),Images (.jpg/png/gif), JQuery plugins (.js), Fonts (.ttf).

5. Biz Pro a Corporate Category Bootstrap Responsive Web Template

Designer: w3layouts

Compatible Browsers: Google Chrome, Firefox, Safari, IE 10, Opera etc.

Source Files included: HTML files (.html), Style Sheets (.css),Images (.jpg/png/gif), Fonts (.ttf).

6. Client a Personal Category Flat Bootstrap Responsive Web Template

Designer: w3layouts

Compatible Browsers: Google Chrome, Firefox, Safari, IE 10, Opera etc.

Source Files included: HTML files (.html), Style Sheets (.css),Images (.jpg/png/gif), Fonts (.ttf).

If you enjoyed these hero image website samples and templates, please don’t hesitate to share them with your social networks. If you have a suggestion for the next edition of our templates collection, reach out to us via Twitter or Facebook.

Be A Hero: How To Use Full Screen Images On Your Website Screen

Get Started for Free