Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using .net 3.5 framework.
In my application in single <tr> tag I just take 2 <td>, one is for my bitmap and one is for my MSchart control.
I want to show bitmap image and chartcontrol chart as close as they can, but due to paddings in <td> it looks quite separated.

I had experiment "align" property and "style" property already, but it dosen't work for me.
In "Style" property I just set padding as "zero".

Can anybody suggest me somthing to overcome that issue?

In the table control I have already set :
XML
<table id="tblProjStatusInner"   runat="server" border="0" cellpadding="0" cellspacing="0">

Still it doesn't work.

Thanks & Regards
Yogesh .
:(
Posted
Updated 12-Jan-11 20:25pm
v2
Comments
JF2015 13-Jan-11 2:25am    
Fixed code formatting.
Vigneshb6 13-Jan-11 2:26am    
Set td's height and width to the images height and widht.
YOGESH DHAGE 13-Jan-11 3:14am    
thanks for the instant response.but still its not working............

any hard code ??????????

1 solution

Are you sure that the padding isn't in the bitmap or chart? Or that you have some other css styles that add padding to td in a style sheet? The settings you have mean that there should be no padding or spacing between cells so it must be coming from somewhere else. You could try cropping the image or seeing if there is formatting that can be applied to the chart such that you could reduce margins.

You could also try to set negative padding/margins though that still means something else is wrong.
 
Share this answer
 
Comments
YOGESH DHAGE 13-Jan-11 4:04am    
Thanks For ur instant response friend, as you told just i had checked all the posiblites about extra padding, but it no where come from anything else,if possible can you tell me how to align the chart area at extreme left of the <td>,
i think it may be work for me
Thanks
R. Giskard Reventlov 13-Jan-11 4:52am    
I guess you could try adding a negative padding to the chart to pull it left. Perhaps as: padding-left: -20px;. But I would suggest that is not good practice and you should rethink your layout or crop the chart in some way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900