We help IT Professionals succeed at work.

rounded corner image placement in table

426 Views
Last Modified: 2013-11-19
when I place the image of a rounded corner in a table, the TD that was 50px by 50px becomes something like 50px wide by 70 px high. Where do the extra pixels come from and how do I eliminate them?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>index3.html</title>
<link href="styling3.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="wrapper">
			<h1><center>James V. Cannon - CS120S08</center></h1>
		<center><table border="2px"   
						bordercolor="CCFFCC" ></center>
		<caption> Crossword Puzzle </caption>
		<tr> <!--reserve for rounded corners in row -->
			<td <img src="ULRC.jpg"/>&nbsp;</td> <!--row 1, column 1 for rounded corner-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 2 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 3 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 4 for solid black celL-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 5 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 6 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 7 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 1, column 8 for solid black cell-->
			<td >&nbsp;</td> <!--row 1, column 9 for solid black cell-->
			
		</tr> <!--/*row 1-->
		<tr> <!-- reserve for ACE, row 2 -->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 1 for rounded corner-->
			<td>&nbsp;</td> <!--row 2, column 2 for solid black cell-->
			<td>&nbsp;</td> <!--row 2, column 3 for solid black cell-->
			<td>&nbsp;</td> <!--row 2, column 4 for solid black celL-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 5 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 6 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 7 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 8 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 2, column 9 for solid black cell-->
		</tr> <!--/*row 2-->
		<tr> <!-- reserve for N A, row 3 -->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 1 for rounded corner-->
			<td>&nbsp;</td> <!--row 3, column 2 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 3 for solid black cell-->
			<td>&nbsp;</td> <!--row 3, column 4 for solid black celL-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 5 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 6 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 7 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 8 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 3, column 9 for solid black cell-->
		</tr> <!--/*row 3-->
		<tr> <!-- reserve for N A, row 4 -->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 4, column 1 for rounded corner-->
			<td>&nbsp;</td> <!--row 4, column 2 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 4, column 3 for solid black cell-->
			<td>&nbsp;</td> <!--row 4, column 4 for solid black celL-->
			<td>&nbsp;</td> <!--row 4, column 5 for solid black cell-->
			<td>&nbsp;</td> <!--row 4, column 6 for solid black cell-->
			<td>&nbsp;</td> <!--row 4, column 7 for solid black cell-->
			<td>&nbsp;</td> <!--row 4, column 8 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 4, column 9 for solid black cell-->
		</tr> <!--/*row 4-->
		<tr> <!-- reserve for N A, row 5 -->
			<td>&nbsp;</td> <!--row 5, column 1 for rounded corner-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 2 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 3 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 4 for solid black celL-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 5 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 6 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 7 for solid black cell-->
			<td bgcolor="#000000";>&nbsp;</td> <!--row 5, column 8 for solid black cell-->
			<td>&nbsp;</td> <!--row 5, column 9 for solid black cell-->
		</tr> <!--/*row 5-->
	</table>
	<p>
		<div class="solidborder">
			<center id="footer" >
				Copyright &copy; 2008 James V. Cannon <br />
					email: jascanon@gmail.com</center>
	</p>
		</div> 
	</div> <!--wrapper-->
</body>
</html>

Open in new window

Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Forgot to mention that in that last solution (setting the corner image as a background), you'd need to make sure you removed the image itself from the TD (since it's being served as a background image instead)

Author

Commented:
the problem was the %nbsp;
I don't understand why the B grading when I specifically mentioned the & nbsp; in #2 for one of the possible issues.

Author

Commented:
I did not understant the image idea as I am a beginner and only work with Microsoft Paint. I thought I had to have someithing like Adobe Photoshop to do images, My apologies.
Jim

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.