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

  • Home
  • SEARCH
  • 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 102243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:55:33+00:00 2026-05-11T00:55:33+00:00

—HTML <div id=story> <div id=individual> <img src=’uploads/1231924837Picture.png’/> <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story

  • 0

—HTML

<div id='story'> <div id='individual'> <img src='uploads/1231924837Picture.png'/>  <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story etc stroy story etc</p> </div> <br /> <div id='storynav'> <a href='home.php?start=0'>1</a>  <a href='home.php?start=1'>2</a>  <a href='home.php?start=2'>3</a>  <a href='home.php?start=3'>4</a>  <a href='home.php?start=4'>5</a>   <a href='home.php?start=5'>6</a>   <a href='home.php?start=6'>7</a>   <a href='home.php?start=7'>8</a>   <a href='home.php?start=8'>9</a>          </div> </div> 

—CSS

#story img{ border: none; float: right; display: inline; padding: 10px; margin-top: 30px; } #story{ width: 600px; height: inherit; background-color:black; margin-left: 34px; margin-bottom: 3px; }  #individual{ background-color: #000000; clear:both; }  #storynav{ font-size: 10px; text-align: center; } 

alt text
(source: bionic-comms.co.uk)

The above code and css is giving me a headache because, as the picture shows, the div background color gets confused when i add images in. This is dynamic content but i thought it would be easier to show the static html. Can any one tell me what i am doing wrong? The background color should cover the picture as well. Thanks!

EDIT

Thanks for that. It is something i had previously tried but it doesn’t do anything. I have also tried a spacer in there as well and that doesn’t do anything. Flummoxed!

  • 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. 2026-05-11T00:55:34+00:00Added an answer on May 11, 2026 at 12:55 am

    You are setting the image to float right which means that the container div cannot work out it’s actual height. You need to clear the floated element which essentially lets the container know how large the image actualy is.

    You will need to add an element with the style clear: both; underneath the img tag in your HTML, preferably at the end of the div like so:

    <div id='story'> <div id='individual'> <img src='uploads/1231924837Picture.png'/>  <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story etc stroy story etc</p> </div> <br /> <div id='storynav'> <a href='home.php?start=0'>1</a>  <a href='home.php?start=1'>2</a>  <a href='home.php?start=2'>3</a>  <a href='home.php?start=3'>4</a>  <a href='home.php?start=4'>5</a>   <a href='home.php?start=5'>6</a>   <a href='home.php?start=6'>7</a>   <a href='home.php?start=7'>8</a>   <a href='home.php?start=8'>9</a>          </div>   <div class='clear'></div> <-- add this here </div> 

    And add the class:

    .clear {   clear: both; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer RegisterClientScriptBlock registers your script by type (this.GetType()) and key ('JSVariables').… May 11, 2026 at 11:37 am
  • added an answer http://sourceforge.net/projects/cssparser/ May 11, 2026 at 11:37 am
  • added an answer The reason is that you specify a From on your… May 11, 2026 at 11:37 am

Related Questions

No related questions found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.