How Do I keep spacing at one

Have this as a cell of my table, and want to know how to keep the text from having a space in-between. I realize the <p> code adds that space, but the text is a caption for a photo and it has to be minimized or “squashed” if you
will to fit under that photo in the table. Not sure I am explaining myself correctly, and if not, I apologize.

<td>

<p><center>First Meeting of the World Council</center></p>
<p><center>Longleat Castle, Bath, England</center></p>
</td>

Okay, reworked it, and now have the following code. It looks fine in IE8, but in Firefox the photo captions are aligned to the left underneath each photo?
Any suggestions are appreciated…

<html>
<head>
<title>TableData</title>
<style type=“text/css”>

img {border: 4px solid black;

margin: 10px;

 body{font-family: Verdana; sans-serif;}

h1 {font-size: 25;}
h2 {font-size: 35;}
h3 {font-size: 30;}
text {font-weight: bold;}

p
{
padding: 0;
margin: 0;
text-align: center;
}

}
</style>
</head>

<body>

<body bgcolor=“#FFA07A”>

<h1 align=“center”><font color=“black” font size=“45”>“A Few Photos”</h1>

<p><h3 align=“center”><font color=“red”>Click image to view full size</h3></p></a>

<table align=“center”>
<tr>

		&lt;td&gt;&lt;a href="thumbs/Rosaliethumb.jpg"&gt;&lt;img src="images/Rosalie.jpg" width="250" height="185" alt="Rosalie Ray, treasurer, Harry Bodofsky, VP, myself and Jerry Lenk, secretary"&gt;&lt;/a&gt;
		&lt;/td&gt;
		&lt;td&gt;
		&lt;a href="thumbs/GarrettSeminarthumb.jpg"&gt;&lt;img src="images/GarrettSeminar.jpg" width="250" height="185" alt="Charles Garrett Seminar in Atlantic City"&gt;&lt;/a&gt;
		
		&lt;td&gt;&lt;/a&gt;&lt;a href="thumbs/FMDAChunt.jpg"&gt;&lt;img src="images/FMDAChunt.jpg" width="250" height="185" alt="Jack Lowry, Alan Holcombe, yours truly and the late Gary Bischke"&gt;&lt;/a&gt;
		&lt;/td&gt;
		&lt;td&gt;&lt;a href="thumbs/Foundthumb.jpg"&gt;&lt;img src="images/Found.jpg" width="250" height="185" alt="Showing off at club hunt in the eary 80's"&gt;&lt;/a&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			&lt;p&gt;Rosalie Ray, Harry Bodofsky, yours truly&lt;/p&gt;
			&lt;p&gt;Jerry Lenk,...first FMDAC officers&lt;/p&gt;
		
		&lt;/td&gt;
		
		&lt;td&gt;
			&lt;p&gt;Charles Garrett Seminar at&lt;/p&gt;
			&lt;p&gt;Treasure Weekend, AC, 1986&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Jack Lowry, Alan Holcombe,&lt;/p&gt;
			&lt;p&gt;Dick Stout and the late Gary Bischke&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Displaying finds, club hunt, 1982&lt;/p&gt;
		&lt;/td&gt;
	&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
				&lt;a href="thumbs/LongleatArrivalthumb.jpg"&gt;&lt;img src="images/LongleatArrival.jpg" width="250" height="185" alt="Dennis and Jean Buchanon, Gerald Costellos, and Fay and I arriving for World Council Meeting"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/Jack&Myrnathumb.jpg"&gt;&lt;img src="images/Jack&Myrna.jpg" width="250" height="185" alt="With Jack & Myrna Gifford/Tesoro Electronics, 1988"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/Newburythumb.jpg"&gt;&lt;img src="images/Newbury.jpg" width="250" height="185" alt="Introducing the Grandmaster II to the UK/Newbury Rally"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/KarlBWthumb.jpg"&gt;&lt;img src="images/KarlBW.jpg" width="250" height="185" alt="Karl Von Muller and I at the Lost Treasure Classic, Tulsa, Oklahoma"&gt;&lt;/a&gt;
			&lt;/td&gt;
		
		
		&lt;tr&gt;
		&lt;td&gt;
			&lt;p&gt;Dennis & Jean Buchanon, Gerald Costello,&lt;/p&gt;
			&lt;p&gt;Dick & Fay Stout arriving at Longleat Castle&lt;/p&gt;
		
		&lt;/td&gt;			
		&lt;td&gt;
			&lt;p&gt;With Jack & Myrna Gifford&lt;/p&gt;
			&lt;p&gt;Tesoro Metal Detectors&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Introduction of Grandmaster II at&lt;/p&gt;
			&lt;p&gt;Newbury Rally, UK.&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Karl Von Muller and I,&lt;/p&gt;
			&lt;p&gt;Tulsa, Oklahoma, 1988&lt;/p&gt;
		&lt;/td&gt;
		
			
		
	&lt;/tr&gt;
	
	
		
	
