GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes CSS and image positioning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS and image positioning" Watch "CSS and image positioning" New topic
Author

CSS and image positioning

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2452
    
    8

Hello I have 2 images in the css file using id (eg #xx{...})

The images are set as backgound images, one to the left and the other right at the top of the page. Now when I resize the browser window to something smaller, the right image shifts with the browser covering the left image/content on the page.

What should I use to make sure it stays where it should when browser resizes?



HTML code:
<div id='header'><div id='advert'></div></div>
[ August 07, 2008: Message edited by: K. Tsang ]

K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
 
GeeCON Prague 2014
 
subject: CSS and image positioning