Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:14:33+00:00 2026-06-10T15:14:33+00:00

This one looks like a text wrap bug in webkit, or did i miss

  • 0

This one looks like a text wrap bug in webkit, or did i miss something?

DOM:

<div>
  <p>
    <img src="http://static.jsbin.com/images/favicon.png">
    no sea takimata sanctus estestest Lorem ...
  </p>
</div>

CSS:

div {
  width: 200px;
}

p {
 margin-right: 32px;
 padding-left: 30px;
}

img {
 float: left;
 margin-left: -30px;
}

wrong text wrap

Demo: http://jsbin.com/onoced/1/edit

Screenshots:

Chromium 22.0.1223.0 (149385) and Chrome 21.0.1180.79
Firefox 14.0.1
Opera 12.00

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:14:35+00:00Added an answer on June 10, 2026 at 3:14 pm

    I wouldn’t say this is a bug, as you pointed out: it behaves equally in WebKit browsers. Otherwise we’d have to classify every single difference between Browser engines as bugs.

    Though there are people who already reported a similar problem to Webkit.org: http://bugs.webkit.org/show_bug.cgi?id=63074

    But this is not just limited to paragraphs, same behaviour can be also found in lists and headers.

    See example: http://jsbin.com/uzozus/1/edit

    An explanation for this behaviour in Webkit browsers is:

    If a negative margin is applied opposite a float, it creates a void
    leading to the overlapping of content.

    Source: http://coding.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/

    Let’s apply this to your example: your image width is 16px by 16px so in order to equalise this to the negative margin of 30px we have to add 14px horizontally

      img {
        float: left;
        margin-left: -30px;
        padding:5px 14px 0 0;
      }
    

    See example: http://jsbin.com/onoced/37/edit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My page layout looks something like this : <style type=text/css> #content-wrap { margin: 0
I have a page which essentially looks like this: <div id=foo> <a>One</a>, <a>Two</a>, <a>Three</a>,
I have a table which looks like this one: | id | fk_book |
Is there any themes for emacs which looks like this one? http://www.lnbogen.com/VisualStudioNet2005Colors.aspx
I have two singletons, the first one's header looks like this (I've omitted everything
I have a Makefile that looks something like this: sometarget: command_one # calls fork()
A one-many or many-many relationship in Entity Framework Code First looks like this:- public
In one of my controllers, I do have a return that looks like this:
I'm playing with one stack overflow example. This example looks like this: void return_input
I have a text with multiple links in it. One single link looks like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.