Contact Number

+919501010103

Email Address

contact@oxosolutions.com

Social Icons
OXO Solutions® Logo for Website
Empowering small to large businesses since 2008

Fulfilling all your IT needs at single stop
CIN: U74999PB2016PTC045616​GSTIN: ​​03AACCO3599B1ZO

  • About
    • Mission
    • Vision
    • Our Branding
  • Solutions
  • Services
  • Products
  • Research
    • Web
    • Website Speed Optimization
    • Progressive Web Applications
    • Big Data
    • Artificial Intelligence
    • Internet of Things
    • Web Application Security
  • Portfolio
    • E-Commerce
    • Graphics
    • Logo Design
    • Web Design
    • Web Development
    • SEO
    • Software Development
    • CMS Customization
  • CSR
  • Resources
    • Frequently Asked Questions
  • Happenings
  • Events
  • Support
  • Career
    • Current Openings
    • Apply Online
    • Internship
    • Life at OXO
  • Blog
  • Partners
  • Contact

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

  • 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?
  • How to Do Keyword Research for SEO

Share on social media

  • Facebook
  • Google Plus
  • LinkedIn
  • twitter
Follow Us

Quick Links

  • Home
  • About
  • Research
  • CSR
  • Resources
  • Happenings
  • Support
  • Career
  • Blog
  • Partners
  • Payment Methods
  • Contact

Services

  • Website Designing
  • Web Development
  • Software Development
  • Ecommerce Development
  • Digital Marketing
  • CMS Customization
  • Search Engine Optimization
  • Logo Design
  • Graphics Design
  • Infrastructure as a Service
  • Workforce as a Service

Solutions

  • Healthcare Solutions
  • Corporate Branding
  • Education Solutions
  • Project Consultancy
  • Digital Marketing
  • Research & Analytics

Products

  • Human Resource Management
  • Customers Support
  • FB Auto
  • Live chat
  • Enterprise Resource Planning

Portfolio

  • E-commerce
  • Logo Design
  • Web Design
  • Web Development
  • SEO
  • Software Development
  • CMS Customization

©2025 OXO Solutions®. All rights reserved.

Copyright Right
  • Privacy Policy
  • Terms and Conditions
  • Refund Policy