37 users online (0 members and 37 guests)  


  Results 1 to 8 of 8

Related

  1. Replies: 2
  2. stretching div    Forum: CSS Forum
    Replies: 1
  3. Template Stretching with CSS    Forum: CSS Forum
    Replies: 1
  4. Replies: 2
  5. stretching table    Forum: HTML Forum
    Replies: 5
  1. #1
    Mr. Blue's Avatar
    Evil twin of Dave

    Status
    Offline
    Join Date
    Jul 2001
    Location
    MA, USA
    Posts
    148

    Question stretching image

    I want to make one of those images that stretches/repeats until it reaches the bottom of the page. I thought I could do this by just making the height or the image = 100% but it goes past teh end of the page making the page longer.


    Also, i know how to use javascript to detect IE or Netscape (eww), but how can u detect the AOL brower (double eww)?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there Mr Orange.

    The browser string for aol browsers starts with AOL. who would have thought?

    Here is a javascript that redirects AOL browsers -

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    
    <!--
    var agt=navigator.userAgent.toLowerCase();
    var
    is_aol   = (agt.indexOf("aol") != -1);
    if (is_aol)
    {
     window.location="index_a.html" // version for AOL
    browsers
    }
    else  {
       window.location="index_b.html" //
    version for the rest
    }
    
    //-->
    
    </SCRIPT>
    Your stretching problem should be easily sorted. It would probably be best to hav the image as a background image, they stretch a lot more reliably.

    If not, then could you post the code ur using for the image? Then I can try and see whats wrong.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Can also make the image a background within a < TABLE ...> and then size the table itself to desired dimensions.
    Last edited by HTML; 10-16-2002 at 04:06 PM.

  4. #4
    Mr. Blue's Avatar
    Evil twin of Dave

    Status
    Offline
    Join Date
    Jul 2001
    Location
    MA, USA
    Posts
    148
    Benz: He is in fact working on a redesign of our current page...starting it anyways...and what we want is it to stretch to fit the user's resolution so that it goes all the way to the bottom. So I dont' see how using a background image in a table would fix it... /me shrugs....what about if we did height=99%...maybe it's accouting for the bar at the bottom of the page? and that's why it's going over....thx in advance for the help....I'm glad to be back.

    -The Other Dave Bailey :P

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Dave,

    I hope you are intending to get rid of the full screen page. Taking over a browser is not looked too good upon, atleast I would close and never go back.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    Mr. Blue's Avatar
    Evil twin of Dave

    Status
    Offline
    Join Date
    Jul 2001
    Location
    MA, USA
    Posts
    148
    Yeah we are and we're also making it compatible with 800x600 res. users so we're back on track. I haven't had much time since I've been working on my art portfolio for school....that's been a large chunk of my time. Along with school and sports i've been pretty busy but i'm making a triumphant return.

  7. #7
    JitteryKelly's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2002
    Location
    VA
    Posts
    9
    how about just using a 100x100 pixel background tile and setting that as the background image in the HTML? It's compatible with all screen sizes that way and will cover the entire background of the page. Unless that's not what you're wanting to accomplish.

  8. #8
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    i dont know how to stretch it, but to tile it horizontally, vertically or both, put the code below in between <head> and </head> :

    ==start of code==
    <style>
    BODY
    {
    BACKGROUND-IMAGE:url('image.jpg');
    <!--to tile horizontally-->
    BACKGROUND-REPEAT:repeat-x;
    <!--to tile vertically-->
    BACKGROUND-REPEAT:repeat-x;
    }
    </style>
    ==end of code==



Tags for this Thread