T
Trevor L.
BlankI have been writing web pages for a couple of months and thought I was beginning to understand HTML/CSS and even a bit of JS
But now I have a basic problem
I want to separate a page into columns, say:
<---------Column 1------------><-----------Column 2---------------->
|
|
|
|
I then want to write code for Column 1 in one block so that all the elements go into Column 1 and then write a block of code for Column 2.
It seems so simple. I tried this:
<div width="100px">
<table>
<tr>
<td>
<a href="javascript:;" onclick="openPopupCalendar();return false;">
<img style="float:right" src="images/calendar.gif" width="34" height="21" alt=''>Calendar
</a>
</td>
</tr>
.....
</table>
</div>
The function executes some JS code for a calendar which works fine.
But the image ("images/calendar.gif") positions to the very right of the page not to the right of the division, i.e. it ignores the width specification on the <div> tag. To get it aligned as I want, I have to put the width spec into the <td> tag.
What do I have to do ?
--
TIA
Trevor L.
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
But now I have a basic problem
I want to separate a page into columns, say:
<---------Column 1------------><-----------Column 2---------------->
|
|
|
|
I then want to write code for Column 1 in one block so that all the elements go into Column 1 and then write a block of code for Column 2.
It seems so simple. I tried this:
<div width="100px">
<table>
<tr>
<td>
<a href="javascript:;" onclick="openPopupCalendar();return false;">
<img style="float:right" src="images/calendar.gif" width="34" height="21" alt=''>Calendar
</a>
</td>
</tr>
.....
</table>
</div>
The function executes some JS code for a calendar which works fine.
But the image ("images/calendar.gif") positions to the very right of the page not to the right of the division, i.e. it ignores the width specification on the <div> tag. To get it aligned as I want, I have to put the width spec into the <td> tag.
What do I have to do ?
--
TIA
Trevor L.
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html