absolute positioning and frames

J

Jules

Hi all,

I have a pretty simple question but am having no luck finding the answer! In
doing my research for this and reading through this newsgroup, it seems
frames are pretty passe and noone uses them... oh well, I'm afraid I still
do!

My question is very simple, is it possible to position an image in one frame
such that it is positioned relative to the whole window, not just the frame?

For example, if you use the following tag for an image:

<img src="images/new/whole.jpg" alt="" width="400" height="602" border="0"
style="position:fixed; z-index:2; top:0px; left:0px;">

it will place the image in the top left of the frame, not the top left of
the window. Is there a way of getting around this? Neither fixed nor
absolute position seem to do what I would like them to.

I am not bothered about seeing the picture outside the frame, I just need it
aligned. This is to make a background image appear continuous across several
frames, regardless of window size.

Any clues (or hints that tell me it's not possible) would be most
appreciated!

Thanks,

Jules
 
R

rf

Jules said:
Hi all,

I have a pretty simple question but am having no luck finding the answer! In
doing my research for this and reading through this newsgroup, it seems
frames are pretty passe and noone uses them... oh well, I'm afraid I still
do!

Frames are evil. You will soon learn this.
My question is very simple, is it possible to position an image in one frame
such that it is positioned relative to the whole window, not just the
frame?

No. Each frame is it's own window and knows nothing at all about the other
windows.
For example, if you use the following tag for an image:

<img src="images/new/whole.jpg" alt="" width="400" height="602" border="0"
style="position:fixed; z-index:2; top:0px; left:0px;">

it will place the image in the top left of the frame, not the top left of
the window. Is there a way of getting around this? Neither fixed nor
absolute position seem to do what I would like them to.

I am not bothered about seeing the picture outside the frame, I just need it
aligned. This is to make a background image appear continuous across several
frames, regardless of window size.

This can not be done. If you want a single continuous background then ditch
the frames.
Any clues (or hints that tell me it's not possible) would be most
appreciated!

Hint - it's not possible.

Cheers
Richard.
 
J

Jules

Doh!

Oh well, thanks for the tip! Back to the drawing board then...

Cheers! Jules
 
J

John C

This can not be done. If you want a single continuous background then ditch
the frames.


Hint - it's not possible.

If you had a big image, and cut it into separate parts, and used a
different part as position-fixed background in each page according to
which frame it would be displayed in, and used pixel widths and other
things that appall civilized people, it might almost sort of work!

Ooh, I have better idea! A browser feature, a user setting for "always
use my own background" and you could set it to "transparent" so your
wallpaper showed through and you could browse web pages over clouds,
mountains, babes, whatever your wallpaper happened to be. That'd work
across frames.

N.B. This posting to be deemed "prior art" in respect to any patent
application purporting to qualify as original concept, design and/or
discovery to implement said functionality in future world wide web
browser architecture. However, for a modest royalty...
 
J

Jules

What is sarcasm anyway?!?

I have appalled civilised people already :) But what I am trying to do is
pretty simple. It's a shame there's not a decent way of doing it - I would
like to have a banner/logo at the top of the page, and a menu at the bottom,
that stay static, with a constant background image across the page. You can
have a look at the site if you like, http://www.slidejules.com you see where
I'm headed. Nearly there but not quite! - I'm no professional web designer
by any stretch. I guess I'm going to have to learn a different way of doing
things!

Seeya, Jules
 
R

rf

Seeya, Jules


What is sarcasm anyway?!?

Hint number 2: stop posting upside down.
I have appalled civilised people already :) But what I am trying to do is
pretty simple. It's a shame there's not a decent way of doing it - I would
like to have a banner/logo at the top of the page, and a menu at the bottom,
that stay static, with a constant background image across the page. You can
have a look at the site if you like, http://www.slidejules.com you see where
I'm headed. Nearly there but not quite! - I'm no professional web designer
by any stretch.

I guess I'm going to have to learn a different way of doing
things!

Yes you are, and frames are not the way to go.

BTW you have more serious problems than just the background on that page.
Use your browser options to enlarge the font size and admire how the text
disappears below its hard coded bottom borders.

Also BTW I don't read white on a blackish/coloured background. I move on to
the next site.

Get rid of all the frames and make the pages into what they should be: web
pages, not constructs from several different sources.

Cheers
Richard.
 
J

John C

What is sarcasm anyway?!?

Actually, I wasn't trying to be sarcastic, though in hindsight I can see
it. Firstly, I was just illustrating the impractical lengths a person
might have to go to trying to make the idea work with frames. Secondly, I
kinda liked the idea of a transparent browser background. Gimmicky and
impractical, but maybe fun on occasion.
I have appalled civilised people already :) But what I am trying to do is
pretty simple. It's a shame there's not a decent way of doing it - I would
like to have a banner/logo at the top of the page, and a menu at the bottom,
that stay static, with a constant background image across the page. You can
have a look at the site if you like, http://www.slidejules.com you see where
I'm headed. Nearly there but not quite! - I'm no professional web designer
by any stretch. I guess I'm going to have to learn a different way of doing
things!

I'm no professional web designer, either, which is probably why I'm not
near the frames hater that most folks in this group are. But I think you
could get a pretty similar feel with css without the frames and tables,
while gaining a lot in accessibility and ease of maintenance. I like your
concept but it might be one of those things a person should ultimately
take a deep breath and let go of it. If nothing else, though, the font's
really too small and you should test in some more browsers if you haven't
already.
Seeya, Jules

S'long. Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top