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 8696817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:21:31+00:00 2026-06-13T01:21:31+00:00

Looking at this site I’ve noticed that the background image that displays the page

  • 0

Looking at this site I’ve noticed that the background image that displays the page bleeds out of the sides of the monitor. Is there a way to fix this?

img src=”img/laptop.png” id=”laptop” class=”tour” alt=”laptop” />

The laptop is a png with a transparent center. I was then apply a class to the laptop which would apply a background image behind the laptop. ie

.tour { background: url(“../img/tour.jpg”) center top no-repeat; }

The problem occurs when some of the images are larger than the width of the laptop

  • 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-13T01:21:32+00:00Added an answer on June 13, 2026 at 1:21 am

    The simplest way would be to make the background of the image of the laptop white, which would then cover up the part of the image which ‘bleeds out’.

    Another quick solution would be to resize all the background images so that they fit properly within the monitor.

    I think the way to do it properly is to have an absolutely positioned element which fits within the bounds of the laptop screen and shows the image.

    Something along the lines of

    <div class='image-container' style='position: relative;'>
        <div id='background' style='position: absolute; left: 100px; right: 100px; top: 30px; bottom: 120px;></div>
        <img src='img/laptop.png' />
    </div>
    

    This would need some proper measurement/testing of the actual margins on the image, and would need changes to the javascript and css to work/look right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this site here http://cowelllaserhair.com/index.php and you will notice that there is a
I've been looking for a notification bar like the one on this site that
I'm looking to replicate the image zooming on this site: http://www.endless.com/adidas-Originals-adiracer-Trefoil-Sneaker/dp/B001I44OIG/183-5587133-4823042?ie=UTF8&cAsin=B001I44O2W&qid=1241466506612&asinTitle=adidas%20Originals%20adiracer%20Trefoil%20HG%20Sneaker&ref_=sw_1&asins=B001I44O2W%2CB001I457WS%2CB001LDJ2MM%2CB001HBH5LS%2CB001O9BJ4C%2CB001VNCNI2%2CB001LDJ7M2%2CB001LNNY44%2CB001LDJ2UE%2CB001OONDCS%2CB001HBH4FA%2CB001OOMWUW&refURL=%252Fb%252F241993011%253F&contextTitle=Search%20Results&fromPage=asinlist&suppressRedirect=1 When you mouse
Looking at an unofficial OCaml grammar in this site the only production where begin
I just joined this site after looking very hard for an answer to my
I've searched this site and the web and just looking for a simple example
I'm looking for suggestions for debugging... If you view this site in Firefox or
Looking at this jQuery example, how can I modify the code so that it
I was looking this site for data validation: http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/ And it sounds great the
I have been looking on this site and on other how to set the

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.