Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Background difference between IE and FF
Closed Thread
Old 08-04-2009, 12:23 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2006

Posts: 27

bukwus is on a distinguished road

Default Background difference between IE and FF

Hello

I'm building a page that has a background color and repeated background image.

Knowledge Institute

In IE it's looking fine. In Firefox, the background stops once the page gets to the floating DIVs. Here's the relevant HTML:

Code:
<div id="homeBody">
				<!--Using P instead of H2 because H2 causes space above img_border_long in FF, but not in IE -->
				<p id="topTitle">Welcome</p>
				
				<p class="padR2">At Knowledge Institute, we bring innovation and collaboration to the world of entrepreneurial development and small business education. By uniting government, nonprofit economic development agencies and private sector leaders in business-to-business solutions, we are providing robust access to the following comprehensive resources tailored to the interests and needs of today's entrepreneurs:</p>
				
				<div class="twoColumn">
					<h3>Education</h3>
					
					<p>
						Utilize free online, interactive curriculum to build entrepreneurial skills and knowledge:
						<div class="twoColumn">
							<ul>
								<li>Courses</li>
			  				<li>Registration</li>
							</ul>
						</div>
						
						<div class="twoColumn">
							<ul>
								<li>Textbooks</li>
			  				<li>Certification</li>
							</ul>
						</div>
					</p>
					<br clear="all" />
					<br />
					
					<h3>Professional Services</h3>
					
					<p>
						Advance outreach, inpact and value to entrepreneurs by securing KnowledgeInstitute services in areas of:
						<ul>
							<li>Strategic Marketing Campaigns</li>
						  <li>Content Development (web/print)</li>
						  <li>Educational Program Development</li>
						  <li>Speaking Engagements/Lectures</li>
						</ul>
					</p>
				</div>
				
				<div id="leftBorder" class="twoColumn">
				
				</div>
			</div>
Here are the styles:
Code:
#homeBody { width:75%; margin-left:232px; margin-top:10px; padding-left:10px; border-width:0px; border-style:solid; border-color:#C1D4EA; border-left-width:1px; }

#topTitle { font-size:140%; color:#6C3081; font-weight:bold; }

#leftBorder { padding-left:10px; border-width:0px; border-style:solid; border-color:#C1D4EA; border-left-width:1px; }

.twoColumn { float:left; width:49%; }
			
.padR2 { padding-right:20px; }
Is there a way to have the background be consistent across the browsers?

Many thanks
bukwus is offline  
Old 08-05-2009, 11:30 AM   #2 (permalink)
SapperX's Avatar
 
Putting the X in Sapper

Join Date: Jul 2007

Location: USA

Posts: 706

SapperX is on a distinguished road

Default Re: Background difference between IE and FF

Just by looking at the site and the code, I can tell that there are a lot of things wrong here. Try reading up on standards compliance and after applying it to your site, I bet the problem will be fixed. I didn't spend too much time on it, but I didn't see anything specifically causing the problem.
__________________
My Current PC-
eVGA 680i | Intel Q6600 G0 |Western Digital 250gb HD
Seagate 500gb HD | Western Digital 500gb HD | VisionTek HD4870 | 4gb Cruical Ballistix Tracer DDR2 800
600w Coolmax Silent Fan PSU | Cooler Master Centurian 590 | Samsung 24" LCD | Dell 22" LCD

-900HA EEE pc
SapperX is offline  
Old 08-05-2009, 09:32 PM   #3 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,466

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Background difference between IE and FF

Where are you applying the background image? I don't see it anywhere in your code.

You need to use this in your style sheet:

Code:
background: url('../images/background.png') repeat-y top;

__________________

Baez is offline  
Old 08-08-2009, 12:22 PM   #4 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Background difference between IE and FF

Quote:
Originally Posted by Baez View Post
Where are you applying the background image? I don't see it anywhere in your code.

You need to use this in your style sheet:

Code:
background: url('../images/background.png') repeat-y top;
It looks like you got it sorted, as it works fine in my FF.

However, I'll say this anyway:

In the future if you have this problem and repeat-y doesn't work, use the min-height:100%; statement...usually does the trick.
__________________

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On