Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with truncated background image using Firefox's scrollbar

Posted on 2010-09-03
3
Medium Priority
?
453 Views
Last Modified: 2012-05-10
Hi,

I have a strange truncated background image problem using Firefox. This works fine in IE.

Currently, I have one DIV with the background image set on it (this is to render the header). It looks fine but the problem happened if I resize Firefox using its scrollbar. Below are the steps on how to reproduce it.

1. Resize (drag-and-drop) Firefox to smaller window. The scrollbar in Firefox will be displayed at the bottom of the browser.
2. Then, using the Firefox's scrollbar at the bottom of the page, move the scrollbar to the center and etc.
3. You can see that the header is truncated. Please refer to the attached file.

Any idea on how to fix this?

Thanks
David
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>

<style type="text/css">
body {
	font-family:Tahoma, Geneva, sans-serif;
	font-size:12px;
}

#header-wrapper {	
	width:100%;
	background-image:url(header.jpg);
	background-repeat:repeat-x;
	height:112px;
}

#header-inner{
	width:1070px;
}
	

</style>
</head>

<body>
	<div id="header-wrapper">
  		<div id="header-inner">
    		<div id="part_1">
				dasfads				
			</div>

    		<div id="part_2">
				asfasdf
    		</div>
    		<div class="clear"></div>
  		</div>

	</div>
</body>
</html>

Open in new window

firefox-scrollbar.png
0
Comment
Question by:suprapto45
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Zado earned 2000 total points
ID: 33599957
You just need to add 'min-width:1070px;' in #header-wrapper:
#header-wrapper {       
        width:100%;
        background-image:url(header.png);
        background-repeat:repeat-x;
        height:112px;
	min-width:1070px;
}

Open in new window

0
 
LVL 16

Author Closing Comment

by:suprapto45
ID: 33602297
Awesome.
0
 
LVL 8

Expert Comment

by:Zado
ID: 33602429
Thanks for points :-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

721 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