Help - Search - Members - Calendar
Full Version: Help with imaging
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
lukexb360
Hello

I use software provided by tiger global and I'm currently having a problem that when I put two images next to each other when I preview the page for my site they are underneath each other. After the "helpful" tech assitant told me I need to alter the HTML code I was wondering if anyone could give me a hand as when I go into the HTML it shows they are next to each other with no code in between.

many thanks
Frederiek
Can you post the URL (address) of the page that demonstrates the problem? If not, post your code.
lukexb360
Thanks for the reply this is the code

<p><span style="color: #ff0000;"><img src="/pub/files/Links and Adverts/1271760341_LimeBTNtest1.jpg" alt="" />&nbsp;<img src="/pub/files/Links and Adverts/1271760341_LimeBTNtest1.jpg" alt="" /></span></p>
<p><span style="color: #ff0000;">
<object style="width: 560px; height: 224px;" width="560" height="260" data="/pub/files/shop design 09/1271154984_FlashBannerfinalmodel.swf" type="application/x-shockwave-flash">
<param name="data" value="/pub/files/shop design 09/1271154984_FlashBannerfinalmodel.swf" />
<param name="scale" value="exactfit" />
<param name="src" value="/pub/files/shop design 09/1271154984_FlashBannerfinalmodel.swf" />
</object>
<br /></span></p>

With that the two pictures are a space between and a flash banner underneath. If there is anything you can suggest that would be great.

many thanks
Frederiek
You haven't specified the height and width of the images, which usually is a good idea to add in the IMG tag. I can't see what's wrong without that, since I don't have access to your images.

BTW, why do you put the images in a SPAN tag, with a CSS color styling for text?
lukexb360
Gonna be honest not 100% sure what that means sorry to be a complete newb. the reason why didnt change the img size was when it was previewed it was already at the ideal size.

Thank you very much for all the help though I will go back to tiger and tell them it should be working.

many thanks once again
pandy
Maybe the images are too large to fit side by side or something in your CSS affects them. Hard to say without seeing the real thing.
Darin McGrew
Please see the FAQ entries Where can I learn about HTML? and Where can I learn about CSS?
pandy
QUOTE(lukexb360 @ Apr 20 2010, 05:33 PM) *

Gonna be honest not 100% sure what that means sorry to be a complete newb. the reason why didnt change the img size was when it was previewed it was already at the ideal size.


Frederiek didn't mean you should resize the images. You should use width and height with the true values, because by telling the browser what size the images are it can reserve space for them before they are loaded and the page loads nicer. Doesn't help with your problem, just good practice.
lukexb360
Thanks for all the help guys I have given those links a read and will be using them for reference quite a bit. the way the software works is not great and we have had so many issues with the limitations it has become a joke. I have now made sure the size and width have been defind on the html to the size needed but the problem still exists.

thanks for all the help guys
Frederiek
So, either give us the sizes of each of the two images, or better yet upload your page (and images, css, whatever...) somewhere on the web. Otherwise, we can't help you.
anhpham
I saw <br/> in ur code, what is that? is it should be </br>
pandy
There's only ONE image in the snip you posted and it's contained in a P, which guarantees the line breaks before and after.
Darin McGrew
QUOTE
I saw <br/> in ur code, what is that? is it should be </br>
XHTML should use <br />
HTML should use <br>
In theory, XHTML could use <br></br>
but in practice, browsers don't understand it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.