Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7794527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:48:10+00:00 2026-06-01T22:48:10+00:00

So here is my problem, I know the width of the images, but I

  • 0

So here is my problem, I know the width of the images, but I don’t know the height, and I’m using a preloader, my problem is that when the images are loading…the content under the images bounces down…when it’s fully loaded, If I had fixed images width&height it will be easy to solve this, just set them using width and height attributes and it will look ok.

But is there a way to set the height before the page is rendered, maybe using PHP or so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:48:11+00:00Added an answer on June 1, 2026 at 10:48 pm

    Well, you can get the hight and width via imagesx and imagesy then print it.

    <?php
    $img = 'image.jpg';
    $image = imagecreatefromjpeg($img);
    $width  = imagesx($image);
    $height = imagesy($image);
    print '<img src="'.$img.'" height="'.$height.'" width="'.$width.'" alt="" />';
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to solve the problem here but I don't know why my code
So, I don't know if the question is explicit enough, but here's my problem:
I know that can co-exists with web form no problem as Hanselman mention here
date here my problem: String datetime = 2012-03-24 23:20:51; I know that that string
Well i need some help here i don't know how to solve this problem.
i'm having a BIG problem that i don't know how to solve... my UIToolbar
I don't know a better title, but I'll describe the problem. A piece of
I don't know what is going on here tonight, but I can't seem to
Here is a way to solve Euler problem 43 (please let me know if
Here is the main problem : I'm using QTreeWidget class as a main tree,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.