Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

I have an input field that becomes hidden (but the info in it is still displayed so the user can’t edit it anymore). That is done with 2

tags, one for the editablt input and the other for the computed text. Next to that in the same cell of the table I want to display an image (a red X) to reset the input field.

All the javascript mechanics are there and working. However because I’m using Div tags I can’t align the red X to the right of my a displayed Div. Because it’s a block element if I toggle it’s display to “block” then it displays on the next line, which I don’t want.

I saw a CSS hack with * html #divID{float:left;}

But I can’t use this hack. I have about 200 cells with a different Div ID (* 2 because to accomplish what I need I have to have 2 floats on one line) that would need this hack and I don’t want to have 200 (well 400 really) style entries just to float the entries.

Can I do what I am trying to do? Is there another way of positionning the div which contains the red X (absolute positionning is out of the question because I would have 200 of them to position in the stylesheet)

If not I’ll just put it in a different column but I wanted to use borders in the table and having the red X in a column of its own doesn’t look great.

Thanks for any advice you can provide LDD :slight_smile:

Luc

Subject: Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

post the html source code

Subject: RE: Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

I edited some of it to protect the location and identity of the database and the company, but the basics are there. This is the code from only 1 of the frames (there are 2):

nerfed for securityEditDocumentSched:04/07/2006nerfed for security

Date:
04/07/2006

	Shipping Appointment Schedule<hr>
7 h 00
10 h 00
12 h 30
15 h 00
17 h 00
19 h 00

 

<!!This is the part where I would ike to have 2 visible divs next to each other. This is just 1 cell of the table!!>

Coord:

Subject: RE: Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

have you tried simply adding the align parameter to your image HTML?

Subject: RE: Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

You could try switching from div to span.

Subject: RE: Web gurus Unite! Need to align inline Div tags horizontally. Is it possible?

Hi April,

Yes I tried it. It aligns it to the left, but on the next line :slight_smile:

I’m going to try Spans next as it was suggested.