css - How can I add float property properly? -
on page http://s361608839.websitehome.co.uk/pt-build/templatebuild/index.html if scroll down section called pricing. below right div called priceblock.
i'm using css float right somehow div being pushed onto next line.
#priceblock { width: 206px; height: 303px; background: url(../images/pricing-bg.jpg) no-repeat; float: right; clear: both; }
the div within #pricing , there's enough space in div fit in there without going line.
what need change css make float right beside content inside #leftcol within #pricing?
thanks
your #priceblock rule clearing float nullifying needed effect of float left of #pricing. can fix behavior removing clear both attribute or specifying clear:right:
#priceblock { width: 206px; height: 303px; background: url(../images/pricing-bg.jpg) no-repeat; float: right; clear: right; /*clear: both;*/ overflow: hidden; }
Comments
Post a Comment