Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22608
    Volkan Görgülü
    Participant

    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
    Volkan Görgülü
    Participant

    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)
  • The forum ‘Other’ is closed to new topics and replies.