Grow your CSS skills. Land your dream job.

background and css problem

  • # March 29, 2013 at 7:44 am

    can anyone just check if my css are correct??http://demo.capitaleyenepal.com/bckup/

    # March 29, 2013 at 7:56 am

    More specific please?

    # March 29, 2013 at 8:05 am

    yeah the problem starts when i use those three boxes… if i remove those clearfix and use simple clear:both then the background dont expand as wrapper content , why?? besides i was wondering if there is anyone who could just suggest me about my css.

    # March 29, 2013 at 8:13 am

    Why remove the clearfix? It can’t do any harm.

    # March 29, 2013 at 1:20 pm

    The clear: both is not for the parent to contain the children floats. The clear: both is for an element after the floats causing the parent to envelope that element as well as the floats. If you’re adverse to using clearfix (you shouldn’t be, as Paulie_D states), you could add overflow: hidden to the parent, or float the parent (there’s a couple other ways also).

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".