News
: July 14, 2008 - New Contest! -
Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 -
Submit Your Site for the July 08 Site of the Month Award!
Home
Help
Search
Calendar
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
July 24, 2008, 11:48:31 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Advanced Assistance
>
Lunarpages - Webdesign and HTML
>
Table data height
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Table data height (Read 190 times)
tomrichey
Spacescooter Operator
Offline
Posts: 42
Table data height
«
on:
January 14, 2008, 01:45:19 PM »
Hello everyone-
I am attempting to draw a fraction using the following code inside the table data cell of another table:
<table cellpadding="0" cellspacing="0">
<tr> <td align="center"><div class="FontSize2"><b>24</b></div></td> </tr>
<tr> <td align="center"><img src="<?php echo $LinePath; ?>" alt="Fraction bar" height="2" width="<?php echo $Frac2ChWid; ?>"></td> </tr>
<tr> <td align="center"><div class="FontSize2"><b>30</b></div></td> </tr>
</table>
"FontSize2" is just a text size, $LinePath is the path to the image of the fraction bar, and $Frac2ChWid stores the width of the fraction bar in different screen resolutions. In IE6 the fraction shows up fine, but in Firefox the table data cell containing the image of the fraction bar is always about 20 pixels high instead of 2. I have tried the following CSS statements combined with <td class="test"> to fix the problem:
td.test
{ margin: 0px;
height: 3px;
padding: 0px; }
td.test
{ display: block;
margin: 0px;
height: 3px;
padding: 0px; }
The first statement has no effect, the second produces a strange image that looks like a completely new table cell has been created in addition to the existing one.
What am I doing wrong? I am a novice programmer, so please use simple terminology.
Thanks for your help,
Tom Richey
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lunarpages Web Hosting - Information & Opportunities
-----------------------------
=> Lunarpages Web Hosting - Announcements
=> Lunarpages Web Hosting - Hosting Plans & Site Information
=> Job Opportunities at Lunarpages Web Hosting
=> Lunarpages Web Hosting - Network Information
=> Lunarpages Web Hosting - Server Information
-----------------------------
Lunarpages Web Hosting - Before Signing Up
-----------------------------
=> Lunarpages Web Hosting Plans - Pre-Sales Questions
-----------------------------
Lunarpages Web Hosting - Online Help Desk
-----------------------------
=> Lunarpages - Webhosting Help
=> Lunarpages - Beginner Assistance
=> Lunarpages - How to's
=> E-mail with your Lunarpages Hosting Plan
=> Lunarpages - CPanel Help
=> Lunarpages - Ecommerce Hosting
=> Lunarpages - FrontPage
=> Lunarpages - DreamWeaver
=> Lunarpages - Message Boards-Forums-Fantastico Scripts
===> Lunarpages - Joomla / Mambo
-----------------------------
Lunarpages Web Hosting - Advanced Assistance
-----------------------------
=> Web Management
=> Lunarpages - Webdesign and HTML
=> Lunarpages - Search Engine Optimization
=> Lunarpages - Animation & Flash
=> Lunarpages - Graphics
=> Lunarpages - Web Hosting, Email & PC Security
=> Lunarpages - Dedicated Web Hosting
=> Lunarpages - Reseller Web Hosting
=> Lunarpages - VPS Hosting
=> Lunarpages - SharePoint Services (Beta)
===> Lunarpages - cPanel & WHM
===> Lunarpages - General
===> Lunarpages - Plesk
===> Lunarpages - Security
===> Lunarpages - Tutorials
===> Lunarpages - Webmin
===> Lunarpages - WHM
-----------------------------
Lunarpages Web Hosting - Coding
-----------------------------
=> Lunarpages - ASP
=> Lunarpages - C++ / PERL / CGI
=> Lunarpages - PHP & MySQL
=> Lunarpages - Java Applets & Javascript
=> Lunarpages - JSP & Servlets
=> Lunarpages - Ruby Hosting
=> Lunarpages - Windows Development & Hosting
-----------------------------
Lunarpages Web Hosting - Entertainment
-----------------------------
=> Lunarpages - Chat & Stuff!
=> Lunarpages - Contests
=> Fun at Lunarpages!!
=> Lunarpages - Online Gaming
-----------------------------
Lunarpages Web Hosting - General
-----------------------------
=> Social Networking
=> Lunarpages Free Web Hosting - Education Program
=> Lunarpages - Affiliate Program
=> Introduce Yourself to the Lunarpages Forum Community!
=> Your Websites & Creations at Lunarpages!
=> Lunarpages Website of the Month
=> Lunarpages - Service and Trade
Loading...