Skip to main content

Forums

This topic contains 4 replies, has 0 voices, and was last updated by  Volkan Görgülü 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22608

    Hi Guys,

    Lets say I have 2 different classes and I attach them to 2 seperate divs.

    Code:
    .class1 {}
    .class2 {}

    Now I want those 2 divs to float to left. Here comes to question, which technic do you prefer?

    Technic 1

    Code:
    .class1 {}
    .class2 {}

    class1, class2 {float:left}

    Technic 2

    Code:
    .floatL {float:left}

    .class1 {}
    .class2 {}

    Actually, since we have option to add more than one class to an html element, I rather prefer Technic 2. What is your opinion? Or what is your experience about this two technics?

    Best Regards

    #47177

    I see but I did not mean to declare a class for every single attribute, just for the very very common ones like float, but I got your points thank you very much for sharing your opinions.

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

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star