Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Background color vs Image
Old 06-11-2008, 08:43 AM Background color vs Image
Junior Talker

Posts: 3
Trades: 0
Good day/afternoon/night people.
Not sure if this is the right sub forum to post my question, but here it goes.
I have a problem with a particular design that I´m working with. The conflict is just with IE7, because Firefox loads it right. Here is a pic to give you an idea.

Can you see the top of the page? that extra "line"?
As far as I can understand, the image inserted in the cell is not on the absolute left or right in IE, so you can see the background color. In the last pic you´ll get the idea.
Thanks in advance!!
Attached Images
File Type: jpg ie_top.JPG (9.4 KB, 9 views)
File Type: jpg firefox_top.JPG (9.5 KB, 10 views)
File Type: jpg ie_noback.JPG (10.5 KB, 9 views)
crazy_web_man is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-11-2008, 10:42 AM Re: Background color vs Image
PeachyJuice's Avatar
Super Talker

Posts: 116
Name: Michele T.
Location: Ny, Ny
Trades: 1
Code would be more helpful than images here. And it's not an HTML problem, it's the css. I fixed a similar problem recently:

Basically in IE it doesn't think that the div is wide enough to support both floats and the center repeat. Add a hack .css file (because it's a lot cleaner) and play with the margins/widths of the top part of the div.
__________________
Freelance web+graphic designer and PHP developer.

Please login or register to view this content. Registration is FREE
PeachyJuice is offline
Reply With Quote
View Public Profile
 
Old 06-11-2008, 11:11 AM Re: Background color vs Image
Junior Talker

Posts: 3
Trades: 0
So you suggest I work with the css file?
The code for that particular cell:
Code:
<td colspan="5" valign="top" bgcolor="#FFFFFF"><img src="images/infobox/top_left.JPG" width="11" height="11" align="left"><img src="images/infobox/top_right.JPG" width="11" height="11" align="right"></td>
Thanks!
crazy_web_man is offline
Reply With Quote
View Public Profile
 
Old 06-11-2008, 01:25 PM Re: Background color vs Image
Junior Talker

Posts: 3
Trades: 0
I just fixed it myself. If anyone encounters the same problem, here is the fix:
add hspace="0" vspace="0" to the image. In my case:
Code:
<img src="images/infobox/top_right.JPG" width="11" height="11" align="right" hspace="0" vspace="0">
good luck and thanks for the time PeachyJuice
crazy_web_man is offline
Reply With Quote
View Public Profile
 
Old 06-11-2008, 02:41 PM Re: Background color vs Image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Better to learn to build web pages WITHOUT tables for layout and learn to code using CSS to achieve your layout.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Background color vs Image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48941 seconds with 13 queries