dshrenik
asked on
Spacing between images in a table cell (ASP.NET C#)
I have multiple ImageButtons in a single cell of table in my .aspx page. The ImageButtons and the table are generated dynamically.
Please tell me how I can change the spacing between them.
Please tell me how I can change the spacing between them.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The following code is not working:
<style>
ImageButton {
left-padding: 15px;
}
</style>
ASKER
Also, can you tell me where I need to add this code in my .aspx page?
When I add it inside a ContentPlaceHolder, it says that "Element 'Style' cannot be nested within element 'div".
When I add it inside a ContentPlaceHolder, it says that "Element 'Style' cannot be nested within element 'div".
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Great. Thanks!
Just a comment about assigning class for dynamically created ImageButtons.
The following code is required:
Just a comment about assigning class for dynamically created ImageButtons.
The following code is required:
ASKER