&lt;/table&gt;







&lt;h1 Align="center"&gt;&lt;a href="Photos4.html"&gt;&lt;font color="blue"&gt;Back&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;a href="Photos6.html"&gt;&lt;font color="red"&gt;&lt;i&gt; More Photos&lt;/i&gt;&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;a href="test3.html"&gt;&lt;font color="blue"&gt;Home&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;

</body>
</html>

add this in your CSS file:

p
{
  padding: 0;
  margin: 0;
}

Thank you…worked like a charm. Sorry I am not that knowledgeable yet. Appreciate it very much.

There is no need for the usage of <center>.
CSS offers a declaration that replicates the presentational effect:
text-align: center;

Cooper, tried the CSS idea, but it did not work. Suspect I did something crazy…

Here is how I did it:

<style type=“text/css”>

img {border: 4px solid black;
float: center;
padding: 20px;
margin: 30px; font-family: “GC Times”: color: white;

 body{font-family: Verdana; impress;}

h1 {font-size: 25;}
h2 {font-size: 35;}
h3 {font-size: 30;}

text {font-weight: bold;}

p
{
padding: 0;
margin: 0;
}
{
text-align: center;
}

}
</style>

You have 2 brackets in a wrong place, so remove them so it looks like this:


p
{
padding: 0;
margin: 0;
text-align: center;
}

EDIT: I looked at your code again and you have a lot of mistakes regarding the brackets. All your declarations should be surrounded by brackets.

Example:

whatever { whatever; }

Thank you all… I learn more from this forum than any book. Appreciate you all very much.

The value ‘center’ is not valid regarding float. Also, font-size values need to be a unit of measurement.

For clarity, I’d recommend running your css against a validator:
http://jigsaw.w3.org/css-validator/

As well, sitepoint offers a nice reference guide that will be of some use, i’d imagine:

hi have a look

As Cooper has said, you can’t have float:center; - you can only float elements left or right.

What you might find works well is to have
td {text-align:center;}
That will centre both the image and the paragraph text in the cell, and won’t mess up any paragraphs you have elsewhere on the page.

Some other tips:

  • I’m not sure why you’re specifying a font and colour for your img, they aren’t needed at all.
  • In the body, your font declaration is a bit messed up. The semi-colon after Verdana signals the end of the font declaration, so “impress” will be treated as a separate item altogether, and so is invalid. If “impress” is supposed to be an alternative font, then (a) you need to separate the fonts by commas, not semicolons, (b) you should aim to make the fonts as similar as possible, at least with the same flavour to them, to ensure your site looks consistent, and (c) Verdana is one of the most ubiquitous fonts out there, so the only thing you might want to specify after it is sans-serif as a general catch-all - there is no point in specifying a different Windows font after Verdana, because it will never get used.
  • As Cooper has said, font sizes need units - or you can specify them as % of the normal font size.
  • There is no element text. You either need to include the font-weight:bold; in the declaration for another element or, if you are using class="text", add a full stop to make it .text

Okay, your suggestions have helped tremendously. The only remaining problem is how the site looks in Firefox. For some reason every other page has the photo caption lined up underneath and centered. Also the spacing is
not single but doubled. The every other centered thing really has me baffled.

Also, everything looks great in IE, but not in Firefox. The centered caption thing again has me baffled. I have checked the style code, and it’s identical.

Also, everything looks great in IE, but not in Firefox. The centered caption thing again has me baffled. I have checked the style code, and it’s identical.

Show us what you have now code-wise. Also not entirely sure what single and double means here. Can you also post mini screenshots?

<html>
<head>
<title>TableData</title>
<style type=“text/css”>

img {border: 4px solid black;
float: center;
padding: 20px;
margin: 30px; font-family: “GC Times”: color: white;

 body{font-family: Verdana; impress;}

h1 {font-size: 25;}
h2 {font-size: 35;}
h3 {font-size: 30;}
text {font-weight: bold;}

p
{
padding: 0;
margin: 0;
text-align: center;
}

}
</style>
</head>

<body>

<body bgcolor=“#FFA07A”>

<hr color=“black”>
<h1 align=“center”><font color=“black” font size=“45”>“A Few Photos”</h1>

<p><h3 align=“center”><font color=“red”>Click image to view full size</h3></p></a>
<hr color=“black”>

