By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

Aligning CSS layer to right of screen

P: 2
Using CSS, I'm trying to align an image to the top right corner of the screen.

Currently, I've got:

div#header {
position: absolute;
top: 0px;
right: 0px;
height: 756px;
width: 438px;
z-index: 2;

but this pushes the image off the screen slightly, causing a horizontal scrollbar to appear.

Is there any way to achieve such alignment, without pushing the image off the page?
Oct 28 '06 #1
Share this Question
Share on Google+
2 Replies

P: 2
Sorry, my mistake. That code works fine in IE, but in Firefox the image gets pushed offscreen some.
Oct 28 '06 #2

Expert 5K+
P: 7,435
This very much depends on the rest of your code so a link or the complete listing is necessary.
Oct 29 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.