Contact Number

+919501010103

Email Address

contact@oxosolutions.com

CIN: U74999PB2016PTC045616​GSTIN: ​​03AACCO3599B1ZO

OXO Solutions® Logo for Website
  • Cables & Accessories
  • CPU
  • Motherboards
  • Networking
  • Power Supply
  • RAID Controllers
  • RAM
  • Server Cabinets
  • Storage
  • Shop
  • My account

Why is Specifying Image Dimensions Important?

Why-is-Specifying-Image-Dimensions-Important-How-do-I-do-it

Specifying Image Dimension is one such recommendation that is given by the PageSpeed test to improve the speed of the site.


As it is well-known that every image on the web page has some attributes from which "width" and "height" are considered the most essential. And, it is important to mention the dimensions of each image on the web page. 

What happens if the dimensions are not specified?

As the web browser displays your web page, it will check the position of the text and the images. The browser builds the page according to the text length, font size, and image dimensions. 

The problem occurs when the size of the image is not specified and the web browser will first build the entire page based on the text it received and then it will rebuild the page by rendering the images and relocating the images around them. 

This is where the loading speed of the page significantly increases, particularly when there are more than one images without specification of dimensions. 

Therefore, it is very important to specify the image dimensions, so that browser can use that information to build the page without reflow and additional delays.


You may also like to read:- Combine Images Using CSS Sprites


How to specify image dimensions?

  • In HTML you can use <img> tag to specify the dimensions.

This is how it looks like without dimensions.

<img src="picture.jpg" />

Let’s say the dimensions of the image are 500X200.

<img src="picture.jpg" width="500" height="200" />
  • By using inline CSS, you can add in below-mentioned way.
<img src=" picture.jpg" style="width: 300px; height: 200px">
  • By using external CSS, it can be done as below:

#picture.jpg 

{ 

    width: 300px; 

     height: 200px; 

}

  • Advanced users
    • Can use responsive designs for CSS according to the type of content.
    • Can set min/max for width/height
    • Add padding for image containers
    • Add absolute positions for images that will fill those containers

Post navigation

Previous
Next

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may also Like

  • How to Choose the Right Server for Your Business
  • Saikhom Mirabai Chanu wins first medal for India at Tokyo 2020 Olympics
  • Avoid an Excessive DOM Size: How to Fix this Warning?
  • 14 Steps Guide to Create an Effective SEO Strategy In 2020
  • The Top 25 Do’s and Don’ts of SEO You Need to Know
  • What Are Backlinks in SEO and What Are The Advantages of Backlinks
  • Google Changed Gmail Logo: Here’s What Changed Made So Far?
  • What is Social Media Marketing, and Why Social Media is Important for Business?
  • Combine Images Using CSS Sprites
  • Why Website Speed is Important? How to Optimize Website for Fast Speed?

Share on social media

  • Facebook
  • Google Plus
  • LinkedIn
  • twitter

Calendar

May 2026
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Oct    

About

At OXO Solutions, we are committed to providing high-quality server hardware and IT components for businesses and individuals.
With years of experience in IT infrastructure and web solutions, we understand the importance of reliable hardware. Our goal is to deliver powerful, scalable, and cost-effective solutions that help businesses grow. We offer everything from individual components like RAM and hard drives to fully configured servers ready for deployment.

Social Icons

Quick Links

  • Home
  • About
  • Support
  • Our Branding
  • Cart
  • My account
  • Blog
  • Contact

Contact Number

+91 95010 10103

Email Address

contact@oxosolutions.com

Address

13 Gulmarg Avenue, Taranwala Pul Flyover, Grand Trunk Rd, Amritsar, Punjab, India, 143006

©2026 OXO Solutions®. All rights reserved.

Copyright Right
  • Privacy Policy
  • Terms and Conditions