Help - Search - Members - Calendar
Full Version: tr/td width
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
MindyT
Hi, can someone help me understand why I can't adjust the width to the tr or the td that has the agent information. I have tried putting the class attribute on the tr and the td but the width won't change.
CODE

<?php
require_once('functions.php');

?>  

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Untitled Document</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel = "stylesheet" href = "Bixler.css">
<style type="text/css">
#agents {
    width:80%;
}
.agentDes {
        width:5%;
    }
</style>
</head>
<body>
<?php echo headerInfo();?>
<table id="agents">
    <tr>
        <td> <figure><img src="assets/agents/Russ.jpg" alt="Russ">
    </tr>
    <tr class="agentDes">
        <td>Russ is the President of Bixler Insurance, Inc., and started with the agency back in 1975. He specializes in Personal, Farm, and Commercial insurance. With his extensive industry experience, and knowledge Russ looks forward to providing clients with smart, comprehensive insurance solutions. He graduated from Indiana Central, which is now University of Indianapolis, in 1973. Russ is very active in community service groups throughout Adams County. He lives in Geneva with his wife Susan, and has two sons, John and Andrew.</td>
    </tr>
</table>
<?php echo footerInfo();?>
</body>
</html>

Darin McGrew
You have two table rows in the same table. They are going to be the same width.

You have one table data cell in each table row. It is going to be the same width as the table row that it belongs to.

What else would you expect to happen?
pandy
And width doesn't apply to TR anyway.

What look are you trying to accomplish? You probably need a table with more cells to do it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.