HighDots Forums  

Images and spaces

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Images and spaces in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
richnjones@gmail.com
 
Posts: n/a

Default Images and spaces - 12-31-2007 , 11:33 AM






Hi all
Seems like a stupid question but I am having trouble laying out severl
images both within a table and a div

Consider
<table><tr><td>
<img src=images/left.gif>
<img src=images/right.gif>
</td></tr></table>

The two images have a gap between them. I have tried changing the
padding and vspace but to no effect.

I have tried CSS styles with the div element and get the same. I am
loading both images into one div element so I would be surprised if
changing some of the div attributes would work. Has anyone any ideas
why laying out two images has space in between
Thanks
R

Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: Images and spaces - 12-31-2007 , 11:51 AM






On 2007-12-31, richnjones (AT) gmail (DOT) com <richnjones (AT) gmail (DOT) com> wrote:
Quote:
Hi all
Seems like a stupid question but I am having trouble laying out severl
images both within a table and a div

Consider
table><tr><td
img src=images/left.gif
img src=images/right.gif
/td></tr></table

The two images have a gap between them. I have tried changing the
padding and vspace but to no effect.

I have tried CSS styles with the div element and get the same. I am
loading both images into one div element so I would be surprised if
changing some of the div attributes would work. Has anyone any ideas
why laying out two images has space in between
Because in your source there are spaces between them. Try

<table><tr><td>
<img src=images/left.gif><img src=images/right.gif>
</td></tr></table>

Alternatively make <img> float: left.


Reply With Quote
  #3  
Old   
richnjones@gmail.com
 
Posts: n/a

Default Re: Images and spaces - 12-31-2007 , 11:58 AM



On 31 Dec, 16:51, Ben C <spams... (AT) spam (DOT) eggs> wrote:
Quote:
On 2007-12-31, richnjo... (AT) gmail (DOT) com <richnjo... (AT) gmail (DOT) com> wrote:



Hi all
Seems like a stupid question but I am having trouble laying out severl
images both within a table and a div

Consider
table><tr><td
img src=images/left.gif
img src=images/right.gif
/td></tr></table

The two images have a gap between them. I have tried changing the
padding and vspace but to no effect.

I have tried CSS styles with the div element and get the same. I am
loading both images into one div element so I would be surprised if
changing some of the div attributes would work. Has anyone any ideas
why laying out two images has space in between

Because in your source there are spaces between them. Try

table><tr><td
img src=images/left.gif><img src=images/right.gif
/td></tr></table

Alternatively make <img> float: left.
Thanks Ben, That worked great! It's so simple when you know how...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.