• Even in the html post view, you cannot control whether or not there is a p tag used in your post. This is frustrating, because when I insert an image into my post, I don’t want it wrapped in a p tag.

    The reason is, the image will then pick up p tag hover properties (in Firefox), Which looks janky (a dotted underline when you hover, pushing everything below the image down when you hover over it). Even with special classes applied to the image, I can’t stop the hover, because its applied to the p tag.

    Why does wordpress deny us the ability to control whether or not there’s a p tag, and is there a way to hack around it?

    Thanks,
    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Even with special classes applied to the image, I can’t stop the hover, because its applied to the p tag.

    Try a Google search for: css !important

    Thread Starter inorganik

    (@inorganik)

    Irrelevant… What’s applied to the image tag won’t change the behavior, because its the <p> tags behavior that’s being displayed. And I want that <p> tag behavior, I just don’t want it affect my image.

    The image already has a border and a hover border applied to it. Since its forced to be wrapped in a <p> tag by wordpress, it has an additional border applied on hover, because the of the <p> tag hover property I have applied.

    So once again, is there any way to control whether or not there is a way to exclude the <p> tag from a post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic <p> tags in post messing me up’ is closed to new replies.