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
Why extra padding in a td class if there is aspan class in side that
Old 01-31-2007, 05:43 AM Why extra padding in a td class if there is aspan class in side that
Junior Talker

Posts: 2
Trades: 0
Hi , I am facing a problem regarding the padding inside a table.
I want a table with columns, in one column I have to place a button.
Whenever I put the button inside the td class , some extra padding is coming. The following is my sample code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
<STYLE type="text/css">
.asdf{
padding: 1px 10px 0px 10px;
display:inline;
}
.qwer{
width:48px;
}
.gobutton {
border: #00329A 1px solid;
background: url(X:/images/aral/butt_back.gif);
min-width:5px;
}
.gobutton4
{
background: url(X:/images/aral/butt_back.gif);
border: medium none;
padding-left: 14px;
padding-right:6px;
font-weight: bold;
font-size: 8pt;
color: #ffffff;
padding-top: 0px;
padding-bottom: 1px;
font-family: verdana, arial, sans-serif;
height: 16px;
background-color:transparent;
white-space:nowrap;
text-align:left;
overflow:visible;
min-Width:1px;
text-decoration:none;
vertical-align:middle;
}

</STYLE>
</HEAD>
<body>
<table border="1" cellpadding="0" cellspacing="1" bgcolor="#d9e2f0" id="Data">
<tr>
<td><span class='gobutton'><input name='submitfilter' type='button' onclick='filter_aral_onclick("""& authList &""");'class='gobutton4' value='fdfs' ID="Button1"/></span></td>
<td style="padding-right:0px">
&nbsp;&nbsp;<span class='gobutton'><input name='submitfilter' type='button' onclick='filter_aral_onclick("""& authList &""");'class='gobutton4' value='I am new to this forum' ID="Button2"/></span>
</td>
<td>I am new to this forum</td>
<td>fefghghhjrtgrthr</td>
</tr>

</table>
</body>
</html>
vissu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-31-2007, 11:50 AM Re: Why extra padding in a td class if there is aspan class in side that
bbutton's Avatar
Experienced Talker

Posts: 43
Name: Bill Button
Location: Reading,UK
Trades: 0
Hi,

Oops I was wrong so removed my own comments, I need more sleep.

Regards
__________________
Bill Button

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Last edited by bbutton; 01-31-2007 at 11:55 AM.. Reason: I was wrong
bbutton is offline
Reply With Quote
View Public Profile Visit bbutton's homepage!
 
Old 01-31-2007, 03:18 PM Re: Why extra padding in a td class if there is aspan class in side that
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Try these resources:
http://css-discuss.incutio.com/?page...edGapsInTables

http://css-discuss.incutio.com/?page=NicerTables

http://css-discuss.incutio.com/?page=CollapsingBorder
http://icant.co.uk/csstablegallery/index.php
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-31-2007, 04:14 PM Re: Why extra padding in a td class if there is aspan class in side that
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
A great tool to analyze your css code is firebug, on firefox.

Once installed, go to your page, hit the "f12" key, and click the "inspect" button, next to the bug.

Now, click on the element of your page you wan to inspect, and in the lower right part of the firebug frame, you will see every css rules that applies for that element.
And you can even modify them on the fly, without re-uploading your page all the time.

A real time saver for me.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Why extra padding in a td class if there is aspan class in side that
 

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.32304 seconds with 12 queries