- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI need help building a news box on a web page. The box will have a gif graphic for the (classic round top corners), middle will be text , and the bottom will be a gif with rounded corners.
I tried building it using a table formatted with CSS. It looked good in IE7 but did not look good in FF 2. The graphics do not meet up with the edge of the content cell. Almost seams like I am missing a margin or padding somewhere.
1.) Is there a way to do it without a table?
2.) What causes the image to look bad in FF?
Here is the link and code:
http://www.flintstreet.net
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html
<html lang="en">
<head>
<title>ALS TDI | The world's largest ALS research center</title>
<style type="text/css">
#Forum {
float: right;
background: white;
width: 287px;
}
table.tblTable {width:287px;}
td.tdForum {
border-right: 5px solid #AD6BCC;
border-left: 5px solid #AD6BCC;
background-image: url(images/RecentnewsBG.jp
background-repeat: repeat-x;
}
td.TopNews {
height: 23px;
padding: 0px 0px 0px 0px;
margin: 10px 10px 10px 10px;}
img.tdTop
{
padding: 0px 0px 0px 0px;
margin: 0px 0px -8px 0px;
}
img.tdRecent
{
padding: 0px 0px 0px 0px;
margin: -8px 0px -8px 0px;
}
img.tdBottomBox
{
padding: 0px 0px 0px 0px;
margin: -20px 0px -8px 0px;
}
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(p
document.MM_pgW=innerWidth
else if (innerWidth!=document.MM_p
}
MM_reloadPage(true);
// -->
</script>
</head>
<body bgcolor="#000099">
<div id="sidebar">
<table class="tblTable">
<tr>
<td clas="TopNews" height="6"><img class="tdTop" src="images/top_story.gif"
</tr>
<tr>
<td class="tdForum">
USA Today - 11 hours ago
Beating the Boston Red Sox at Fenway Park in October is difficult enough. Having to do it against one of baseball's top postseason pitchers makes the task ...
</td>
</tr>
<tr>
<td><img class="tdRecent" src="images/recent_news.gi
</tr>
<td class="tdForum">
USA Today - 11 hours ago
Beating the Boston Red Sox at Fenway Park in October is difficult enough. Having to do it against one of baseball's top postseason pitchers makes the task ...
</td>
<tr>
<td><img class="tdBottomBox" src="images/bottom_box.gif
</tr>
</table>
</div>
</body>
</html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: TNamePosted on 2007-10-14 at 01:47:05ID: 20073187
Hi, haven't tested it, but it looks like the images are positioned on the font base line in FF (as inline elements in strict mode)
Try this:
td img { display:block; }