473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

cell alignment

I have a page with three pics which should be seemless, but no matter what style or in tag refinements I try to make the spaces remain. I know this is a popular topic, but all the suggestions I have seen do not work. here is the code.

.borow{
position:absolute;
border-collapse: collapse;
BORDER-CELLPADDING:0px;
BORDER-CELLSPACING:0px;
HSPACE:0px;
cell-margin:0px;
cell-padding:0px;
display:block;
bottom:20;
height:30;
font-size:0px;
{

<table name="star" width="100%" class="borow" >
<tr>
<td HSPACE=0 CELLSPACING="0"><image src="ltskbar.gif" border="0" hspace = "0" vspace = "0"></td><td><image src="mtskbar.gif"></td><td><img src="rtskbar.gif"></td>
</tr>
</table>

There was a suggestion(several) where removing the white space was a possible fix, but as you can see, I omited any space and now my code is running together.

Thanks in advance for any help.

Trey Melton
Dec 6 '06 #1
2 2342
drhowarddrfine
7,435 Expert 4TB
There is no such thing, in CSS, as the following:
BORDER-CELLPADDING:0px;
BORDER-CELLSPACING:0px;
HSPACE:0px;
cell-margin:0px;
cell-padding:0px;

In addition, your closing bracket is facing the wrong way.

Validate your code to find all your errors.
Dec 6 '06 #2
You are on the right track, just in the wrong spot. When working with tables it is important to define all the possible attributes. If you omitt any of the basic attributes a browser will make certain assumptions when rendering the table.

If you want images in adjacent cells to appear seamless you need to have the following in your table tag:

<table cellpadding="0" cellspacing="0" border="0">

Without the cellpadding and cellspacing attributes defined most browsers I'm familiar with will insert space between the cells by default, thereby giving you spaces between your images.

I would also define the height and width of each image within the img tag:

<img src="myimage.gif width="XX" height="XX" border="0">

I always add the border="0" in an image for the same reason I use the attributes in the table tag. If you don't define these things some browsers may make assumptions that result in an unintended display.

Take out all of the .css and try this to see if your images align correctly. Then, if you want to use .css for positioning or other purposes add it back in a bit at a time, checking the results after each addition to make sure the coding is working properly.
Dec 6 '06 #3

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

Similar topics

3
by: harry | last post by:
I want to be able to change the text alignment within a table cell between "right" & "center" depending on how many rows are in the table. Is this possible in Javascript? - can't see how to do...
0
by: Rick Slansky | last post by:
Hi: This should be a fairly simple page, which lines up the second row cell nicely in the lower right corner. It does in Netscape, but when I check the page in Explorer, that cell (the entire...
2
by: dschectman | last post by:
I have an application that uses javascript to dynamically create tables. var selectedGridTab = document.getElementById(myTableName); .... var row = selectedGridTab.insertRow(rowid);...
0
by: enahar | last post by:
I want to validate a cell wheather a value is greater than 0 or not.If value is greater than 0 then I want to show messagebox and focus back the same cell else move to the other cell. I am...
3
by: Dionísio Monteiro | last post by:
Hi there, I was trying to define the VerticalAlign property of a cell (programatically) but it doesn't work. This is the code that seemed logical: TableCell cell = new TableCell();...
1
by: Chumley Walrus | last post by:
I am trying to have the contents inside a datagrid cell line up properly, either center, align right or align left. But using something like HorizontalAlign="right" is illegal syntax for...
3
by: Mad Scientist Jr | last post by:
Can someone post a clear example of how to change the background color of an individual datagrid cell for a Windows desktop app? (preferably in vb.net) I found some code on how to do this when...
4
by: Doug Bell | last post by:
Hi, I needed to make a TextBox on a DataGrid ReadOnly based on the condition of another cell on its row. I achieved this using a Custom Data Column Class "DacDGTextColLotNo" but I can't get the...
6
by: Andy Mabbett | last post by:
Please can someone remind me of the most elegant fix for the way Firefox fails to vertically align cell content by default? For example, the second event on: ...
0
by: ajanu81 | last post by:
hi all, i am new to this forum. i am using a windows application using C#. I am using a datagridview to display contents of a xml file. say i have a xml file like this. <xml version="1.0"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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,...
0
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...

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.