Align image where source is given using javascript

I put an image "print" of network solutions on my site and they give you a javascript that sets the image. I want the image to be right-aligned. However, if you want an image, they give you a javascript code stub and handle the rest, which has no alignment property. I even tried to put the javascript in the table that aligns correctly, but apparently the javascript is displayed after the table is displayed by the browser.

Thoughts on how to get around this?

0


source to share


1 answer


You can wrap a JavaScript code area with a div and give it a class or id. Then you will most likely set it to CSS.



<div id="network-solutions">
    <script type="text/javascript" src="foo.js"></script>
</div>


#network-solutions img {
    float:right;
}

      

+4


source







All Articles