TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-01-2009, 09:00 PM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default Jquery Accordion limit of elements?

i'm using jcarousel and i put more than 10 li elements and what is happending is the items are overlapping.

let me show you what i mean

http://iaddesignandstudio.com/jcarousel/

i want to show one item at a time but it shows 2 or 3 i noticed once i get passed 10 li elements that is when the overlapping occurs.

let me know how it can be fixed


thanks
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-02-2009, 06:00 AM   #2 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

can someone help me please? ill do anything
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-02-2009, 10:25 AM   #3 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,381
Thanks: 5
Salathe is on a distinguished road
Default

The ul element surrounding the list items has a width of 9999 pixels. Because of this, the floated list items will be wrapped onto a new line as you can see. Set the with of the ul to something bigger than a single line of lis will ever be (like 100,000 pixels).
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
sarmenhb (02-02-2009)
Old 02-02-2009, 11:14 AM   #4 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

salath, i love u lol.
thank you for that.

are the li elements inline? for it to had been overlapping like that? i haven't really analyzed its code yet since i have been trying to complete it for a client. but if the elements are inline then that makes sense.

thank you again :)
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-02-2009, 11:27 AM   #5 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,381
Thanks: 5
Salathe is on a distinguished road
Default

The li elements are floated. If there are too many floated elements to display horizontally for any given width, they'll wrap onto a new line just like inline elements do.

P.S. Use Firebug (either full one or Firebug Lite with non-Firefox browsers) to "inspect" what's going on.
Salathe is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
jquery wont work for me :( sarmenhb Javascript, AJAX, E4X 2 09-27-2008 08:52 PM
adjacent selectors should allow for different elements delayedinsanity XHTML, HTML, CSS 5 07-13-2008 08:21 PM
Howto limit same results to one? marxx General 6 03-08-2008 05:50 PM
Cookie issue -jQuery Sam Granger Javascript, AJAX, E4X 0 12-14-2007 12:44 PM


All times are GMT. The time now is 11:25 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design