HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How do you stop two images from moving when window resizes?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
Quacker



Joined: 23 Jun 2007
Posts: 7

PostPosted: Sat Jun 23, 2007 9:56 am     How do you stop two images from moving when window resizes? Reply with quote

Clearer Question:

How do you stop two images from moving when you resize the browser window?

Ok, so I have two separate images but they appear and are supposed to look like ONE big image.

They appear as one image when the viewer has the browser window open in a large, maximized setting.

But when minimized, the second part of the image moves and goes under the first part of the image, trying to cramp into the viewed space. It shifts downwards, chopping up the image into two.

Here is the web page I am having this problem on:

http://www.freewebs.com/volatilldesigns/

Look at it first in a maximized window view.

Then, when you resize it to a smaller view, notice how the banner image (which is really two images) cuts in half and moves to the bottom.

What I want to know is:

How do you lock those two separate images together to stop them from moving EVEN when the window is resized to a smaller size?

Should I put a transparent or black table around them to keep them together? If so, how do you make a table fit for this?
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Sun Jun 24, 2007 5:01 am     Reply with quote

That link doesn't go anywhere.

Are you using percentages?
Quacker



Joined: 23 Jun 2007
Posts: 7

PostPosted: Mon Jun 25, 2007 9:24 am     Reply with quote

Hold on, you mean the freewebs link didn't take you anywhere?

This one?:

http://www.freewebs.com/volatilldesigns

Or do you mean the button? The button is supposed to only make the page into a Favorites item.

I'm not using any percentages, I don't think.

What I'm asking about is the image at the very top of the page that says, "Volatill Designs" with the yellow swirly thing in the background.

That image is really TWO images.

So the code just looks something like this:

<img src="top_banner_left_side.gif"><img src="top_banner_right_side.gif">

That's all.

When I resize the page those two leave each other and the right side goes under the left side image.

How do I keep those two images together without making them into one image?
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Tue Jun 26, 2007 5:02 am     Reply with quote

Oh, ok the link is working now.

Have you tried margin: 0px; on the image styles?

Are the <img>'s on the same line with no white space?
Quacker



Joined: 23 Jun 2007
Posts: 7

PostPosted: Tue Jun 26, 2007 8:31 am     Reply with quote

I don't have any margin:0px; things anywhere.

And yes, there is absolutely no white space between the two images. They're smacked together.

Buut ... I found out a way to keep them together: I just put the two images in a small iFrame.

Thanks for trying to help! Mr. Green
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Wed Jun 27, 2007 4:48 am     Reply with quote

Glad you got it to work. Very Happy
Maybe next time you might want to just add style="margin: 0px;" into the <img> tag and see if that will help.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial