kitster79 Posted September 27, 2010 Report Posted September 27, 2010 Hello, I have a problem with spacing some dive tags...it displays fine in Safari but in Firefox, there is a black background that is strangely showing through around my divs in Firefox. I have searched through my code and kind find any elements with black involved at all, so I totally stumped. I havent checked in IE since I am on a Mac...I would appreciate it if someone could let me know how it displays in IE too:) Here is the link... http://customhcg.com/htmlEmails/001/01.html Thanks very much for your time in advance. Kit Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 The black background is coming from this line: <table width="700" cellspacing="0" cellpadding="0" border="0" bgcolor="#000000" align="center"> The spacing itself is coming from the 30px of top margin you have on some of your divs. For example: <div style="text-align: left; font-family: verdana; font-size: 10pt; font-weight: bold; color: rgb(32, 149, 153); margin: 30px 0pt;"> <img width="175" height="288" border="0" usemap="#Map6" alt="HCG" src="images/label05.jpg"> <img width="175" height="288" border="0" usemap="#Map7" alt="HCG" src="images/label06.jpg"> <img width="175" height="288" border="0" usemap="#Map8" alt="HCG" src="images/label07.jpg"> <img width="175" height="288" border="0" usemap="#Map9" alt="HCG" src="images/label08.jpg"> </div> Quote
kitster79 Posted September 28, 2010 Author Report Posted September 28, 2010 Thanks Ben. Duh! Sorry, I must have missed the bgcolor there. Quote
kitster79 Posted September 28, 2010 Author Report Posted September 28, 2010 OK, I must be trippin or something. I cannot find that line anywhere in my code at all. Can you tell me what line that is appearing in? Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 I'm assuming you mean the <table> line... That is the first line after the <body> tag. Quote
kitster79 Posted September 28, 2010 Author Report Posted September 28, 2010 I'm not seeing that at all Ben. I have attached the screenshot of the code I am seeing... Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 That's weird. Firebug is showing a black background color on the table... Quote
Kyle Undefined Posted September 28, 2010 Report Posted September 28, 2010 There's no border in Chrome. Quote
kitster79 Posted September 28, 2010 Author Report Posted September 28, 2010 What the??? This is driving me crazy. How the freak can the source code be different than the code it shows in Firebug? I too just looked at it with Firebug and I see what you mean. How can this possibly be? Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 Hey, this might be a stretch, but I seem to remember that shortened color hex (like "#fff" rather than "#ffffff") is only allowed in CSS -- not HTML. Perhaps you using it within the HTML is messing things up? Try using "#ffffff" rather than "#fff" and see if that fixes things. Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 Yeah, that's it. This table has a black background in Firefox: <table bgcolor="#fff"> <tr> <td>Test</td> </tr> </table> Quote
kitster79 Posted September 28, 2010 Author Report Posted September 28, 2010 Genius! Thanks Ben - much appreciated. Great new look site by the way. Love the home page graphics. Hope you are selling lots of tutorial vids:) Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 I'm not sure if you are talking about the KillerSites home page or my personal site... either way, thanks! Quote
Andrea Posted September 28, 2010 Report Posted September 28, 2010 Coming in after the fact, but I just happened to notice that the ENTIRE head section is mission - no doctype, either. Quote
falkencreative Posted September 28, 2010 Report Posted September 28, 2010 Coming in after the fact, but I just happened to notice that the ENTIRE head section is mission - no doctype, either. It's an HTML based email, so that is normal. Quote
Andrea Posted September 28, 2010 Report Posted September 28, 2010 It's an HTML based email, so that is normal. Oops - I missed the 'email' part.... never mind me. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.