Need to remove a line feed

Posted on 2006-05-04
Last Modified: 2006-11-18
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.
Question by:TheChos
    LVL 7

    Expert Comment

    line break between link and image?
    will get full width of td.

    Author Comment

    What do you mean?
    LVL 7

    Expert Comment

    default styel is inline.
    LVL 7

    Accepted Solution

    The line feed will cause on you set the display style is block.
    LVL 3

    Assisted Solution

    style="display:block" will span the whole TD Width, it will not allow anyother HTML element to come beside it.

    Go through this URL -- >

    Regards - Shyam.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now