<table align=“center”>
<tr>

		&lt;td&gt;&lt;a href="thumbs/Rosaliethumb.jpg"&gt;&lt;img src="images/Rosalie.jpg" width="250" height="185" alt="Rosalie Ray, treasurer, Harry Bodofsky, VP, myself and Jerry Lenk, secretary"&gt;&lt;/a&gt;
		&lt;/td&gt;
		&lt;td&gt;
		&lt;a href="thumbs/GarrettSeminarthumb.jpg"&gt;&lt;img src="images/GarrettSeminar.jpg" width="250" height="185" alt="Charles Garrett Seminar in Atlantic City"&gt;&lt;/a&gt;
		
		&lt;td&gt;&lt;/a&gt;&lt;a href="thumbs/FMDAChunt.jpg"&gt;&lt;img src="images/FMDAChunt.jpg" width="250" height="185" alt="Jack Lowry, Alan Holcombe, yours truly and the late Gary Bischke"&gt;&lt;/a&gt;
		&lt;/td&gt;
		&lt;td&gt;&lt;a href="thumbs/Foundthumb.jpg"&gt;&lt;img src="images/Found.jpg" width="250" height="185" alt="Showing off at club hunt in the eary 80's"&gt;&lt;/a&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			&lt;p&gt;Rosalie Ray, Harry Bodofsky, yours truly&lt;/p&gt;
			&lt;p&gt;Jerry Lenk,...first FMDAC officers&lt;/p&gt;
		
		&lt;/td&gt;
		
		&lt;td&gt;
			&lt;p&gt;Charles Garrett Seminar at&lt;/p&gt;
			&lt;p&gt;Treasure Weekend, AC, 1986&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Jack Lowry, Alan Holcombe,&lt;/p&gt;
			&lt;p&gt;Dick Stout and the late Gary Bischke&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Displaying finds, club hunt, 1982&lt;/p&gt;
		&lt;/td&gt;
	&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;
				&lt;a href="thumbs/LongleatArrivalthumb.jpg"&gt;&lt;img src="images/LongleatArrival.jpg" width="250" height="185" alt="Dennis and Jean Buchanon, Gerald Costellos, and Fay and I arriving for World Council Meeting"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/Jack&Myrnathumb.jpg"&gt;&lt;img src="images/Jack&Myrna.jpg" width="250" height="185" alt="With Jack & Myrna Gifford/Tesoro Electronics, 1988"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/Newburythumb.jpg"&gt;&lt;img src="images/Newbury.jpg" width="250" height="185" alt="Introducing the Grandmaster II to the UK/Newbury Rally"&gt;&lt;/a&gt;
			&lt;/td&gt;
			&lt;td&gt;
				&lt;a href="thumbs/KarlBWthumb.jpg"&gt;&lt;img src="images/KarlBW.jpg" width="250" height="185" alt="Karl Von Muller and I at the Lost Treasure Classic, Tulsa, Oklahoma"&gt;&lt;/a&gt;
			&lt;/td&gt;
		
		
		&lt;tr&gt;
		&lt;td&gt;
			&lt;p&gt;Dennis & Jean Buchanon, Gerald Costello,&lt;/p&gt;
			&lt;p&gt;Dick & Fay Stout arriving at Longleat Castle&lt;/p&gt;
		
		&lt;/td&gt;			
		&lt;td&gt;
			&lt;p&gt;With Jack & Myrna Gifford&lt;/p&gt;
			&lt;p&gt;Tesoro Metal Detectors&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Introduction of Grandmaster II at&lt;/p&gt;
			&lt;p&gt;Newbury Rally, UK.&lt;/p&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;p&gt;Karl Von Muller and I,&lt;/p&gt;
			&lt;p&gt;Tulsa, Oklahoma, 1988&lt;/p&gt;
		&lt;/td&gt;
		
			
		
	&lt;/tr&gt;
	
	
		
	
&lt;/table&gt;







&lt;h1 Align="center"&gt;&lt;a href="Photos4.html"&gt;&lt;font color="blue"&gt;Back&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;a href="Photos6.html"&gt;&lt;font color="red"&gt;&lt;i&gt; More Photos&lt;/i&gt;&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;a href="test3.html"&gt;&lt;font color="blue"&gt;Home&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;

</body>
</html>

If you’re not going to fix the errors that we’ve told you about, it’s going to be difficult to solve any problems…

You’re missing a } at the end of the img declaration (after the margin property). Also, you have a } which is not needed at the end of your CSS code. Finally, as Stevie D said:

Thank you again. Sorry to be so slow with this…

You’re Welcome.

No problem at all, but you should really invest some time to read some tutorials and/or books to learn at least the basics. It will save you precious time!

Barnum:
If you add a proper Doctype to the beginning of your HTML pages, you can get the [url=http://validator.w3.org/]HTML Validator to catch both fat-finger typos AND actual mistakes you make (your HTML doesn’t even have to be online either!). You might not always understand why something’s an error but if it’s a typo you can fix that right away. You can also [url=http://jigsaw.w3.org/css-validator/]validate CSS but generally that’s most useful for actual syntax errors (missing ; etc) than the warning which I always ignore nowadays. It would tell you “text” didn’t exist and that you were missing a }.

Best rule to keep in mind using those things is, errors compound. So start with the first one, and often fixing one error fixes a bunch of others.

You’ll get there. We managed to, didn’t we? : )