473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do you expand the suckerfish borders?

I am using a suckerfish drop down menu and copied the html codes from their site. I can't figure out how to make the border go to the end of the drop down menu. I made the drop down menu wider but my border line is in the middle of the box.

Also, which code is it that changes the background color of the drop menu? I want it to be purple rather than gray.
Jul 29 '10 #1
3 1534
JKing
1,206 Expert 1GB
Please post the code you are working with. Both the CSS and HTML in question.
Jul 29 '10 #2
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  5.     <title>jQuery suckerFish</title>
  6.     <link rel="stylesheet" href="style/standard1.css" type="text/css" media="all" />
  7.     <link rel="stylesheet" href="style/standard2.css" type="text/css" media="all" />
  8.     <link rel="stylesheet" href="style/print-norightcol.css" type="text/css" media="print" />
  9. <script type="text/javascript" src="http://be.twixt.us/jquery/jquery.js"></script>
  10.     <script type="text/javascript">
  11.       $(document).ready(function(){
  12.             $("#nav-one li").hover(
  13.                 function(){ $("ul", this).fadeIn("fast"); }, 
  14.                 function() { } 
  15.             );
  16.           if (document.all) {
  17.                 $("#nav-one li").hoverClass ("sfHover");
  18.             }
  19.       });
  20.  
  21.         $.fn.hoverClass = function(c) {
  22.             return this.each(function(){
  23.                 $(this).hover( 
  24.                     function() { $(this).addClass(c);  },
  25.                     function() { $(this).removeClass(c); }
  26.                 );
  27.             });
  28.         };      
  29.     </script>
  30.     <style type="text/css">
  31.  
  32. /* Navigation */
  33. .nav, .nav ul { 
  34.     list-style: none;
  35.     margin: 0;
  36.     padding: 0;
  37. }
  38.  
  39. .nav {
  40.   font-family: Arial, Helvetica, sans-serif;
  41.   z-index: 100;
  42.   position: relative;
  43. }
  44. .nav li {
  45.   border-left: 1px solid #000;
  46.   float: left;
  47.   margin: 0;
  48.   padding: 0;
  49.   position: relative;
  50. }
  51. .nav li a, .nav li a:link, .nav li a:active, .nav li a:visited {
  52.   font: bold 1.22em/25px Arial, Helvetica, sans-serif;
  53.   background: #565656;
  54.   color: #959595;
  55.   display: block;
  56.   padding: 0 9px;
  57.   text-transform: lowercase;
  58.   text-decoration: none;
  59. }
  60.  
  61. .nav li a:hover {
  62.   background: #ccc;
  63.   color: #000;    
  64.  
  65. }
  66. #nav-one li:hover a, 
  67. #nav-one li.sfHover a {
  68.   background: #ccc;
  69.   color: #000;
  70. }
  71. #nav-one li:hover ul a, 
  72. #nav-one li.sfHover ul a {
  73.   background: #565656;
  74.   color: #959595;    
  75. }
  76. #nav-one li:hover ul a:hover, 
  77. #nav-one li.sfHover ul a:hover {
  78.   background: #ccc;
  79.   color: #000;    
  80. }
  81.  
  82. .nav ul {
  83.   background: #565656;
  84.   border-bottom: 1px solid #000;
  85.   list-style: none;
  86.   margin: 0;
  87.   width: 200px;
  88.   position: absolute;
  89.   top: -999em;
  90.   left: -1px;
  91. }
  92. .nav li:hover ul,
  93. .nav li.sfHover ul {
  94.   top: 25px;
  95. }
  96. .nav ul li {
  97.   border: 0;
  98.   float: none;
  99. }
  100. .nav ul a {
  101.   border: 1px solid #000;
  102.   border-bottom: 0;
  103.   padding-right: 20px;
  104.   width: 100px;
  105.   white-space: nowrap;
  106. }
  107. .nav ul a:hover {
  108.   background: #609;
  109.   color: #000;
  110. }
  111.     </style>
  112. </head>
  113. <body>
  114.  
  115.     <h2>Sample Markup</h2>
  116.     <h4>Sample 1 - One Level</h4>
  117.         <ul id="nav-one" class="nav">
  118.             <li>
  119.                 <a href="#item1">Resources</a>
  120.                 <ul>
  121.                     <li><a href="#item1.1">Career Planning</a></li>
  122.                     <li><a href="#item1.2">Choosing a Program</a></li>
  123.                     <li><a href="#item1.3">What Can I Do ...</a></li>
  124.                     <li><a href="#item1.4">Summer Job Guide</a></li>
  125.                 </ul>
  126.             </li>
  127.             <li>
  128.                 <a href="#item2">item 2</a>
  129.                 <ul>
  130.                     <li><a href="#item2.1">item 2.1</a></li>
  131.                     <li><a href="#item2.2">item 2.2</a></li>
  132.                 </ul>
  133.             </li>
  134.             <li>
  135.                 <a href="#item3">item 3</a>
  136.                 <ul>
  137.                     <li><a href="#item3.1">item 3.1</a></li>
  138.                     <li><a href="#item3.2">item 3.2</a></li>
  139.                 </ul>
  140.             </li>
  141.             <li>
  142.                 <a href="#item4">item 4</a>
  143.                 <ul>
  144.                     <li><a href="#item4.1">item 4.1</a></li>
  145.                     <li><a href="#item4.2">item 4.2</a></li>
  146.                     <li><a href="#item4.3">item 4.3</a></li>
  147.                 </ul>
  148.             </li>
  149.         </ul>
  150.  
  151.     <br clear="all" />
  152.  
  153.  
  154. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  155. </script>
  156. <script type="text/javascript">
  157. _uacct = "UA-325840-2";
  158. urchinTracker();
  159. </script>
  160. </body>
  161. </html>
Jul 29 '10 #3
zorgi
431 Expert 256MB
Check all the css width properties and play with them, you have only 2. It should work even if you delete widths but I think suckerfish is mess in Opera without those.
Jul 30 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dave | last post by:
Sorry this has probably been asked a million times before. I have a nested div and want it to expand vertically to fill its parent div. It does it in IE6 but not Mozilla. Height property...
1
by: Martial Spirit | last post by:
Hello- I was amazed at the suckerfish drop-downs from AListApart.com. They work great except for one thing, if I position the drop-downs over an iframe element, on mouseover the menus disappear....
2
by: Wayfarer | last post by:
I'm stumped. Would one of you take a look at the following site and help me with two problems: 1. When zooming in, <div id="banner"> is the *only* block that doesn't "expand" to fit the text &...
10
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
23
by: timmy | last post by:
Anyone knows if the htmldog suckerfish menu can be done in a more fluid way: http://www.htmldog.com/articles/suckerfish/dropdowns/ Or more precisely, the 2-level menu:...
1
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
3
by: j0nharris | last post by:
I'm using the suckerfish vertical menu, & the positioning is working like a charm in every browser except IE6 -- go figure! The menu is sitting on its own page for now on...
15
by: Davo | last post by:
Hello, I've created a table with two columns, the second column is fixed width at 64px and contains a div, the div has a border and contains some text, the text renders to larger than 64px. This...
1
by: phpmagesh | last post by:
Can any one guide me how to create sucker fish menu step by step. i seen in Son of Suckerfish Dropdowns | HTML Dog but i cant able to do where to start and where to write which code. can any...
2
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.