Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Drop down menu left/right position

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Drop down menu left/right position

    Hi,
    On my web site each drop down list which flies out under each heading aligns itself left to right.
    Looking at the heading Others,it also flies out left to right.
    Can it be altered so it flies out and aligns itself right to left.

    I ask because on the iPad half of it is unreadable.
    Website http://www.theremotedoctor.co.uk/index.html

    Screen shot from iPad supplied when screen is moved over,otherwise you only see what's is inline with the edge of the Others heading right hand border.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	image.jpg 
Views:	216 
Size:	89.2 KB 
ID:	5679  
    Last edited by theremotedr; 05-19-2015 at 10:52 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    html:
    Code:
    <a href="#">Others</a>
    <ul class="xxx">
    css:
    Code:
    .xxx{
    left:-100%;
    }
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  3. The Following User Says Thank You to Deadweight For This Useful Post:

    theremotedr (05-19-2015)

  4. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ive added the code shown above but something is incorrect.
    Please take a look.

    http://www.theremotedoctor.co.uk

    Also error code page
    http://validator.w3.org/check?uri=ht...org%2Fservices

  5. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The problem is that you now have two open <ul> tags;
    Code:
    <a href="#">Others</a>
         <ul class="others">
         <ul>
    What Deadweight was indicating, was for you to make a modification to your existing markup by adding the "xxx" class. It wasn't so much a copy+paste addition, as a "make your markup look like this" instruction, although that might not have been obvious.

    It's a little awkward for us (hardened coders) sometimes because we don't know how much knowledge the person asking for help has, and unless the poster specifically says that they're a beginner or that they use a point-and-click website builder, we often assume that the poster knows the rules of well-formed HTML markup and some CSS. Your post count, and the rank/label that goes with it, may work against you too in that respect (implying more coding experience).

    Anyway, on this occasion, all that's needed is to remove the extra <ul>
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

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

    theremotedr (05-19-2015)

  7. #5
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    I have removed the <ul> but still the list flies out like before ?

  8. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Unless i removed the incorrect <ul> there is no change even after adding the code advised.
    Checking for any errors shows nothing wrong,so i am lost as to why the list does not fly out the opposite way.
    http://validator.w3.org/check?uri=ht...Inline&group=0

  9. #7
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    Sorry I took a screenshot this time:
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  10. The Following User Says Thank You to Deadweight For This Useful Post:

    theremotedr (05-19-2015)

  11. #8
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi,
    Thanks for the screen shot but not quite able to see it properly.

    I think what i can see ive now added to my page and the drop down list is now reversed but have some yellow mark ups.
    http://validator.w3.org/check?uri=ht...org%2Fservices

    Please take a look & advise so i can edit the other pages and mark this as resolved.

  12. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    For the first validation point - a warning: Here is more information on what a BOM is and how to remove it: http://www.w3.org/International/ques...er-mark.en.php

    For the second validation point - an error: Look at your markup that has been flagged by the validator;
    Code:
    <ul style="left: -100%;">
    </li> <--- a closing list tag... but what about the opening one?
    <li class="current"> <--- an opening list tag... but the list item it empty... where should the closing tag be?
    and compare it to a well-formed HTML list (you can probably compare to lists elsewhere on your page to look for patterns <--- big tip right there - a lot of successful troubleshooting comes down to being able to identify patterns). The official W3C list specifications can be found here with examples: http://www.w3.org/wiki/HTML_lists Look over the full page but specifically under the 'Nested List' heading for further advice on how to create a nested list, which is what most complex navigation systems use. Indenting the <li> elements (tabs, spaces, your choice) according to how deep they are will help you see the structure more clearly. Also, some HTML editors, such as Notepad++ will create collapsible code blocks to help you see paired opening and closing elements (helpful when troubleshooting nested lists that have gone awry).

    The third validation point is another warning, so it's up to you whether you fix it or not. The recommendation is to add a heading to that section, so search the web page doc for <section id="content" class="wide-content"> (the flagged section) and decide if it is appropriate to insert a heading there using the h2-h6 tags.
    Last edited by Beverleyh; 05-19-2015 at 10:01 AM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  13. The Following User Says Thank You to Beverleyh For This Useful Post:

    theremotedr (05-19-2015)

  14. #10
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Code:
         <li><a href="#">Others</a>
         <ul style="left: -100%;">
         </li>
         <li class="current">
    So the correct thing to do is delete the </li>

Similar Threads

  1. Replies: 1
    Last Post: 11-20-2014, 01:02 PM
  2. Resolved Flex Level Drop Down Menu - make sub menu open to the left
    By michael_zz in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 02-18-2010, 05:51 PM
  3. Problem in IE7 when changing the menu position from left to right
    By Maher4Ever in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 09-25-2008, 06:43 AM
  4. Position Drop Down Menu
    By selina in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 12-01-2006, 12:30 AM
  5. Replies: 2
    Last Post: 08-14-2006, 05:06 PM

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
  •