Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    52
    Member #
    2478
    ive been trying to figure out how to do this for a while. where the background image is fixed, and the text moves by itself. an example is at;

    www.tatugirls.com

    i want to be able to do that for my site, but cant seem to get it. i use macromedia dreamweaver mx if that helps. if someone could help me do that in DW, id be much appreciative. thanks for everyones time.

  2.  

  3. #2
    Senior Member GrandmasterB's Avatar
    Join Date
    Jun 2003
    Location
    Colorado
    Posts
    225
    Member #
    1902
    Liked
    1 times
    You could do it two ways...both have the image set as the background.

    1. do like they did and use frames...which in my opinion sucks.

    2. use either a <div> or <iframe>

    both ways are rather simple, they just look confusing.

  4. #3
    Member
    Join Date
    Aug 2003
    Posts
    52
    Member #
    2478
    will the div allow me to leave the fixed background image behind the text, to give the float effect? i know iframes wont since that links to an external file. i want to keep that floating effect. im sure i can do div since ive seen it done and it doesnt look too complicated.

  5. #4
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    You mean like.... http://www.phpwebspace.net/htest/ ??

    Very simple... just use css... ie.

    <style>
    body {
    background-image: url("mypic.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
    }
    </style>

    Sean

  6. #5
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    The second one is much better then using the frames etc.

    I am not a very big fan of the frames stuff, try and avoid it as much as possible.

    Daniel.

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    You can do it without CSS:
    Code:
    <body background="image.jpg" bgproperties="fixed">
    You can use that in an iFrame, too.

  8. #7
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Transio, that's fine as long as they are happy for the background to be tiled. If they want it to only repeat once, centered on the page, I believe you have to use CSS (I think so,anyway... have been wrong before!)

    Sean :-)

  9. #8
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Also make sure it is cross-platform/browser... there are quite a lot of things like this that only work in IE.

    Sean


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com