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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:16:43+00:00 2026-05-28T04:16:43+00:00

What is the correct way to structure (html) on a page based on the

  • 0

What is the correct way to structure (html) on a page based on the image I have attached. I am trying but I keep getting overflow issues with the name for the second section appearing directly under the text section instead of on top of the photo. I have built my structure like this:

<div style="width:100%; padding-bottom:30px;">
<strong>Name1</strong>
     <div style="float:left; padding-right:30px; width:20%">
          PHOTO
     </div>
     <div style="float:left; width:70%">
         TEXT SECTION
     </div>
</div>

<div style="width:100%; padding-bottom:30px;">
<strong>Name2</strong>
     <div style="float:left; padding-right:30px; width:20%">
          PHOTO
     </div>
     <div style="float:left; width:70%">
         TEXT SECTION
     </div>
</div>

enter image description here

  • 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-28T04:16:44+00:00Added an answer on May 28, 2026 at 4:16 am

    Move you <strong> outside the <div>-s and apply overflow: hidden to <div>s

    .panel { width:100%; padding-bottom:30px; overflow: hidden }
    
    .photo { float:left; padding-right:30px; width:20%; height: 80px; border: 3px solid #000 }
    .text { float:right; width:70%; height: 80px; border: 3px solid #000 }
    <strong>Name1</strong>
    <div class="panel">
        <div class="photo">
            PHOTO
        </div>
        <div class="text">
            TEXT SECTION
        </div>
    </div>
    
    <strong>Name1</strong>
    <div class="panel">
        <div class="photo">
            PHOTO
        </div>
        <div class="text">
            TEXT SECTION
        </div>
    </div>
    
    <strong>Name1</strong>
    <div class="panel">
        <div class="photo">
            PHOTO
        </div>
        <div class="text">
            TEXT SECTION
        </div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the correct way to output html inside a switch structure? I've tried
I have the following structure: modules/group modules/group/modules/forum modules/group/modules/gallery modules/group/modules/events Is this a correct way
What is the correct way to structure headers? There are some similar-ish questions but
What is the correct way to convert ASP.NET SOAP-based web services to JSON-based responses?
I want to know the correct way to structure ajax views in django. say
I'm looking for the correct way to structure the query for a view in
I have this directory structure: root: +pages -base.html ... +en -index.html ... index.py ...
Let's say I have the following html structure: <ul> <li>1</li> <li>2</li> <li>4</li> </ul> Is
I'm trying to write up a user management app, but getting confused about how
What's the correct way to copy entire database (its structure and data) to 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.