Results 1 to 8 of 8

Thread: Site Logo/Watermark Script

  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Site Logo/Watermark Script

    1) Script Title: Site Logo/Watermark Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/logo.htm

    3) Describe problem: For some reason, even when I set the offsets to 0, there is still space at the bottom of the image. Does anyone know why? I tried using CSS to make the image have 0 padding, 0 margins and then set the DIV container to do the same.

    Any help would be greatly appreciated!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,138
    Thanks
    3
    Thanked 1,007 Times in 992 Posts
    Blog Entries
    16

    Default

    It should appear flush next to the browser edges in this case. What browser are you using, and does your page contain a valid doctype at the top?
    DD Admin

  3. #3
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default


    This is what it is doing. I am using FF 5 Beta, but it does the same thing in IE8. I'm using the following doctype:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    Does this script not fully support this doctype?

  4. #4
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Bumpedy.

  5. #5
    Join Date
    Aug 2004
    Posts
    10,138
    Thanks
    3
    Thanked 1,007 Times in 992 Posts
    Blog Entries
    16

    Default

    Hmm what if instead of setting the offset values to 0, set them to a low negative number, such as:

    Code:
    offsets: {x:-3, y:-3},//offset of logo relative to window corner
    Is the result consistent for you in various browsers as far as getting the logo to further hug the lower right edge of the window? If so you can do that instead.
    DD Admin

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

    RGStrat (06-29-2011)

  7. #6
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Wow, that works perfectly. I just left the X value at 0 and changed the Y to -6 and it worked. Wierd. Many thanks!

  8. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,374
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    That might be because of body/html bottom margin/padding. Unless you've explicitly set those, they may vary by browser. A similar effect can also be caused by relatively positioned elements or floats, or possibly other things.

    Like if I set the margin to 0 for the body on the demo page, the watermark moves down a few pixels.

    If using the negative works in your target browsers, that's fine.
    - John
    ________________________

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

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

    RGStrat (06-29-2011)

  10. #8
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    That might be because of body/html bottom margin/padding. Unless you've explicitly set those, they may vary by browser. A similar effect can also be caused by relatively positioned elements or floats, or possibly other things.

    Like if I set the margin to 0 for the body on the demo page, the watermark moves down a few pixels.

    If using the negative works in your target browsers, that's fine.
    Yeah, I'll try playing around with the margin on the body, but for now it's acceptable for me

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
  •