Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > absolute positioning and frames

Reply
Thread Tools

absolute positioning and frames

 
 
Jules
Guest
Posts: n/a
 
      11-04-2003
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


 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      11-04-2003

"Jules" <(E-Mail Removed) > wrote in message
news:cEJpb.104$(E-Mail Removed)-net.net...
> 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.


 
Reply With Quote
 
 
 
 
Jules
Guest
Posts: n/a
 
      11-04-2003
Doh!

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

Cheers! Jules


 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      11-05-2003
On Tue, 04 Nov 2003 08:53:42 GMT rf posted:

> "Jules" <(E-Mail Removed) > wrote in message
> news:cEJpb.104$(E-Mail Removed)-net.net...
> > Hi all,
> > 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?
> > 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.


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...

--
John C
 
Reply With Quote
 
Jules
Guest
Posts: n/a
 
      11-05-2003
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

"John C" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ...
> On Tue, 04 Nov 2003 08:53:42 GMT rf posted:
>
> > "Jules" <(E-Mail Removed) > wrote in

message
> > news:cEJpb.104$(E-Mail Removed)-net.net...
> > > Hi all,
> > > 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?
> > > 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.

>
> 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...
>
> --
> John C



 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-05-2003

"Jules" <(E-Mail Removed) > wrote in message
news:Qq3qb.1$(E-Mail Removed)-net.net...

>
> Seeya, Jules
>
> "John C" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) ...
> > On Tue, 04 Nov 2003 08:53:42 GMT rf posted:
> >
> > > "Jules" <(E-Mail Removed) > wrote in

> message
> > > news:cEJpb.104$(E-Mail Removed)-net.net...
> > > > Hi all,
> > > > My question is very simple, is it possible to position an image in

one
> > > > frame


> > > 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!

> 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.


 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      11-07-2003
On Wed, 5 Nov 2003 09:28:39 -0000 Jules posted:

> "John C" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) ...
> > On Tue, 04 Nov 2003 08:53:42 GMT rf posted:
> >
> > > "Jules" <(E-Mail Removed) > wrote in

> message
> > > news:cEJpb.104$(E-Mail Removed)-net.net...
> > > > Hi all,
> > > > 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?
> > > > 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.

> >
> > 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.

>
> 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.

--
John C
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 bug with show/hide javascript and absolute positioning Hedon HTML 0 02-21-2007 06:47 PM
Custom Controls and Absolute Positioning Rick Strahl [MVP] ASP .Net Building Controls 1 12-11-2006 09:22 AM
Absolute positioning and links Nik Coughlin HTML 1 01-05-2006 07:47 AM
CSS positioning : relative, fixed, absolute and liquid layouts KatB HTML 8 02-14-2005 11:37 PM
Coordinates of divs and tables without absolute positioning? Siegfried Heintze Javascript 1 05-01-2004 10:19 PM



Advertisments