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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:51:26+00:00 2026-06-17T07:51:26+00:00

I want 6 divs side by side to show service packages. The problem is

  • 0

I want 6 divs side by side to show service packages. The problem is I want all of them of specified pixel width. But I am unable to give them a width in pixel. And also the parent div is getting adjusted to the width acquired by them as I have specified the width of 80% to it. I checked other posts but they didn’t help me. I am working on this code…

<div id="main">
        <div id="content" class="shadow">
            <div id="p-col1">
                <ul>
                    <li><h1>heading</h1></li>
                    <li>text text text </li>
                    <li class="grey">text text text </li>
                </ul>
            </div>
            <div id="p-col2">
                <ul>
                    <li><h1>Heading</h1></li>
                    <li>text text </li>
                </ul>
            </div>
            <div id="p-col3">
                <ul>
                    <li><h1>Heading</h1></li>
                    <li>text text </li>
                </ul>
            </div>
            <div id="p-col4" class="shadow">
                <ul>
                    <li><h1>Heading</h1></li>
                    <li>text text </li>
                </ul>
            </div>
            <div id="p-col5">
                <ul>
                    <li><h1>Heading</h1></li>
                    <li>text text </li>
                </ul>
            </div>
            <div id="p-col6">
                <ul>
                    <li><h1>Heading</h1></li>
                    <li>text text </li>
                </ul>
            </div>
        </div>

    </div><!-- End of Main -->

The CSS:

   #main{
    width:80%;
    margin:0 auto;
    border:0px;
    font-size:18px;
}
.shadow {
    box-shadow:3px 0 10px #222 , -3px 0 10px #222;
    -moz-box-shadow:3px 0 10px #222 , -3px 0 10px #222;
    -webkit-box-shadow:3px 0 10px #222 , -3px 0 10px #222;  
}
#main #content{
    float:left;
    display:inline-block;
    padding:0;
    position:relative;
    padding:10px 10px 10px 10px;
}
#p-col1{
    widht:100px;
    background-color:#FFFFFF;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col1 h1{
    color:#ffffff;
    background-color:#d1ebf1;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
#p-col2{
    widht:100px;
    background-color:#7098e0;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col2 h1{
    color:#ffffff;
    background-color:#0152e7;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
#p-col3{
    widht:100px;
    background-color:#778cdd;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col3 h1{
    color:#ffffff;
    background-color:#012edd;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
#p-col4{
    widht:100px;
    background-color:#75c3d7;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col4 h1{
    color:#ffffff;
    background-color:#01abd8;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
#p-col5{
    widht:100px;
    background-color:#729fcc;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col5 h1{
    color:#ffffff;
    background-color:#0b6dd0;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
#p-col6{
    widht:100px;
    background-color:#7098e0;
    border-radius:10px 10px 10px 10px;
    -moz-border-radius:10px 10px 10px 10px;
    -webkit-border-radius:10px 10px 10px 10px;
    float:left;
    position:relative;
}
#p-col6 h1{
    color:#ffffff;
    background-color:#0189d4;
    padding:25px 5px 5px 5px;
    font-size:20px;
    font-weight:bolder;
    text-align:center;
    border-radius:10px 10px 0 0;
    -moz-border-radius:10px 10px 0 0;
    -webkit-border-radius:10px 10px 0 0;
}
li.grey{
    background-color:#e3e8e9;
}
  • 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-17T07:51:27+00:00Added an answer on June 17, 2026 at 7:51 am

    you have spell mistakes in your css…. you have specified width as widht

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

Sidebar

Related Questions

I want to change all child divs(parent div id=product_list) with a width of 41%
I have some DIVs with contents inside. I want to display them side by
I use float to place DIVs side by side, but the problem appears when
I want to create as many divs as var foo.length, but my code only
I want to place 3 divs side by side using CSS. I have gone
I'm trying to get two Divs to sit side by side. I want one
I seem to be having a problem stacking 3 divs side by side. I've
All I want to do is center some divs on the page. The outer
ok, So I have multiple divs(7) which I want to toggle for show hide.
I am trying to place 7 divs side by side but with a bit

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.