Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Aligning images in Dreamweaver.

Thread Tools
 
Search this Thread
 
Old 05 March 2006, 11:32 AM
  #1  
paulr
Scooby Regular
Thread Starter
 
paulr's Avatar
 
Join Date: Jan 2005
Location: Lincolnshire
Posts: 15,623
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up Aligning images in Dreamweaver.

As you can see i can align images in a table with either a horizontal gap or no gap.You just alter the horizontal space in the picture properties.How do you get rid of the vertical gap though

(The vertical gap is set to 0.Its in a two cell table)

Last edited by paulr; 06 March 2006 at 04:32 PM.
Old 05 March 2006, 02:00 PM
  #2  
Paul .G
Scooby Regular
 
Paul .G's Avatar
 
Join Date: Aug 2003
Posts: 293
Likes: 0
Received 0 Likes on 0 Posts
Default

There are a lot of paragraphs and spaces underneath?
Shown as:
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
Getting rid of these will allow only the pictures to fill the div/cell

Is that what you mean?

Paul
Old 05 March 2006, 02:40 PM
  #3  
paulr
Scooby Regular
Thread Starter
 
paulr's Avatar
 
Join Date: Jan 2005
Location: Lincolnshire
Posts: 15,623
Likes: 0
Received 0 Likes on 0 Posts
Default

What i mean is the bottom 2 pics are touching,i want to be able to make them touch the top two.I know how to remove the gap between the top two.In the end i want all 4 in a block,no spaces.

Can you remove paragraphs without going into code?I do everything in design.
Old 05 March 2006, 03:36 PM
  #4  
paulr
Scooby Regular
Thread Starter
 
paulr's Avatar
 
Join Date: Jan 2005
Location: Lincolnshire
Posts: 15,623
Likes: 0
Received 0 Likes on 0 Posts
Default

Paul,i removed the code as you suggest,but then it go's 4 pics wide.The tables risize widthways?

Last edited by paulr; 05 March 2006 at 04:07 PM.
Old 05 March 2006, 04:34 PM
  #5  
D16GER
Scooby Regular
 
D16GER's Avatar
 
Join Date: Sep 2005
Posts: 924
Likes: 0
Received 0 Likes on 0 Posts
Default

You had all 4 images in 1 row. You should place each new line of images in their own row, otherwise you will get spaces. AFAIK there is no other way to control the vertical spaces.

Here you go, fixed......

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
 background-color: #000000;
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="351" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>  </tr>
</table>
<div align="center">
  <p>&nbsp;</p>
</div>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <th bgcolor="#FFFF99" scope="col">Home</th>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF"><div align="center"> 
        <p>&nbsp;</p>
        <p><img src="chpk0106818_large-13.jpg" width="142" height="94" vspace="0"><img src="chpk0106818_large-4.jpg" width="142" height="94"></p>
      </div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><p><img src="chpk0106818_large-4.jpg" width="142" height="94" vspace="0"><img src="chpk0106818_large-13.jpg" width="142" height="94"></p>
  </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
Oh btw if you want to add more lines of images, add more rows and put them in there.

Last edited by D16GER; 05 March 2006 at 04:37 PM.
Old 05 March 2006, 05:33 PM
  #6  
paulr
Scooby Regular
Thread Starter
 
paulr's Avatar
 
Join Date: Jan 2005
Location: Lincolnshire
Posts: 15,623
Likes: 0
Received 0 Likes on 0 Posts
Default

Cheers Digger,that works a treat.I still have 2 pics in one column,but each row of 2 pics has its own cell. My page will have 40 pics 2 wide on 20 rows.

In general is it better to have a separate cell for each picture.
Old 05 March 2006, 05:41 PM
  #7  
D16GER
Scooby Regular
 
D16GER's Avatar
 
Join Date: Sep 2005
Posts: 924
Likes: 0
Received 0 Likes on 0 Posts
Default

A separate cell for each image is not necessary with your setup. It would only be needed if you were designing a more advanced page. I would leave as is - for now anyway.
Old 05 March 2006, 06:19 PM
  #8  
paulr
Scooby Regular
Thread Starter
 
paulr's Avatar
 
Join Date: Jan 2005
Location: Lincolnshire
Posts: 15,623
Likes: 0
Received 0 Likes on 0 Posts
Exclamation

Okay thanks.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM
Brumguy34
Subaru Parts
8
04 October 2015 07:51 PM
powerwrx
Non Scooby Related
21
03 October 2015 11:31 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
johnnybon
Subaru Parts
13
29 September 2015 10:47 PM



Quick Reply: Aligning images in Dreamweaver.



All times are GMT +1. The time now is 12:47 AM.