Identify a width that varies and apply a css style based off that?
hey there,
new to jquery here. i'm just talking this out to get an idea of what i'm trying to do and how to go about it at this point. no real code yet but i'm trying to make it over the weekend so any guidance would be great.
essentially what i want to do is identify the width of a div using jquery, and then have jQuery assign that width inline to the element negatively.
for example (let's say this width is 110px after jquery looks at it)
<div class="ineedyourwidth">lorem ipsum dolor</div>
will become
<div class="ineedyourwidth" style="left: -110px;">lorem ipsum dolor</div>
does that make sense?
thanks
kev