Greetings, members of the Webdeveloper.com community.
I have been running into a problem with a Javascript and no one has been able to answer me so far, so I hope I will have more luck here. ?
This is the preview of the script I currently have made and works properly.
[QUOTE]
function Car1(){
var newHTML = “<img src=’Images/Car1.png’></img><H4>This is Testcar 1</H4> The content. “;
document.getElementById(‘content’).innerHTML = newHTML;
}
function Car2(){
var newHTML = “<img src=’Images/Car2.png’></img><H4>This is Testcar 2</H4> The content. “;
document.getElementById(‘content’).innerHTML = newHTML;[/QUOTE]
Now when you use this script, The image comes at the left of the page (As it should) and the text comes right below the image however this is NOT what I want, I want the text to be located at the right of the image.
I have no idea how to align this and what code to use, could someone possibly help me out? or post a good example?
Thanks in advance,
Bey. ?