|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Webcontrol Alignment problemInitially I have a set of imagebuttons within a table <TD> element which I'm
using as "tabs" so there is no space between the bottom of the images and the row underneath. Since these imagebuttons ended up on many pages I decided to make a webcontrol out of it. So all I did was copy the imagebutton HTML statements into the webcontrol and replaced the original imagebuttons with the new webcontrol. Unfortunately the bottom of the imagebuttons (now in a webcontrol) have a small gap of white space between them and the row below. The table still has cellpadding and cellspacing set to 0, so I'm not sure what's on with this. Any ideas? Is this a bug? I'm using the .NET Framework 1.1. Thanks! Jeff Tolman jeff.tol***@enm.com Have you looked at the HTML source? I would suspect that the user control
is probably contained within a <div> which is causing the extra white space. If this is the case, you should be able to remove this extra space using a stylesheet, probably changing the margins of the div. The answer to your overall question is that it is not a bug. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Jeff Tolman" <jeff.tol***@enm.com> wrote in message news:uX0DFvSXGHA.3660@TK2MSFTNGP04.phx.gbl... > Initially I have a set of imagebuttons within a table <TD> element which > I'm using as "tabs" so there is no space between the bottom of the images > and the row underneath. Since these imagebuttons ended up on many pages I > decided to make a webcontrol out of it. So all I did was copy the > imagebutton HTML statements into the webcontrol and replaced the original > imagebuttons with the new webcontrol. Unfortunately the bottom of the > imagebuttons (now in a webcontrol) have a small gap of white space between > them and the row below. The table still has cellpadding and cellspacing > set to 0, so I'm not sure what's > on with this. > > Any ideas? Is this a bug? I'm using the .NET Framework 1.1. > > Thanks! > > Jeff Tolman > jeff.tol***@enm.com >
Other interesting topics
One page - edit & insert
return url value Display a record - several questions Validation inside composite controls for ASP .NET 2.0 Show ***** only if have a password How do I debug apsx pages? using 'sender' object on event fires FormView - initial template problem traping event in child control How to set default values for fields in detailsview |
|||||||||||||||||||||||