Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-13-2007, 09:19 AM Table cell resize
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
Ok this might be a noob question but i cant seem to figure it out.

I have a table thats being generated from a SQL query in ASP that contains links to other pages. My CSS doc makes a link go bold and italic on hover. The problem is that when i put the mouse over a link it resizes the whole table to fit the text that isnt even big enough to go outside of the boundries of the cell.

I have tried.
1) Making the txt smaller on hover. This will work if you make it small enough that you can read it anymore.
2) stopping the text from turning bold, no change
3) defining the cell height and width, even with huge cells it will resize.

This is the table page code:
Code:
<?xml version="1.0"?>
<!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>Help Desk&nbsp;-&nbsp;Problem List</title>
    <link rel="stylesheet" type="text/css" href="../default.css">
  </head>
    <body>
     <center>
      <table width="820"><tr><td valign="top" align="left"><font size="-1"><b>User Name:</b> jon.hagan<br /><b>Problems:</b> <a href="view.asp">13</a></font></td><td valign="top" align="right"><font size="-1">Support rep logged in.<br /><i><a href="../admin/">Help Desk Administration</a></i></font></td></tr></table></center>
       <div align="center">
        <table class="Wide">
         <tr class="Head1">
          <td colspan="6">
            Problem Listing for&nbsp;
          </td>
         </tr>
          <tr class="Head2"  align="center">
           <td nowrap><a href="showCats.asp?start=1&num=10&sort=1&order=1&category_ID=10&cname=&intSort=1" class="HeadLink">		ID			</a></td>
           <td >      <a href="showCats.asp?start=1&num=10&sort=2&order=&category_ID=10&cname=&intSort=2" class="HeadLink">		Title			</a></td>
           <td nowrap><a href="showCats.asp?start=1&num=10&sort=3&order=&category_ID=10&cname=&intSort=3"class="HeadLink">		Assigned To		</a></td>
           <td nowrap><a href="showCats.asp?start=1&num=10&sort=4&order=&category_ID=10&cname=&intSort=4" class="HeadLink">		Date Submitted		</a></td>
           <td nowrap><a href="showCats.asp?start=1&num=10&sort=5&order=&category_ID=10&cname=&intSort=5" class="HeadLink">		Status			</a></td>
       	   <td nowrap><a href="showCats.asp?start=1&num=10&sort=5&order=&category_ID=10&cname=&intSort=6" class="HeadLink">		Priority		</a></td>
          </tr>
          <tr class="Body1">
	   <td nowrap><div align="center">3</div></td>   
           <td><div align="center"><A HREF="rep/details.asp?id=3">ouifv u bnug ib ku</A></div></td> 	
           <td nowrap><div align="center" height='100%'><A HREF="mailto:jon.hagan@bosgroup.com?Subject=HELPDESK: Problem 3">Jon Hagan</A></div></td>
           <td nowrap><div align="center">3/9/2007</div></td>
           <td nowrap><div align="center">OPEN</div></td>
           <td nowrap><div align="center"><img SRC = "../image/yellow_pin.gif"></div></td>
          </tr>
	  <tr class="Body1">
           <td nowrap><div align="center">2</div></td>
           <td><div align="center"><A HREF="rep/details.asp?id=2">ouifv u bnug ib ku</A></div></td> 	
           <td nowrap><div align="center" height='100%'><A HREF="mailto:jon.hagan@bosgroup.com?Subject=HELPDESK: Problem 2">Jon Hagan</A></div></td>
           <td nowrap><div align="center">3/9/2007</div></td>
           <td nowrap><div align="center">OPEN</div></td>
           <td nowrap><div align="center"><img SRC = "../image/yellow_pin.gif"></div></td>
          </tr>          
         <tr class="bigTitle">
	  <td colspan="6">
             &nbsp
	  </td>
	</tr>
      </table>
     </div>
    </body>
   </html>
This is the CSS used:
Code:
body {
  font: 11px Arial,Verdana,Helvetica;
  font-size: 10pt;
  color: #000000;
  background-color: #FFFFFF;
  margin:50px 0px; padding:0px;
	text-align:center;
}

a.HeadLink {
  text-decoration: none;
  color: #FFFFFF;
}

a.HeadLink:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

a {
  text-decoration: none;
  color: #9F1E27;
}

a:hover {
  color: #073678;
  font-weight: bold;
  font-style: italic;
}

HeadLink {
  text-decoration: none;
  color: #FFFFFF;
}
table.Wide {
  font-size: 10pt;
  width: 850px;
}
tr.Head1 { 
  font-size: 15pt;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  background-color: #9F1E27;
}
tr.Head2 {
  color: #FFFFFF;
  font-weight: bold;
  background-color: #073678;
  text-align: center;
}
tr.Body1 { 
  color: #000000;
  background-color: #EEEEEE;
  text-align: center;
}
tr.bigTitle{
	color: #FFFFFF;
  font-weight: bold;
  font-size: 8px;
  text-align: center;
  background-color: #9F1E27;  
}
The_Anomaly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2007, 10:29 AM Re: Table cell resize
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
Well i figured this out and yeah it was a noob question. All i had to do was define a <td width='30%'> in the cell that contained the links. The table must have been resizeing because it was never really told not to resize that specific cell.
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 03-13-2007, 02:26 PM Re: Table cell resize
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Try <table cellPadding="0" cellSpacing="0">. You might want to use CSS rules to turn margin and padding off for all table elements. But that's what jumps out to me - you say the table is resizing even when it doesn't need to, but when you add in the paddings, maybe it does need to?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Table cell resize
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32409 seconds with 12 queries