I'm trying to change the floating position of a div by using a CSS class, instead of its predefined properties. Currently, the div is styled as follows:
#div { height: 30px; width: 30px; float:left;}
To make it float to the right, I created a class with the following code:
.class {float: right}
However, when applying this class, the div still floats to the left. Is there a way to prioritize the class styling over the div's predetermined properties?