Link to home
Start Free TrialLog in
Avatar of Cragly
Cragly

asked on

ASP.NET User Controls And Line Breaks

Hi I am trying to create a top navigation menu for my website using user controls. I have a table with one <tr> and one <td>. Within the <td> I have:

spacerImage1 - UC1 - SpacerImage2 - UC2 - SpacerImage 3 - UC3 - SpacerImage4

Howver when the page renders in the browser there seems to be a line break after each of the user controls which adds space to the <td>, making the menu to long for the 700px table.

I have tried creating individual <td>'s and setting their sizes and putting the images and user controls in those. But still I get the same problem.

Does anybody know why this happens and how to prevent it.

Many thanks

Craig  
ASKER CERTIFIED SOLUTION
Avatar of SweetsGreen
SweetsGreen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amit_g
My guess is that there is an extra line break inside the user controls. So whatever you do, the line break would always some. The only way would be to change tose usercontrols and remove any line breaks.
Avatar of Cragly
Cragly

ASKER

Yup for some reason i created a td for each element and set the sizes and it all worked a treat.

Many thanks for your help.