Solved

Big Image Making a Page Jump

Posted on 2006-10-21
5
186 Views
Last Modified: 2010-04-06
Hi,

I am using a big image on one page.  When the page loads the image makes a jump.   The page starts loading in one position then jumps to the left and finishes loading there.  I tried taking the pixel size out of the line.  That made the jump smaller, but still the page jumps.  I tried putting the image in a div, and taking it out of a div.  How could I code this big image into the page in such a way that it will not make the page jump over to the left while loading?

Thanks!!

Ubee...
0
Comment
Question by:a466-ub52
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 17781285
Code please...

My guess is you need to give it height and width
0
 

Author Comment

by:a466-ub52
ID: 17782463
Hello,

Thanks for your reply!  Before we did use the height & width, same thing.  Including the height & width makes the page will jump when loading.  Removing that made the page jump a little less.  Im thinking of using a div and making the image the background of the div?  Would that work?  How would I do that?

Thanks!!


Ubee..
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 17783150
Can you tell me the dimensions of your image and the resolution of your screen

http://www.htmldog.com/guides/cssintermediate/backgroundimages/
0
 

Author Comment

by:a466-ub52
ID: 17784263
Hello mplungjan,

I made it a div, cleared both sides - firefox required that to keep its positioning correct.  Then set the big image as the background of the div and... it worked!

Thanks for your reply & the link.  It helped me to understand!

Thanks!!

Ubee...
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 17784501
:)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now