bassa
10-11-2008, 11:01 AM
Hello!
I have a very simple question to ask.
I mainly use Dreamweaver for creating websites, and I have noticed that some others use Div ID's and classes in the same selector.
Looks like this; #main .lftfloat
The above is a Div ID container named 'main', and a .class attribute named .lftfloat... correct?
My question is then, when people can create the same rules and designs inside the Div ID container, why do they also associate a .class attribute to it, when they really both do the same?
Cheers,
Bassa
I have a very simple question to ask.
I mainly use Dreamweaver for creating websites, and I have noticed that some others use Div ID's and classes in the same selector.
Looks like this; #main .lftfloat
The above is a Div ID container named 'main', and a .class attribute named .lftfloat... correct?
My question is then, when people can create the same rules and designs inside the Div ID container, why do they also associate a .class attribute to it, when they really both do the same?
Cheers,
Bassa