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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:13:34+00:00 2026-06-10T23:13:34+00:00

I asked a question earlier about the best way to put edit/delete links inline

  • 0

I asked a question earlier about the best way to put edit/delete links inline with a h1 element. I was able to achieve this with the answers given, but I now have additional requirements where I need to display a paragraph below the h1 and edit/delete links.

So far, my HTML looks like this:

<div class="product-header">
  <div class="title">
    <h1>Product 1</h1>
  </div>
  <div class="admin">
      (<a href="#">Edit</a> | <a href="#">Delete</a>)
  </div>
  <p class="description">Product 1 is a cool product</p>
</div>

I’d like it to look like the following:

Product 1 (Edit | Delete)
Product 1 is a cool product

…rest of page content

But I’m not sure what CSS to use to achieve this! Everything I do seems to put the description paragraph on the same line as the title, like so:

Product 1 (Edit | Delete)Product 1 is a cool product

…rest of page content

Link to JSFiddle.

  • 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-10T23:13:36+00:00Added an answer on June 10, 2026 at 11:13 pm

    There is no need to add clear:both in .product-header class but you really need to add clear:both in .product-header .description class like given below:

    .product-header .description {
        clear:both;
    }​
    

    DEMO

    Additional Notes:

    The clear CSS property specifies whether an element can be next to floating elements that precede it or must be moved down (cleared) below them.

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

Sidebar

Related Questions

This is related to this question I asked earlier about syntax highlighting user-defined blocks
Earlier today, I asked a question about the way Python handles certain kinds of
I asked this question earlier about business logic and presentation logic, and it got
I've asked about this earlier but the question itself and all the information in
I asked a question about this earlier and was told to restate the question
I had asked a question about this earlier, but it didn't get answered right
I asked a question about this earlier but received no responses, so I'm trying
I asked a question earlier about why left joins in Linq can't use defined
I asked a question earlier about keyhooks in vb.net. My current issue is such:
I asked a question earlier about ESBs written in Erlang or Java, and there

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.