Link to home
Start Free TrialLog in
Avatar of TPLLimited
TPLLimited

asked on

CSS Issue - Not aligning up properly

Hi

I have the below code and I am looking for the Price to line up with the ProductHeaderColour Tag, Currently its appearing below the end of the descriotion albeit it correctly to the right of the ProductDiv.

I have been playing about with this all morning to no avail. Can someone help so that they line up correctly please?

Many Thanks in Advance.


HTML

<div id="ProductCat">
                <h3>Category A</h3>
 <div class="ProductDiv">
                    <div class="ProductInfo">
                        <span class="ProductHeaderColour">Product 1
                            <br />
                        </span>
                        <span class="ProductDescription">Product 1 Description</span>
                    </div>
                    <div class="Price">
                        <span>£15.00</span>
                    </div>
                </div>

                <br />
                <div class="ProductDiv">
                    <div class="ProductInfo">
                        <span class="ProductHeaderColour">Product 2<br />
                        </span>
                        <span class="ProductDescription">Product 2 Description</span>
                    </div>
                    <div class="Price">
                        <span>£20.00</span>
                    </div>
                </div>
                <br />
                <div class="ProductDiv">
                    <div class="ProductInfo">
                        <span class="ProductHeaderColour">Product 3<br />
                        </span>
                        <span class="ProductDescription">Product 3 Description</span>
                    </div>
                    <div class="Price">
                        <span>£40.00</span>
                    </div>
                </div>
</div>

Open in new window


CSS:

#ProductCat {
}

    #ProductCat h3 {
        color: #cf1332;
    }

    #ProductCat .ProductDiv {
        border: 2px solid #a1a1a1;
        padding: 10px 40px;
        background: #E78998;
        width: 750px;
        border-radius: 25px;
        height: 100px;
    }

        #ProductCat .ProductDiv .ProductInfo {
            width: 610px;
        }

            #ProductCat .ProductDiv .ProductInfo .ProductHeaderColour {
                color: #FFFFFF;
                font-size: xx-large;
            }

            #ProductCat .ProductDiv .ProductInfo .ProductDescription {
                color: #FFFFFF;
                display: inline;
            }


        #ProductCat .ProductDiv .Price {
            color: #FFFFFF;
            text-align: center;
            font-size: xx-large;
            width: 130px;
            float: right;
        }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TPLLimited
TPLLimited

ASKER

Thanks very much, cant believe it was as easy as that.

Thanks again