File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS and image positioning" Watch "CSS and image positioning" New topic

CSS and image positioning

K. Tsang

Joined: Sep 13, 2007
Posts: 2231

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 ]

I agree. Here's the link:
subject: CSS and image positioning
Similar Threads
Background image not showing
HTML/CSS: navigation bar
showing image with text in a drop down list, working fine with Firefox but not in Internet Explorer8
Problem hiding div within div
Clickable Div Background image