www.webdeveloper.com
Results 1 to 2 of 2

Thread: JavaScript calculate DIV width/height percentage

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    3

    JavaScript calculate DIV width/height percentage

    Hello,

    So I am having trouble with my slideshow script!

    This is the code:
    Code:
    $(document).ready(function()
    {
    	$("#showcase").awShowcase(
    	{
    		content_width:			640,
    		content_height:			480,
            }
            )
    This decides my slideshow images width and height. Is there a way that I can tell my script to use a certain percentage and not pixels as a measure?

    Because I want my gallery width and height to be in percentage so it will automatically adjust regarding of the parent DIV width and height (parent div is in percentage as well)

    Can somebody help me out please?

    Thank you in advance

    Luka

  2. #2
    Join Date
    Dec 2012
    Posts
    3
    P.S.

    This is the website where the slideshow is:
    http://www.vertel.info

    You can see the parent div (with red border)....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles