Results 1 to 5 of 5

Thread: Document Frame JPG

  1. #1
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Document Frame JPG

    1) Script Title: Document frame script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...mentborder.htm

    3) Describe problem: Is it possible to use this script to have an image file border the page instead of a particular color?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No. It's not really a script anyway. The wizard part is, but it just applies a border style to the body. The output of the wizard doesn't even go where it tells you to put it, and isn't the most efficient way of styling the body even if it were put in the right spot, which would be in the body tag, ex:

    HTML Code:
    <body style="border:25px ridge red;">
    not below it as it says to do on the demo page.

    To make a frame for a page using an image would be more complex, and you would probably need 4 images. One each for the top, right, bottom, and left sides. Each of the images would need to be of the sort that can look good when repeated. You would probably also need 4 corner images. Once you had all of that, you could set up a sort of box around the page using divisions). Some or all of the images would then be used as background images for the outer edge of this box, with the corners possibly as images, or background images. Getting the height right on a valid page when there is less content than window would be tricky. This could probably all be worked out, and in fact, if you were to Google the idea, you might find a solution, but there would be a lot of stuff relating to frame objects and framing pictures. However, as I say, no, not with this this simple approach as is used for the border effect.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jcallen04 (05-27-2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Here is an example of what I want to accomplish. I am new to coding so it is tough for me to breakdown the code they are using.

    http://www.babylegs.net/

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That baby legs site doesn't really have an image for a border for the site. It has one main background image (the green polka dot thing), and uses several different images inside the the page as borders for various elements. This (other than the use of the main background image) is not anything standard, and pretty much has to be worked out on a case by case basis depending upon how it is all supposed to work with the rest of the design.

    To have a background image, just do:

    HTML Code:
    <body style="background-image:url(some.jpg);">
    Or better yet place the rule in a stylesheet. You can create other images as backgrounds for other parts (elements) of your page(s) as you see fit.

    Google:

    css style

    or:

    background image css style

    for more ideas/info.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jcallen04 (05-28-2008)

  7. #5
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Great. Thanks a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •