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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:58:27+00:00 2026-06-07T07:58:27+00:00

Without changing the HTML structure: <div id=container> <header> <h1>This is the Heading Which May

  • 0

Without changing the HTML structure:

<div id="container">
  <header>
    <h1>This is the Heading Which May be Long and Span Lines</h1>
  </header>
  <section>
    <div class="thumb">
        <img></img>
    </div>
    <div class="content">
      <p>Content</p>
      <p>continues</p>
      <p>and wraps around the thumb</p>
    </div>
  </section>
</div>​

I need to style this so that the img.thumb floats left, and the header h1 hangs to its right, and may wrap lines. The h1 should be left-justified:

+------------+   Heading Text which May Be Long and
|            |   Thus would Span Lines
|   thumb    |
|            |   Content
+------------+   continues
and wraps around the thumb.

The layout (i.e. width of the heading and content) should fluidly adapt for width of the container. (The thumb is fixed width.)

Any way to achieve this with CSS3 without changing the order of the elements? I can do this by fixing the width of the right column, but is there a way to specify “use the remaining space to the right of the float as the width”? (Without javascript, less, etc.)

Fiddle here: http://jsfiddle.net/agRx3/1/

  • 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-07T07:58:28+00:00Added an answer on June 7, 2026 at 7:58 am

    Since the thumb has a fixed width, you can use position: absolute to fix the location of the image. The header and content can then have margin-left which is slightly more than the thumb width

    Fiddle: http://jsfiddle.net/SJvav/

    Edit: To have the content wrap around the margin, let for the image and the text float:left and give the image a negative margin so its right beside the h1 http://jsfiddle.net/SJvav/2/

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

Sidebar

Related Questions

For example I have this HTML code: <div id=canvas> <div id=root> <div id=content> <span>
How can I make this link use the child selector without changing or removing
I'd like to add a DIV above an input box (textbox) without changing the
I need some additional functionality added to user_pass_submit. This must be added without changing
Well I would reproduce in a html page this scenario. I have a div
How to move-up #thumbnails between #header and #content with CSS (no JavaScript), without changing
I have this html code <div id="mybox"> aaaaaaa </div> and this is my css
I'm trying to place an image in an HTML table without changing the table
How do I resolve session_start conflicts without changing the original source code? And how
I have a WCF service and without changing any code on the client side,

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.