473,587 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My table is not sizing right in the div

71 New Member
I've got a page with a menu div that is 1066px wide by 150px high. And then I have some images that are 150px by 150px for the menu items. I put the images in a table that is set to 150x150px with a 1px border around the table, and around each cell in the table.

For some reason though, a space is appearing inside the table, below the images. I've made the menu div background color red, so that it is obvious what's happened. I've also resized the div to find the actual size of the table. The table appears to be 156px high, I currently have the div set to 157px to make it clear what the problem is.

Can anyone help me with how to get rid of the red line underneath my images in the menu? I've been playing with it for a while now, but have not been able to fix it. Any help would be greatly appreciated.

Here's a link to the page: http://www.atlashvac.c om/comfortteam/index.asp

Here's the page code: (after validation)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>Indian a Comfort Team</title>
<style type="text/css" media="screen">
@import "/ComfortTeam/styles.css";
</style>
</head>

<body>

<!-- Insert the banner and menu fields -->
<!-- The banner at the top of the page -->
<div id="banner">
</div>

<!-- The primary menu for the site -->
<div id="menu">
<table cellpadding="0" cellspacing="0" >
<tr>
<td>
<a href=""><img src="/comfortteam/img/menuicons/menuspacer.jpg" alt="" /></a>
</td>
<td>
<a href="http://www.yahoo.com"> <img src="/comfortteam/img/menuicons/outdoorunits.jp g" alt="Outdoor Units" /></a>
</td>
<td>
<a href="http://www.google.com" ><img src="/comfortteam/img/menuicons/furnace.jpg" alt="Indoor Units" /></a>
</td>
<td>
<a href="http://www.altavista.c om"><img src="/comfortteam/img/menuicons/hybridsystem.jp g" alt="Hybrid Systems" /></a>
</td>
<td>
<a href="http://www.ask.com"><i mg src="/comfortteam/img/menuicons/indoorairqualit y.jpg" alt="Indoor Air Quality" /></a>
</td>
<td>
<a href="http://www.hotbot.com" ><img src="/comfortteam/img/menuicons/geothermal.jpg" alt="Geothermal " /></a>
</td>
<td>
<a href="http://www.webcrawler. com"><img src="/comfortteam/img/menuicons/menuspacer.jpg" alt="Radiant Systems" /></a>
</td>
</tr>
</table>
</div>

</body>
</html>


And here's the .css file:

body {
position: absolute;
margin-top: 0px;
margin-bottom: 0px;
left: 0px;
top: 0px;
width: 100%;
min-width: 1058px;
height: 100%;
text-align: center;
background-color: #FFFFFF;
}

/* =============== =============== =============== =============== ========= */
/* Specific DIVs */

#banner {
position: inherit;
left: 0px;
top: 0px;
width: 1066px;
height: 150px;
text-align: left;
voice-family: "\"}\"";
voice-family: inherit;
background-image:url(img/header.jpg);
z-index: 5;
}

#menu {
position: inherit;
left: 0px;
top: 150px;
width: 1066px;
height: 157px;
text-align: left;
background-color: #FF0000;
z-index: 10;
}

#mainbody {
position: inherit;
left: 0px;
top: 300px;
width: 1066px;
height: 900px;
max-height: 900px;
text-align: left;
background-color: #cccccc;
z-index: 1;
}

#sidebar {
position: relative;
float: left;
left: 0px;
top: 2px;
width: 154px;
max-width: 150px;
height: 900px;
max-height: 900px;
text-align: left;
background-color: #98B5ED;
border: solid 2px #000000;
z-index: 9;
}

#content {
position: relative;
float: left;
left: 0px;
top: 2px;
width: 758px;
max-width: 758;
height: 900px;
max-height: 900px;
padding-left: 10px;
padding-top: 15px;
text-align: left;
voice-family: "\"}\"";
voice-family: inherit;
background-color: #FFFFFF;
z-index: 1;
}

#sidebar_right {
position: relative;
float: left;
right: 0px;
top: 0px;
width: 154px;
max-width: 150px;
height: 900px;
max-height: 900px;
text-align: left;
background-color: #0000ED;
border: solid 2px #000000;
z-index: 9;
}

/* =============== =============== =============== =============== ========= */
/* Font Elements */

#menu table {
width: 1066px;
max-width: 1066px;
height: 148px;
max-height: 148px;
text-align: center;
border: solid 1px #000000;
margin: 0px 0px 0px 0px;
padding: 0px;
}

#menu td {
width: 150px;
max-width: 150px;
height: 148px;
max-height: 148px;
text-align: center;
vertical-align: middle;
border: solid 1px #000000;
margin: 0px 0px 0px 0px;
padding: 0px;
}

#menu img {
width: 150px;
max-width: 150px;
height: 148px;
max-height: 148px;
text-align: center;
border: none;
}
May 1 '07 #1
1 2680
rsteph
71 New Member
Scratch that, got it working... it was a simple oversight.
May 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

14
2140
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a different height than was set in the code. However, when I use the navigation buttons in IE to go back and then forward again to the second page, the table...
3
1615
by: Csaba2000 | last post by:
I apologize for the length of the page below, but I've tried to whittle it down as much as I can. The problem is that Netscape 6.1 on my Win 2K Pro machine is disappearing the final row of the table. Opera 7.01 and IE 5 and 5.5 are both OK with the page, and the offending line is right before the commented out alert line, but I have been...
5
2028
by: Olav Tollefsen | last post by:
Take a look at this page: http://www.webinnovation.no/test/test.htm Why is the left table with the text "Menu" not 160 pixels as stated in the HTML code? Olav
4
26204
by: N. Demos | last post by:
The following code renders as intended in IE (A TABLE, with cells of fixed width and height, inside of a DIV with fixed width and height and overflow set to hidden.) In Firefox, the table cells assume a narrower with than specified. If I comment out the width for the DIV, then the cells render with the correct width and height. Why is this...
3
5897
by: N. Demos | last post by:
I have a single row table with fixed dimensioned cells nested inside a fixed dimensioned div, which has overflow: hidden. The div's dimensions are such that It should only display the first two table cells. This all renders correctly in MSIE 6.x, but doesn't in Firefox. In Firefox, the cell widths are reduced so that all the cells are...
13
3955
by: Giggle Girl | last post by:
Hi there, I need to use a background image in a TR that does NOT restart everytime it hits a TD. Can it be done? Specifically, if you set a background image for an entier table, now mater how many TRs and TDs you have, it will show the complete/unfragmented image (as long as you don't over-ride it). When I set a TR background image,...
11
2903
by: N. Graves | last post by:
I have checked the "Alignment and Sizing" toolbar but when I want to use in on aligning several form object the toolbar buttons stay grayed out. What am I missing. Thanks! N. Graves
5
3951
by: VK | last post by:
On the demo at <http://www.geocities.com/schools_ring/tmp/demo01/index.xml> the table caption has 1px(?) indentation from the left in Firefox 1.5 and I'm running out of ideas how to kill it - if it's possible at all. (Opera 9 shows a bigger indentation (2px?) but from the right side, but this fun is for later :-) IE displays the expected (at...
7
2438
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is rendered as a page (or actualy a part of a page) that is editiable. To do this I let the user download the document, edit it and then upload it back to...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.