tr/td width |
tr/td width |
MindyT |
Aug 28 2016, 09:24 PM
Post
#1
|
Advanced Member Group: Members Posts: 165 Joined: 12-November 13 Member No.: 19,963 |
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 |
Aug 29 2016, 02:07 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
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 |
Aug 29 2016, 03:26 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
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. |
Lo-Fi Version | Time is now: 29th March 2024 - 10:05 AM |