39 users online (0 members and 39 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 1
  2. Replies: 3
  3. Replies: 3
  4. Iframe 'padding' issue    Forum: HTML Forum
    Replies: 1
  5. Float image and left alignment    Forum: CSS Forum
    Replies: 0
  1. #1
    dizyn's Avatar
    New User

    Status
    Offline
    Join Date
    May 2007
    Posts
    3

    image left padding issue

    I i open this code in FF i get some padding on the left side of the image which is ok, but when i open it in IE i don't get this padding.
    Is there any way that I have this padding in IE?
    thanks
    Code:
    <div align="justify"><img src="http://www.site.com/default1.gif" style="padding-left:27px;" alt="Cleveland" align="right" width="152" height="136" border="0" />
    <p> Ticketchest.com is the Number   One provider of Major League Baseball tickets in the United States.   You came to the right place for great Cleveland Indians tickets -- close   to the field or anywhere you desire.   Ticketchest.com has a huge   supply of great tickets to sold-out or hard-to-get Cleveland Indians   baseball games. <br>
    </p>
    <p>Whether you need group tickets   for a professional or corporate outing or just a pair of tickets, The   Ticket Chest is your source for the best Cleveland Indians baseball   tickets on demand. Also, check into our other Major League Baseball   teams.  We do the hard work so you can focus on eating peanuts. <br>
    </p>
    </div>

  2. #2
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: image left padding issue

    I would assume that in IE the "justify" and "padding" settings are conflicting - and "justify" is winning.

    When I pasted it in, if I removed the "justify" from the <div> tag the gap appeared.

    When I used "margin-left" instead of "padding-left" it worked in both browsers.



Tags for this Thread