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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
Many thanks for your help.