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 828699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:45:54+00:00 2026-05-15T03:45:54+00:00

I have been making a wordpress template. i got stuck at some place… the

  • 0

I have been making a wordpress template. i got stuck at some place…

the problem is,

how to maintain the size of a div >= the size of p tags and img tags…

i have seen that the div only able to contain the p tag but the img tag over flows…

i have my code in this following order:

<div>
<p> some contents <img src="an_image"/> some morecontent</p>
<div>

what i basically want is:

div height = <p> height U(union) <img> height

but, what actually i am getting is:

div height = <p> height; while <img> over flows

i have already checked for similar questions on Stack Overflow but was not able to find one which solves a similar problem..
please give me some idea..

an update:

this is my code:

<div id="the_content">
    <p><img class="alignright" src="http://i35.tinypic.com/990wtx.png" alt="WordPress Logo" align="right" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur quam augue, vehicula quis, tincidunt vel, varius vitae, nulla. Sed convallis orci. Duis libero orci, pretium a, <a href="#">convallis quis</a>, pellentesque a, dolor. Curabitur vitae nisi non dolor vestibulum consequat.  <a href="http://localhost/wordpress/?p=55#more-55" class="more-link">(more&#8230;)</a></p>
</div>
  • 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-05-15T03:45:55+00:00Added an answer on May 15, 2026 at 3:45 am

    You don’t show your CSS, but it sounds like you have a floated image inside the div. You may want to try a clearing div after the <p>. Or there are other, newer solutions detailed on Quirksmode.

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

Sidebar

Related Questions

I have been making some changes to a wordpress ecommerce plugin and I've taken
I have been making some research in the domain of servers for a website
For some time i have been making more or less little games. One level
I have been making Wordpress themes for a year or two and keep running
I've been making a wordpress theme recently and just now some of the code
I have been making a project on Android 4.0 and I have faced some
I'm relatively new to java (specifically swing) and have recently been making some fairly
I have been making some progress on this but still have some issues to
I have been reading about making ajax heavy applications more search engine friendly: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
I have been reading The Business of iPhone and iPad App Development: Making and

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.