Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Thanked 0 Times in 0 Posts

    align="top"; issue with image within div

    I want the bottommost image to line up right next to that bottommost orange line on this page. I have applied float left tags to the containing div and an align top tag to the image, but it's not moving. Any ideas?

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,836 Times in 1,820 Posts
    We float elements to put other elements beside them. No need to float a full width element.

    Your image is 75px high, you are resizing it with inline styles to 46px high, the div you place it in is 89px high.
    Then you also put a break in there which adds even more space.

    Try this -
    <div style="margin: 0px; width: 926px; float: left;">
    	<img src="images/FLASHHERE.png" width="922" align="top" height="46"></div>
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts