You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Scrollable with 100% width Created Sep 1, 2010

This thread is solved

Views: 1377     Replies: 4     Last reply Sep 14, 2010  
You must login first before you can use this feature

matthew2

Posts: 1

Registered:
Sep 1, 2010

Scrollable with 100% width

Posted: Sep 1, 2010

I want the scrollable to span the entire width of the page. I also want the individual items to span the entire width. However it simply doesn't work as expected when changing the widths in the examples to percentage based widths. Things start to break.

Before I waste too much of my time, is it even possible? Can I have a simple example?

rahul rout

Posts: 2

Registered:
Sep 7, 2010

» Scrollable with 100% width

Posted: Sep 8, 2010

Reply to: Scrollable with 100% width, from matthew2
I too am facing the same issues.
Please help anybody

stayinrhythm

Posts: 6

Registered:
Sep 14, 2010

» Scrollable with 100% width

Posted: Sep 14, 2010

Reply to: Scrollable with 100% width, from matthew2
as long as your layout is correctly defined with 100% width and heights on your HTML and BODY, you should just be able to have width as auto and your scrollable container will stretch to fill the space automatically...

rahul rout

Posts: 2

Registered:
Sep 7, 2010

» » Scrollable with 100% width

Posted: Sep 14, 2010

Reply to: » Scrollable with 100% width, from stayinrhythm
I have tried doing the scrolling with 100% width, but with no success.
It wold be great if you could provide an example.

stayinrhythm

Posts: 6

Registered:
Sep 14, 2010

» » » Scrollable with 100% width

Posted: Sep 14, 2010

Reply to: » » Scrollable with 100% width, from rout.rahul

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
#scrollable-container {
	display: block; position: relative;
	height: 75px;
        background: #ddd;
}
.scrollable {
	/* required settings */
	position: relative;
	overflow: hidden;
        width: auto;
        height: 75px;
	margin: 0 25px;
}
a.browse {
	display: block; position: absolute;
        top: 32px; width: 16px; height: 16px;
	cursor: pointer;
}
</style>
</head>
<body>
        <div id="scrollable-container">
            <!-- "previous page" action -->
            <a class="prev browse left disabled"></a>
            
            <!-- root element for scrollable -->
            <div class="scrollable" id="myimagescroller">   
               <!-- root element for the items -->
               <div class="items">
                  <div><img src="" width="68" height="51" /></div>
                  <div><img src="" width="68" height="51" /></div>
                  <div><img src="" width="68" height="51" /></div>
               </div>
            </div>

            <!-- "next page" action -->
            <a class="next browse right"></a>

         </div>
</body>
</html>