Posted by Jon Slaughter on 03/22/07 00:27
In the following test code is it possible to make the first div always align
itself to the right of the browsers window? I need a simple method because
the code I'm using it much more complicated. I'm trying to center a table
that is variable in size that spans the browsers window horizontally but in
a case where the user scrolls the table does not scroll with it. In some
sense I need the browser to reposition the table when it scrols. (it works
fine on resize but doesn't work on scroll)
Is there any way to do this with css? What I was trying to do was create a
table with a column that would vary its width so that it "pushes" the image
right but I would need to push an amount that equals the number of pixels
that have been scrolled. This seems impossible though ;/
Thanks,
Jon
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div style="float:right">
<img src="file:///C|/Documents and Settings/Jon/My
Documents/Temp/images/Nav3.png" />
</div>
<div>
asdljf;lasdjf;kjasdk
alksdA<br />
SDF
AS
dFASDddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd<br
/>
asdfASDf<br />
</div>
</body>
</html>
Navigation:
[Reply to this message]
|