Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 08-05-2007, 03:19 PM   #1 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 318
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
CSS Background repeat problem

This is the first time where IE has it right and firefox is messed up!

Anyways, I am referring to my site www.swaythevote.com

In firefox, the background image repeats a little after each expandable box. I am not sure why. I cannot fix it and I am not very good with css background tags. Any advice?

The html code:
Code:
<div class="content"> <img src="images/divtop.jpg" width="700" height="93" border="0" alt="divtop" /> TOP ISSUES RESULTS HERE IN TEXT AND GRAPHS <img src="images/divbottom.jpg" width="700" height="116" border="0" alt="divbottom" /></div> <div class="content"> <img src="images/divtop2.jpg" width="700" height="93" border="0" alt="divtop2" /> <dl class="info"> <dd class="info"> <ul class="info"> <li class="info">Crime</li> <li class="info">Economy</li> <li class="info">Education</li> <li class="info">Energy</li> </ul> </dd> <dd class="info"> <ul class="info"> <li class="info">Environment</li> <li class="info">Federal Budget</li> <li class="info">Healthcare</li> <li class="info">National Defense</li> </ul> </dd> <dd class="info"> <ul class="info"> <li class="info">Social Security</li> <li class="info">Taxes</li> <li class="info">Terrorism</li> <li class="info">Welfare</li> </ul> </dd> </dl> <img src="http://www.swaythevote.com/images/divbottom2.jpg" width="700" height="28" border="0" alt="divbottom2" /></div> </div>
The CSS:
Code:
.content { width: 700px; border: 0; background: #FFFFFF url(../images/divbg.jpg) repeat-y 50% 0; padding: 0px; margin: 0px; text-align: center; } .info dl { clear:both; width:728px; height:8em; margin: 0px auto; } .info dd { width:33%; float:left; margin:0 auto; } .info ul li { display: block; list-style-type: none; line-height: 30px; }
Thanks in advance
__________________
Miscellaneous Editorials
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-07-2007, 01:08 AM   #2 (permalink)
v7n Mentor
 
Tomassi's Avatar
 
Join Date: 01-26-06
Location: Amsterdam
Posts: 2,495
iTrader: 0 / 0%
Latest Blog:
None

Tomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest order
Send a message via ICQ to Tomassi
I take it you mean your shadow image?

If so, I would change the buildup a little, cause I've had this problem too and couldnt find a fix for it.
You could place 3 divs beneath each other:
top one containing your header- then a div with the repeating background and then the footer.
__________________
I still got me a signature to fill
Tomassi is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-10-2007, 01:54 PM   #3 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,784
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Hey devilsfan, don't know if you already solved this or not. In your ".content" definition, you tell it to "repeat-y". That means it will fill the available height repeating the background. If your other spacing is not absolutely perfect, you will see the beginnings of a repeat. Getting the spacing to match perfect across all browsers can be a real pain. Sounds like you just need to replace "repeat-y" with "no-repeat".

If you already figured this out then ignore me
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Background Image Problem Boogle Web Design Lobby 8 09-05-2007 05:44 AM
Repeat keywords in Title Tag? Repeat Title Tag? Christine8 SEO Forum 23 12-21-2006 12:21 PM
Google's repeat visiting Lucky Bastard Google Forum 5 11-09-2004 06:08 AM
How to get repeat visitors to your site john587 Marketing Forum 0 07-20-2004 11:43 PM
Making the background image NOT repeat. wbstein Web Design Lobby 4 05-30-2004 11:45 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:47 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.