Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Image moving in resized browser

Options
  • 27-09-2005 5:49pm
    #1
    Closed Accounts Posts: 240 ✭✭


    Hi,

    Apologies if this has been answered before or if it warrants a RTFM reply!
    I'm doing up a site for a mate and I've spent all day figuring out how to use a stylesheet to place an image on the page.
    But, I've managed to figure it out, and now I have two images meeting in the centre of the page and overlapping slightly.
    The page is optimised for 1024*768.
    When I view it in a maximised IE it looks lovely, but when I resize the browser one of the images goes awol.
    Is there anyway to fix the images in place so if the browser window is resized they will stay where they are and you can scroll to them using the scrollbar?
    Thanks in advance for any help or advice.


Comments

  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    can you post some code?


  • Closed Accounts Posts: 240 ✭✭jjmax


    Hi Eoin_S,

    Thanks for the reply.
    I managed to sort it out, I had used the following for the image placement in the css file.
    img.bobby {
    	position: absolute;
    	top: 125px;
    	left: 150px;
    	}
    img.jane {
    	position: absolute;
    	top: 350px;
    	right: 150px;
    	}
    
    The image that used the style from "img.jane" moved around in the browser when the window was resized.
    After much fiddling around and several wild goose chases, I realised the problem.
    I should have used:
    img.bobby {
    	position: absolute;
    	top: 125px;
    	left: 150px;
    	}
    img.jane {
    	position: absolute;
    	top: 350px;
    	[B]left[/B]: 450px;
    	}
    

    This sorted the issue out.
    It's amazing what you can accomplish with a good night's rest and a bit of calm thought!


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    cool, glad you got it sorted :)


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    Erm, why have you given your images proper names?


  • Registered Users Posts: 3,886 ✭✭✭cgarvey


    rsynnott wrote:
    Erm, why have you given your images proper names?
    I can think of 2 reasons:

    1) They are pictures of the people involved
    2) They are inanimate images, and he's just applying a bit of love :)


  • Advertisement
  • Closed Accounts Posts: 240 ✭✭jjmax


    cgarvey come on down! right on both counts.
    There is a third - Why not?


Advertisement