• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

Need to remove a line feed

Can someone tell me why the following line would result in a line feed before both of the images?

<td width="100%" nowrap valign="bottom"><p style="margin-left:15"><a href="Body.asp?SortBy=Name" target="SkillsBody">Employee</a>&nbsp;<img id="EmpExpand" style="display:block" src="images/Expand.gif" alt="Show Employee Detail" onclick="EmployeeDetail();"> <img id="EmpCollapse" style="display:none" src="images/Collapse.gif" alt="Hide Employee Detail" onclick="EmployeeDetail();"></td>

I would like to show just one image at a time depending on what the user clicks.  For some reason, when either image is displayed, there is a line feed thown in before the image.
0
TheChos
Asked:
TheChos
  • 3
2 Solutions
 
bubbledragonCommented:
line break between link and image?
style="display:block"
will get full width of td.
0
 
TheChosAuthor Commented:
What do you mean?
0
 
bubbledragonCommented:
default styel is inline.
style="display:inline"
0
 
bubbledragonCommented:
The line feed will cause on you set the display style is block.
0
 
r_m_shyamCommented:
Yes,
style="display:block" will span the whole TD Width, it will not allow anyother HTML element to come beside it.

Go through this URL -- > http://www.quirksmode.org/css/display.html

Regards - Shyam.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now