so what I'm trying to do is apply either of the clear-fix or micro clear-fix with jquery. The reason is I don't have access to the CSS so I've been using jquery to make all of my classes and other css related needs. This is really the one thing I haven't been able to do so I need some help.
both methods: clearfix
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display: inline-block;
}
and micro clearfix
.cf:before, .cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.cf { zoom: 1; }
use psuedo techniques and I'm not sure how to apply this with jquery. I have been doing
var small_h = {
"font-size": "10.4px",
"margin-left": "7px"
};
$(".small_h").css(small_h);
for my css traditionally, but because I don't have access to teh style sheets I need to define these using Jquery only. Certainly doesn't have to be like that if you can think of a clever way to do this, strange request I know, but it's a work restriction, thanks in advance for your help.