absolute positioning and frames

Discussion in 'HTML' started by Jules, Nov 4, 2003.

  1. Jules

    Jules Guest

    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
    Jules, Nov 4, 2003
    #1
    1. Advertising

  2. Jules

    rf Guest

    "Jules" <> wrote in message
    news:cEJpb.104$-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.
    rf, Nov 4, 2003
    #2
    1. Advertising

  3. Jules

    Jules Guest

    Doh!

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

    Cheers! Jules
    Jules, Nov 4, 2003
    #3
  4. Jules

    John C Guest

    On Tue, 04 Nov 2003 08:53:42 GMT rf posted:

    > "Jules" <> wrote in message
    > news:cEJpb.104$-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
    John C, Nov 5, 2003
    #4
  5. Jules

    Jules Guest

    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" <> wrote in message
    news:...
    > On Tue, 04 Nov 2003 08:53:42 GMT rf posted:
    >
    > > "Jules" <> wrote in

    message
    > > news:cEJpb.104$-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
    Jules, Nov 5, 2003
    #5
  6. Jules

    rf Guest

    "Jules" <> wrote in message
    news:Qq3qb.1$-net.net...

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

    > message
    > > > news:cEJpb.104$-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.
    rf, Nov 5, 2003
    #6
  7. Jules

    John C Guest

    On Wed, 5 Nov 2003 09:28:39 -0000 Jules posted:

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

    > message
    > > > news:cEJpb.104$-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
    John C, Nov 7, 2003
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KatB
    Replies:
    8
    Views:
    4,186
  2. Nik Coughlin

    Absolute positioning and links

    Nik Coughlin, Jan 5, 2006, in forum: HTML
    Replies:
    1
    Views:
    445
    Nik Coughlin
    Jan 5, 2006
  3. Hedon
    Replies:
    0
    Views:
    461
    Hedon
    Feb 21, 2007
  4. Rick Strahl [MVP]

    Custom Controls and Absolute Positioning

    Rick Strahl [MVP], Dec 11, 2006, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    131
    Rick Strahl [MVP]
    Dec 11, 2006
  5. Siegfried Heintze
    Replies:
    1
    Views:
    105
    pcx99
    May 1, 2004
Loading...

Share This Page