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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:49:36+00:00 2026-06-03T18:49:36+00:00

I have a page which will only be viewed in mobile Safari. I’m trying

  • 0

I have a page which will only be viewed in mobile Safari. I’m trying to achieve a certain effect to match a print publication. I’ve gotten really close, but for this one last detail.

In my page I have HTML markup like this:

<section>
  <h2>Header</h2>

  <p>A long paragraph...</p>
</section>

And CSS styling like this:

section {
  padding-left: 200px;
  width: 700px;
}

h2 {
  float: left;
  width: 180px;
  margin-left: -200px;
}

The result is something like this:

Header          A long paragraph, blah blah blah...
                blah blah blah...

Which is perfect. However, if the content in the header is a little longer, it might look like this:

This is a       A long paragraph, blah blah blah...
longer header   blah blah blah...

Whereas what I would like it to do is begin the paragraph on the last line of the header, like this:

This is a
longer header   A long paragraph, blah blah blah...
                blah blah blah...

I think I could solve this using JavaScript, but I’d like to fix it in the least intrusive way possible, either purely in CSS or with minimal changes to the markup. Barring that, any ideas on a JavaScript solution? Thanks!

  • 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-03T18:49:45+00:00Added an answer on June 3, 2026 at 6:49 pm

    This can be done using CSS only. No need for floating either:

    section {
      width: 700px;
    }
    
    section p {
      padding-left: 200px; 
      margin-top: -20px
    }
    
    section h2 {
      padding-right: 500px; 
      margin-bottom:0
    }
    

    Your HTML stays the same.

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

Sidebar

Related Questions

I have a page from which the user will be able to print .
This is driving me crazy. I am building a page which will only have
I have to made a page which will send Email to Newsletter subscribers. There
So, I have a footer which will appear on every page of my web
All, I have a page which is suppose to take up only the available
title pretty much says it all. I have a website which will only run
I have created a c# web page which will be listening for POST data
I have page which is redirected from htaccess. now I can pass the German
I have a page which loads and then I do some JQuery upon it.
I have this page which has three peson searchs on them. Basically it's a

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.