Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts

    css problem with the scroll bar

    hello guys,
    i have problem in the scroll bar on my css code , i am trying to use that css menu from that link http://www.cssplay.co.uk/menus/slide_fly.html

    it actually works very good but i want to use it on the right side from my site not in the left side so i edited the ccs code but the scroll bar didnt works really good ,it scroll so much on the left side ,
    here is screen shot http://qbael.com/upload/mn/screen.JPG

    and here is my css code after the editing.

    Code:
    #menu {list-style-type:none; padding:0; margin:0; width:150px; z-index:100; float:right; height:360px; background:#000;}
    #menu ul {list-style-type:none; padding:0; margin:0;}
    #menu li {float:left; background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li.sub {background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li, #menu li a {display:block; color:#fff; font-family:arial, sans-serif; font-size:11px; line-height:30px; width:150px; text-decoration:none; cursor:pointer; font-weight:bold; text-align:center;}
    
    #menu table {border-collapse:collapse; padding:0; margin:0 -1px -1px;}
    
    #menu ul,
    #menu :hover ul ul,
    #menu :hover ul :hover ul ul {position:absolute; right:-9999px; width:150px;}
    
    #menu :hover {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover > a {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover ul {position:static; height:180px; margin-top:-1px; background:#383838;}
    #menu :hover ul :hover ul, 
    #menu :hover ul :hover ul :hover ul {display:block; position:absolute; right:130px; top:0; height:auto; z-index:500; border:1px solid #fff;}
    
    #menu :hover ul li, #menu :hover ul li a {background:#383838; text-align:right; text-indent:10px; }
    #menu :hover ul li.fly a {background: #383838 url(slide/arrow.gif) no-repeat 20px center;}
    #menu :hover ul :hover {background:#255fa3; position:relative; z-index:100;}
    #menu a:hover ul li.fly a:hover {background:#255fa3 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    #menu :hover ul li.fly:hover > a {background:#255fa3 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    
    #menu :hover ul :hover ul li, 
    #menu :hover ul :hover ul li a
    {background:#666;}
    #menu :hover ul :hover ul :hover ul li {background:#666; z-index:500;}
    
    #menu :hover ul :hover ul li.fly a {background: #626262 url(slide/arrow.gif) no-repeat 20px center;}
    #menu :hover ul :hover ul :hover {z-index:500; background:#0d72c0; color:#ff0;}
    #menu a:hover ul a:hover ul li.fly a:hover {background:#0d72c0 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    #menu :hover ul :hover ul li.fly:hover > a {background:#0d72c0 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    
    #menu :hover ul :hover ul :hover ul li, 
    #menu :hover ul :hover ul :hover ul li a {background:#888;}
    
    #menu :hover ul :hover ul :hover ul :hover {background:#5184b8; color:#ff0;}
    #menu :hover ul :hover ul :hover ul :hover a {color:#ff0;}
    
    .text {float:right; width:500px; font: 11px verdana, arial, sans-serif; border:1px solid #000; height:358px;}
    .text img  {display:block;}
    .text p {margin:0; padding:5px 10px; line-height:15px;}
    so please help me to fix it .

    thanks

  • #2
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    and that was the code before my edit

    Code:
    
    #menu {list-style-type:none; padding:0; margin:0; width:150px; z-index:100; float:left; height:360px; background:#000;}
    #menu ul {list-style-type:none; padding:0; margin:0;}
    #menu li {float:left; background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li.sub {background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li, #menu li a {display:block; color:#fff; font-family:arial, sans-serif; font-size:11px; line-height:30px; width:150px; text-decoration:none; cursor:pointer; font-weight:bold; text-align:center;}
    
    #menu table {border-collapse:collapse; padding:0; margin:0 -1px -1px;}
    
    #menu ul,
    #menu :hover ul ul,
    #menu :hover ul :hover ul ul {position:absolute; left:-9999px; width:150px;}
    
    #menu :hover {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover > a {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover ul {position:static; height:180px; margin-top:-1px; background:#383838;}
    #menu :hover ul :hover ul, 
    #menu :hover ul :hover ul :hover ul {display:block; position:absolute; left:130px; top:0; height:auto; z-index:500; border:1px solid #fff;}
    
    #menu :hover ul li, #menu :hover ul li a {background:#383838; text-align:left; text-indent:10px; }
    #menu :hover ul li.fly a {background: #383838 url(slide/arrow.gif) no-repeat 120px center;}
    #menu :hover ul :hover {background:#255fa3; position:relative; z-index:100;}
    #menu a:hover ul li.fly a:hover {background:#255fa3 url(slide/arrow.gif) no-repeat 120px center; color:#ff0;}
    #menu :hover ul li.fly:hover > a {background:#255fa3 url(slide/arrow.gif) no-repeat 120px center; color:#ff0;}
    
    #menu :hover ul :hover ul li, 
    #menu :hover ul :hover ul li a
    {background:#666;}
    #menu :hover ul :hover ul :hover ul li {background:#666; z-index:500;}
    
    #menu :hover ul :hover ul li.fly a {background: #626262 url(slide/arrow.gif) no-repeat 120px center;}
    #menu :hover ul :hover ul :hover {z-index:500; background:#0d72c0; color:#ff0;}
    #menu a:hover ul a:hover ul li.fly a:hover {background:#0d72c0 url(slide/arrow.gif) no-repeat 120px center; color:#ff0;}
    #menu :hover ul :hover ul li.fly:hover > a {background:#0d72c0 url(slide/arrow.gif) no-repeat 120px center; color:#ff0;}
    
    #menu :hover ul :hover ul :hover ul li, 
    #menu :hover ul :hover ul :hover ul li a {background:#888;}
    
    #menu :hover ul :hover ul :hover ul :hover {background:#5184b8; color:#ff0;}
    #menu :hover ul :hover ul :hover ul :hover a {color:#ff0;}
    
    .text {float:left; width:500px; font: 11px verdana, arial, sans-serif; border:1px solid #000; height:358px;}
    .text img  {display:block;}
    .text p {margin:0; padding:5px 10px; line-height:15px;}

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    We need to see all your code. CSS without the markup is not much use to us. A site URL would be even better.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    New Coder
    Join Date
    Nov 2008
    Posts
    24
    Thanks
    0
    Thanked 1 Time in 1 Post
    Could it be that while you were trying to align:right the actual menu subcategories, you ended up align:right the entire page by calling the same css div name? Just a thought.

  • #5
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    okay here is the full code including the html , the css and please help me to fix

    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title> Stu Nicholls | CSSplay | Vertical slide </title>
    <meta name="Author" content="Stu Nicholls" />
    <style type="text/css">
    
    
    #menu {list-style-type:none; padding:0; margin:0; width:150px; z-index:100; float:right; height:360px; background:#000;}
    #menu ul {list-style-type:none; padding:0; margin:0;}
    #menu li {float:left; background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li.sub {background:#fff url(slide/slide_0.gif) no-repeat;}
    
    #menu li, #menu li a {display:block; color:#fff; font-family:arial, sans-serif; font-size:11px; line-height:30px; width:150px; text-decoration:none; cursor:pointer; font-weight:bold; text-align:center;}
    
    #menu table {border-collapse:collapse; padding:0; margin:0 -1px -1px;}
    
    #menu ul,
    #menu :hover ul ul,
    #menu :hover ul :hover ul ul {position:absolute; right:-9999px; width:150px;}
    
    #menu :hover {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover > a {color:#ff0; background:#fff url(slide/slide_1.gif) no-repeat; z-index:500; white-space:nowrap;}
    
    #menu :hover ul {position:static; height:180px; margin-top:-1px; background:#383838;}
    #menu :hover ul :hover ul, 
    #menu :hover ul :hover ul :hover ul {display:block; position:absolute; right:130px; top:0; height:auto; z-index:500; border:1px solid #fff;}
    
    #menu :hover ul li, #menu :hover ul li a {background:#383838; text-align:right; text-indent:10px; }
    #menu :hover ul li.fly a {background: #383838 url(slide/arrow.gif) no-repeat 20px center;}
    #menu :hover ul :hover {background:#255fa3; position:relative; z-index:100;}
    #menu a:hover ul li.fly a:hover {background:#255fa3 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    #menu :hover ul li.fly:hover > a {background:#255fa3 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    
    #menu :hover ul :hover ul li, 
    #menu :hover ul :hover ul li a
    {background:#666;}
    #menu :hover ul :hover ul :hover ul li {background:#666; z-index:500;}
    
    #menu :hover ul :hover ul li.fly a {background: #626262 url(slide/arrow.gif) no-repeat 20px center;}
    #menu :hover ul :hover ul :hover {z-index:500; background:#0d72c0; color:#ff0;}
    #menu a:hover ul a:hover ul li.fly a:hover {background:#0d72c0 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    #menu :hover ul :hover ul li.fly:hover > a {background:#0d72c0 url(slide/arrow.gif) no-repeat 20px center; color:#ff0;}
    
    #menu :hover ul :hover ul :hover ul li, 
    #menu :hover ul :hover ul :hover ul li a {background:#888;}
    
    #menu :hover ul :hover ul :hover ul :hover {background:#5184b8; color:#ff0;}
    #menu :hover ul :hover ul :hover ul :hover a {color:#ff0;}
    
    </style>
    </head>
    
    <body>
    <ul id="menu">
    <li><a href="#nogo">Home</a></li>
    <li><a href="#nogo">Privacy Policy</a></li>
    <li class="sub"><a href="#nogo">Types<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                            <li><a href="#nogo">European</a></li>
                            <li><a href="#nogo">Indian</a></li>
                            <li><a href="#nogo">North Africa</a></li>
                            <li class="fly"><a href="#nogo">American<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">South American</a></li>
                                            <li class="fly"><a href="#nogo">North American<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                                            <li><a href="#nogo">Grey tree frog</a></li>
                                                            <li><a href="#nogo">Green tree frog</a></li>
                                                            <li><a href="#nogo">Spring peeper</a></li>
                                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                            </li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li><a href="#nogo">Japanese</a></li>
                            <li><a href="#nogo">Chinese</a></li>
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="sub"><a href="#nogo">Classifications<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                            <li class="fly"><a href="#nogo">Pelodryadinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Cyclorana</a></li>
                                            <li><a href="#nogo">Litoria</a></li>
                                            <li><a href="#nogo">Nyctimystes</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li class="fly"><a href="#nogo7">Phyllomedusinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Agalychnis</a></li>
                                            <li><a href="#nogo">Cruziohyla</a></li>
                                            <li><a href="#nogo">Hylomantis</a></li>
                                            <li><a href="#nogo">Pachymedusa</a></li>
                                            <li><a href="#nogo">Phasmahyla</a></li>
                                            <li><a href="#nogo">Phrynomedusa</a></li>
                                            <li><a href="#nogo">Phyllomedusa</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li class="fly"><a href="#nogo">Hemiphractinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Cryptobatrachus</a></li>
                                            <li><a href="#nogo">Flectonotus</a></li>
                                            <li><a href="#nogo">Gastrotheca</a></li>
                                            <li><a href="#nogo">Hemiphractus</a></li>
                                            <li><a href="#nogo">Stefania</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li class="fly"><a href="#nogo">Hylinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Acris</a></li>
                                            <li><a href="#nogo">Anotheca</a></li>
                                            <li><a href="#nogo">Bokermannohyla</a></li>
                                            <li><a href="#nogo">Corythomantis</a></li>
                                            <li><a href="#nogo">Ecnomiohyla</a></li>
                                            <li><a href="#nogo">Hyloscirtus</a></li>
                                            <li><a href="#nogo">Megastomatohyla</a></li>
                                            <li><a href="#nogo">Osteocephalus</a></li>
                                            <li><a href="#nogo">Pseudacris</a></li>
                                            <li><a href="#nogo">Sphaenorhynchus</a></li>
                                            <li><a href="#nogo">Trachycephalus</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li class="fly"><a href="#nogo9">Rhacophorinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Boophis</a></li>
                                            <li><a href="#nogo">Callixalus</a></li>
                                            <li><a href="#nogo">Chiromantis</a></li>
                                            <li><a href="#nogo">Cryptothylax</a></li>
                                            <li><a href="#nogo">Mantidactylus</a></li>
                                            <li><a href="#nogo">Rhacophorus</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                            <li class="fly"><a href="#nogo">Buergeriinae<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                            <li><a href="#nogo">Buergeria</a></li>
                                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                            </li>
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="sub"><a href="#nogo">References<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                            <li><a href="http://en.wikipedia.org/wiki/Tree_frog">Wikipedia</a></li>
                            <li><a href="#nogo11">Encyclopedia</a></li>
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="sub"><a href="#nogo">Links<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                            <li><a href="#nogo">Complete treefrog</a></li>
                            <li><a href="#nogo">Old World treefrogs</a></li>
                            <li><a href="#nogo">Amphibian Species</a></li>
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    </ul>
    
    </body>
    </html>

  • #6
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    please help .any suggestion ???

  • #7
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Hi!
    I got your PM,

    You must realise that it is very difficult to see what is wrong as we do not have your images.

    This is what I get when I run your code. You see it is not very helpful. Can you send us the images? or a url would be better.

    I have tidied up the code a little.

    Frank
    Last edited by effpeetee; 11-05-2008 at 08:45 AM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #8
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    thanks effpeetee for the reply and here is the full file
    http://www.***********/download/50916749588c953c/

  • #9
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    I cannot download the file. IE7 won't do it.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #10
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    ok i attached it here
    Attached Files Attached Files

  • #11
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Sorry crazy.works but this is what we need.

    #menu li.sub {
    background: #fff url(slide/slide_0.gif) no-repeat;
    and any other gifs or jpegs involved.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #12
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    so how gonna we fix it ???

  • #13
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    hello ,
    well , i got small solution for that .
    the menu was working very cool with no problem in the left side and when i edited the ccs to got it work on the right side of my site it didnt work

    so my solution is , i attached the main file which works o the left side ,and please can u just make the correct edit to got it works on the right side with no problems ??

    thanks a lot
    Attached Files Attached Files

  • #14
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Have a look at this.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #15
    Regular Coder
    Join Date
    Jul 2008
    Posts
    150
    Thanks
    24
    Thanked 0 Times in 0 Posts
    oh it missed up


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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