Justify ul element

Hi,

I would like to justify (align to left and right) a <ul> that I have. You can see how it looks today in the picture where the gray area is in the <ul>. If I would like to jutify it how can I do that?

2015-10-01_16-53-07.png
Here's my css:
  .listings ul.properties_list {
        list-style: none;
        overflow: hidden;
        /*float: left;
        width: 77.34375%;*/
        background-color: transparent;
        /*width:100%;*/
        text-align:justify;
    }

    .listings ul.properties_list::after {
        content: '';
        display: inline-block;
        width: 100%;
    }

     .listings ul.properties_list::before{
         content: '';
         display: block;
     }
   

    .listings ul.properties_list li {
        display: block;
        width: 13.63636363636364%;
        height: auto;
        position: relative;
        float: left;
        margin: 10px 3.03030303030303% 0px 0px;
        vertical-align: bottom;
    }

    .listings ul.properties_list li .imageBlock {
        height: 213px;
        vertical-align: bottom;
        display: table-cell;
    }

    .listings ul.properties_list li img {
        width: 100%;
        height: auto !important;
    }

    .listings ul li .property_details {
        width: 100%;
        padding: 0;
        height: 100px;
        transition: all .2s linear;
        -webkit-transition: all .2s linear;
        -moz-transition: all .2s linear;
        -o-transition: all .2s linear;
        color: #000;
        margin-top: 5px;
    }

    .listings ul li .property_details h1,
    .listings ul li .property_details h1 a {
        font-size: 1em;
        color: #4aa7de;
        font-weight: 700;
        font-family: 'Open Sans', sans-serif;
        text-decoration:none;
    }

     .listings ul li .property_details h1 a:hover {
         text-decoration:underline;
     }

    .listings ul li .property_details h2 {
        font-size: 0.8em;
        font-family: 'Open Sans', sans-serif;
        margin-top: 5px;
    }

    .listings ul li .property_details .textDetails {
        height: 60px;
    }

    .listings ul li .property_details .buyDetails {
        vertical-align: bottom;
    }

    .listings ul li .property_details .buyDetails .price {
        color: #ff4d20;
        font-size: 12pt;
        vertical-align: bottom;
        margin-top: 4px;
        float: left;
    }

    .listings ul li .property_details .buyDetails .buyarea {
        display: table;
        float: right;
    }

Open in new window


And here's the markup:
 <ul class="properties_list">
            <li>
                <div class="imageBlock">
                    <asp:HyperLink ID="imgProduct" runat="server"></asp:HyperLink>
                </div>
                <div class="property_details">
                    <div class="textDetails">
                        <h1>
                            <asp:HyperLink ID="hlLink" runat="server"></asp:HyperLink>
                        </h1>
                        <h2>
                            <asp:Label ID="lblAuthor" runat="server" Text='<%# Eval("author") %>'></asp:Label>
                        </h2>
                    </div>
                    <div class="buyDetails">
                        <div class="price">
                            <asp:Label ID="lblPrice" runat="server" Text=""></asp:Label>
                        </div>
                        <div class="buyarea">
                            <uc1:buyLink ID="buyLink1" runat="server" />
                        </div>
                    </div>
                </div>
            </li>
        </ul>

Open in new window


If anyone can help me I would me grateful.

Peter
Peter NordbergIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
The easiest way would be to set "text-align:center" on the <ul>.  On the <li>, remove the float, and change it to "display:inline-block".  You may need to set an explicit height on the <ul> to prevent word wrap.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.