SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Resize div contents using Javascript

    We are using Prototype and Scriptaculous in a project and I can't find this in either of their documentations -- if you know it is a feature already in either of them please let me know as I'd rather not reinvent the wheel.

    We have an online application we're writing and in a part of it we want to show a "preview" of content but we want it to be scaled down so we can fit a sidebar and other navigation around it.

    I know it is possible to resize the contents of a div (including text, images, flash, etc.) I just don't know how to do it.

    Anyone know if this is available in Prototype/Scriptaculous or know of a way to do it (maybe a function)?

  2. #2
    SitePoint Addict darkwater23's Avatar
    Join Date
    Nov 2005
    Location
    Omaha, NE
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    May need some clarification here. Do you want to make the DIV change size for the flash, images and text in it or do you actually want to change the dimensions of the flash objects, the image objects and text in the DIV?

  3. #3
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    The second -- we are trying to resize the div and all contents inside to fit a specific size.


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
  •