Jump to content

mboehler3

Members
  • Content Count

    304
  • Joined

  • Last visited

Everything posted by mboehler3

  1. It does work in FireFox, but not IE
  2. That doesn't work either... I'm searching other sites too but can't find a solution...
  3. border:none; doesn't seem to work... is there another way to remove that 1px border around the box?
  4. Arial, Regular, 12px, Sharp (in Photoshop CS3)
  5. How would I style the bgcolor, width and border? The code on the page for the second image looks like this: <div id="inputWrap"><select name='ImportantFactor'> <option value='Select one'>Select one</option> <option value='Full-service'>Full-service</option> <option value='Online'>Online</option> <option value='Price'>Price</option> <option value='Customer service'>Customer service</option> <option value='Other'>Other</option></select></div> As you can see there's no class set up for the dropdown.
  6. Hi I want to add style to the drop down menu on my form. Here's a picture of what I want it to look like:I'm able to get a basic, standard drop-down menu, over my input box image, like this:Is it possible to get the first picture as a result using CSS? Any help is appreciated, I just need to be pointed in the right direction.Thanks!
  7. Is this even possible?I am modifying a tab system that I found here.I want to add a margin and width to the bottom border of my tab list. Here is how my tab system looks:And I want it to look like this:So I'd want to not have the border extend 100% of the screen, and start under the first tab, giving about 20 pixels of left padding/margin.Here is my CSS: .tabberlive .tabbertabhide { display:none;}/*-------------------------------------------------- .tabber = before the tabber interface is set up .tabberlive = after the tabber interface is set up --------------------------------------------------*/.tabber {}.tabberlive { margin-top:1em;}/*-------------------------------------------------- ul.tabbernav = the tab navigation list li.tabberactive = the active tab --------------------------------------------------*/ul.tabbernav{ margin:0; padding: 3px 0; background-image: url('/images/v1_1/surechoice/tabber-top2.gif'); background-repeat: no-repeat; border-bottom: solid 1px #ccc; font: bold 12px Verdana, sans-serif;}ul.tabbernav li{ list-style: none; margin: 0; display: inline;}ul.tabbernav li a{ padding: 3px 0.5em; margin-left: 20px; margin-right: -20px; border: 1px solid #778; border-bottom: none; background: #DDE; text-decoration: none;}ul.tabbernav li a:link { color: #448; }ul.tabbernav li a:visited { color: #667; }ul.tabbernav li a:hover{ color: #000; background: #AAE; border-color: #227;}ul.tabbernav li.tabberactive a{ background-color: #fff; border-bottom: 1px solid #fff;}ul.tabbernav li.tabberactive a:hover{ color: #000; background: white; border-bottom: 1px solid white;}/*-------------------------------------------------- .tabbertab = the tab content Add style only after the tabber interface is set up (.tabberlive) --------------------------------------------------*/.tabberlive .tabbertab { width:625px; padding:5px; background-image: url(/images/v1_1/surechoice/tabber-bckground.gif); background-repeat: repeat-y; border-top:0; /* If you don't want the tab size changing whenever a tab is changed you can set a fixed height */ /* height:200px; */ /* If you set a fix height set overflow to auto and you will get a scrollbar when necessary */ /* overflow:auto; */}/* If desired, hide the heading since a heading is provided by the tab */.tabberlive .tabbertab h2 { display:none;}.tabberlive .tabbertab h3 { display:none;}/* Example of using an ID to set different styles for the tabs on the page */.tabberlive#tab1 {}.tabberlive#tab2 {}.tabberlive#tab2 .tabbertab { height:200px; overflow:auto;} And my HTML: <div class="tabber"> <div class="tabbertab"> <h2>Tab 1</h2> <p style="margin-left:25px;">Tab 1 content.</p> </div> <div class="tabbertab"> <h2>Tab 2</h2> <p>Tab 2 content.</p> </div> <div class="tabbertab"> <h2>Tab 3</h2> <p>Tab 3 content.</p> </div></div>
  8. I found a solution, using this CSS:/* Second Level Top */.navmenu960 ul li ul li ul li.top {background-image: url('/images/v1_1/surechoice/sub-top1.gif'); background-repeat:no-repeat; height: 33px; display:block; width:265px; margin: 0 1px; margin-left:-1px;}.navmenu960 ul li ul li ul li.top a {display: block; width: auto; margin: 0 7px;}.navmenu960 ul li ul li ul li.top:hover{background-position: 0 -33px; display:block; height:33px; color: #88ac2e; width:265px;}/* Second Level Middle */.navmenu960 ul li ul li ul li a.bckground {background-image: url('/images/v1_1/surechoice/subsubback.gif'); background-repeat:no-repeat; height:25px; width:212px; margin-left:-1px;}.navmenu960 ul li ul li ul li a.bckground:hover{background-position: 0 -30px; height:25px; width:212px;}/* Second Level Bottom */.navmenu960 ul li ul li ul li.bottom {background-image: url('/images/v1_1/surechoice/subbotback.gif'); height:32px; display:block; width:265px; margin-left:-1px;}.navmenu960 ul li ul li ul li.bottom:hover{background-position: 0 -32px; color: #88ac2e; width:265px;}.navmenu960 ul li ul li ul li.bottom a {display: block; margin: 0 7px; width: auto;} Thanks Ingolme for your help.
  9. That didn't change the look at all... I'm stumped here. Any other suggestions?
  10. But the page doesn't look how I want it to... there is white space underneath the top link, and there is a gray border that sticks out on the left. So I want to change the code, but I don't know what's wrong.
  11. I can make the submenu wider, that is no problem. But with this new code, even when I remove the third word, it still looks funky:
  12. Making these changes to the CSS:.navmenu960 ul li ul li ul li.top {background-image: url('/images/v1_1/surechoice/sub-top1.gif'); background-repeat:no-repeat; min-height:1; display:block; width:265px; margin: 0 1px;}.navmenu960 ul li ul li ul li.top a {display: block; border: 1px solid #CCCCCC; border-width: 0 1px;width: auto;} Rendered this:Doesn't the li.top need a height declaration, since the image is 66 pixels, and the bottom 33 are the rollover?
  13. UPDATE:I'm still having trouble with this sub-sub-menu. When you rollover the top and bottom, you get a break in the left gray border:And now the first link breaks onto two lines. But, when I change the width of ".navmenu960 ul li ul li ul li.top" from 265 to 285, I see this:I don't get it - why does the text break? It can obviously fit onto one line. And why does the border go away on a rollover?Here is my CSS: /* Second Level Top */.navmenu960 ul li ul li ul li.top {background-image: url('/images/v1_1/surechoice/sub-top1.gif'); background-repeat:no-repeat; height:33px; display:block; width:265px; margin: 0 1px;}.navmenu960 ul li ul li ul li.top a {display: block; margin: 0 1px; width: auto;}.navmenu960 ul li ul li ul li.top:hover{background-position: 0 -33px; display:block; height:33px; color: #88ac2e; width:265px;}/* Second Level Middle */.navmenu960 ul li ul li ul li a.bckground {background-image: url('/images/v1_1/surechoice/subsubback.gif'); background-repeat:no-repeat; height:25px; width:212px;}.navmenu960 ul li ul li ul li a.bckground:hover{background-position: 0 -30px; height:25px; width:212px;}/* Second Level Bottom */.navmenu960 ul li ul li ul li.bottom {background-image: url('/images/v1_1/surechoice/subbotback.gif'); height:32px; display:block; width:265px;}.navmenu960 ul li ul li ul li.bottom:hover{background-position: 0 -32px; color: #88ac2e; width:265px;}.navmenu960 ul li ul li ul li.bottom a {display: block; margin: 0 1px; width: auto;} And the HTML: <ul><li><a href="/product/payroll/" class="payroll"><strong>Payroll</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href=#">How it works</a></div></li> <li><a href="#" class="bckgroundarrow">Payroll Features</a> <ul> <li class="top"><div style="padding-top:5px;"><a href="#">Accounting Software Integration</a></div></li> <li><a href="/product/payroll/time-clock-integration.asp" class="bckground">Time Clock Integration</a></li> <li><a href="/product/payroll/1-clickpayroll.asp" class="bckground">1-Click™ Technology</a></li> <li><a href="#" class="bckground">Security</a></li> <li class="bottom"><a href="#">iPhone & Mobile Users</a></li> </ul> </li> <li><a href="#" class="bckground">Payroll Pricing</a></li> <li><a href="/product/payroll/payroll-services.asp" class="bckground">Compare Payroll Services</a></li> <li><a href="/product/payroll/clergy-payroll.asp" class="bckground">Clergy Payroll</a></li> <li><a href="/guidedtour/" class="bckground">Guided Tour</a></li> <li><a href="/enroll/StartAccount.asp" class="bckground">New Payroll Enrollment</a></li> <li><a href="/login/login.asp" class="bckground">Customer Login</a></li> <li class="bottom"><a href="#">FAQs</a></li> </ul></li> Any help is appreciated!
  14. Thank you, the overflow:hidden works perfectly!
  15. The top of the image has the background-image behind it, but once the text stops, so does the background-image. Here is my HTML:<div class="tabbertab"> <h3><div runat="server" id="tab1" class="description">{Tab Title #1}</div></h3> <div class="tabs-margin"> <div class="tabs-image"><img src="w200xhauto.png" width="200" height="200" runat="server" id="image_tab1" maxwidth="200" minwidth="50" maxheight="400" minheight="20" /></div> <div class="tabs-headmain"><span runat="server" id="title_tab1">Enter headline here.</span></div><br /> <div class="tabs-headsub"><span runat="server" id="subtitle_tab1">Enter subheadline here.</span></div><br /><br /> <div class="tabs-content"><span runat="server" id="descriptive_tab1">Enter text here.</span></div> </div></div> And CSS: .tabs-margin{padding:15px 35px 0 25px;}.tabs-headmain{font-weight:bold; font-size:18px; width:300px;}.tabs-headsub{font-size:14px; width:300px;}.tabs-content{width:300px;}.tabs-image {float:right;}.tabberlive .tabbertab {width:625px; padding:5px; background-image: url('tabber-bckground.gif'); background-repeat: repeat-y; border-top:0;}
  16. I figured this out - for some reason, adding a "clear" underneath the main tabs <div> did it. Not sure why...
  17. Here is the HTML code: <div class="tabber"><div class="tabbertab" title="How it works"> <h3>How it works</h3> <div class="tabs-margin"> <div class="tabs-headmain">Enter payroll and access reports from anywhere</div><br /> <div class="tabs-headsub">— even on your iPhone® or Blackberry®</div><br /><br /> <strong>What you do:</strong><br /> Our easy, 3-step process lets you enter and approve payroll hours in minutes, or you can use our 1-Click Payroll Technology to process payroll in seconds.<br /><br /> <strong>What we do:</strong> <div class="tabs-listmargin"> <ul> <li>Send you an email, reminding you when to process.</li> <li>Calculate wages and deductions.</li> <li>Deposit and file federal, state and local taxes.</li> <li>Pay your employees by direct deposit and notify them of payment by email. (Or you can print and distribute checks if you prefer.)</li> <li>Provide employees online access to their paystubs and W2s.</li> <li>Provide you and your accountant with 24/7 access to payroll reports.</li> </ul> </div> </div></div> <div class="tabbertab" title="Products and Services"> <h3>Products and Services</h3> <div class="tabs-margin"> <div class="tabs-headmain">Take advantage of affordable benefits and services</div><br /> <div class="tabs-headsub">— that seemlessly integrate into your payroll process.</div><br /><br /> <strong>What you do:</strong><br /> Our easy, 3-step process lets you enter and approve payroll hours in minutes, or you can use our 1-Click Payroll Technology to process payroll in seconds.<br /><br /> <strong>What we do:</strong> <div class="tabs-listmargin"> <ul> <li>Send you an email, reminding you when to process.</li> <li>Calculate wages and deductions.</li> <li>Deposit and file federal, state and local taxes.</li> <li>Pay your employees by direct deposit and notify them of payment by email. (Or you can print and distribute checks if you prefer.)</li> <li>Provide employees online access to their paystubs and W2s.</li> <li>Provide you and your accountant with 24/7 access to payroll reports.</li> </ul> </div> </div></div><div class="tabbertab"> <h3>Features</h3> <div class="tabs-margin"> <div class="tabs-headmain">Get online convenience with robust features</div><br /> <div class="tabs-headsub">— for a fraction of the cost of ADP® or Paychex®</div><br /><br /> <strong>What you do:</strong><br /> Our easy, 3-step process lets you enter and approve payroll hours in minutes, or you can use our 1-Click Payroll Technology to process payroll in seconds.<br /><br /> <strong>What we do:</strong> <div class="tabs-listmargin"> <ul> <li>Send you an email, reminding you when to process.</li> <li>Calculate wages and deductions.</li> <li>Deposit and file federal, state and local taxes.</li> <li>Pay your employees by direct deposit and notify them of payment by email. (Or you can print and distribute checks if you prefer.)</li> <li>Provide employees online access to their paystubs and W2s.</li> <li>Provide you and your accountant with 24/7 access to payroll reports.</li> </ul> </div> </div></div><div class="tabbertab"> <h3>FAQs</h3> <div class="tabs-margin"> <div class="tabs-headmain">Frequently Asked Questions</div> </div></div><div class="tabbertab"> <h3>Compare Us</h3> <div class="tabs-margin"> <div class="tabs-headmain">Compare Our Payroll Service</div> </div></div><img src="tabber-bottom.gif" id="tabs_bottom" runat="server" width="625" height="64" /></div>
  18. I have a tab-content system that I've modified from this script here.Everything works fine in IE, as it looks like this below:As you can see when you rollover a tab, a black outline highlights that tab. But in Firefox, only the first tab has the black outline on the hover. The rest of the four tabs do not rollover, and thus cannot have their hidden content shown.Is there an explanation for why this works in IE and not FF?Here is the JS: /*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-license.php) Copyright (c) 2006 Patrick Fitzgerald Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ==================================================*/function tabberObj(argsObj){ var arg; /* name of an argument to override */ /* Element for the main tabber div. If you supply this in argsObj, then the init() method will be called. */ this.div = null; /* Class of the main tabber div */ this.classMain = "tabber"; /* Rename classMain to classMainLive after tabifying (so a different style can be applied) */ this.classMainLive = "tabberlive"; /* Class of each DIV that contains a tab */ this.classTab = "tabbertab"; /* Class to indicate which tab should be active on startup */ this.classTabDefault = "tabbertabdefault"; /* Class for the navigation UL */ this.classNav = "tabbernav"; /* When a tab is to be hidden, instead of setting display='none', we set the class of the div to classTabHide. In your screen stylesheet you should set classTabHide to display:none. In your print stylesheet you should set display:block to ensure that all the information is printed. */ this.classTabHide = "tabbertabhide"; /* Class to set the navigation LI when the tab is active, so you can use a different style on the active tab. */ this.classNavActive = "tabberactive"; /* Elements that might contain the title for the tab, only used if a title is not specified in the TITLE attribute of DIV classTab. */ this.titleElements = ['h2','h3','h4','h5','h6']; /* Should we strip out the HTML from the innerHTML of the title elements? This should usually be true. */ this.titleElementsStripHTML = true; /* If the user specified the tab names using a TITLE attribute on the DIV, then the browser will display a tooltip whenever the mouse is over the DIV. To prevent this tooltip, we can remove the TITLE attribute after getting the tab name. */ this.removeTitle = true; /* If you want to add an id to each link set this to true */ this.addLinkId = false; /* If addIds==true, then you can set a format for the ids. <tabberid> will be replaced with the id of the main tabber div. <tabnumberzero> will be replaced with the tab number (tab numbers starting at zero) <tabnumberone> will be replaced with the tab number (tab numbers starting at one) <tabtitle> will be replaced by the tab title (with all non-alphanumeric characters removed) */ this.linkIdFormat = '<tabberid>nav<tabnumberone>'; /* You can override the defaults listed above by passing in an object: var mytab = new tabber({property:value,property:value}); */ for (arg in argsObj) { this[arg] = argsObj[arg]; } /* Create regular expressions for the class names; Note: if you change the class names after a new object is created you must also change these regular expressions. */ this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi'); this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi'); this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi'); this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi'); this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi'); /* Array of objects holding info about each tab */ this.tabs = new Array(); /* If the main tabber div was specified, call init() now */ if (this.div) { this.init(this.div); /* We don't need the main div anymore, and to prevent a memory leak in IE, we must remove the circular reference between the div and the tabber object. */ this.div = null; }}/*-------------------------------------------------- Methods for tabberObj --------------------------------------------------*/tabberObj.prototype.init = function(e){ /* Set up the tabber interface. e = element (the main containing div) Example: init(document.getElementById('mytabberdiv')) */ var childNodes, /* child nodes of the tabber div */ i, i2, /* loop indices */ t, /* object to store info about a single tab */ defaultTab=0, /* which tab to select by default */ DOM_ul, /* tabbernav list */ DOM_li, /* tabbernav list item */ DOM_a, /* tabbernav link */ aId, /* A unique id for DOM_a */ headingElement; /* searching for text to use in the tab */ /* Verify that the browser supports DOM scripting */ if (!document.getElementsByTagName) { return false; } /* If the main DIV has an ID then save it. */ if (e.id) { this.id = e.id; } /* Clear the tabs array (but it should normally be empty) */ this.tabs.length = 0; /* Loop through an array of all the child nodes within our tabber element. */ childNodes = e.childNodes; for(i=0; i < childNodes.length; i++) { /* Find the nodes where class="tabbertab" */ if(childNodes[i].className && childNodes[i].className.match(this.REclassTab)) { /* Create a new object to save info about this tab */ t = new Object(); /* Save a pointer to the div for this tab */ t.div = childNodes[i]; /* Add the new object to the array of tabs */ this.tabs[this.tabs.length] = t; /* If the class name contains classTabDefault, then select this tab by default. */ if (childNodes[i].className.match(this.REclassTabDefault)) { defaultTab = this.tabs.length-1; } } } /* Create a new UL list to hold the tab headings */ DOM_ul = document.createElement("ul"); DOM_ul.className = this.classNav; /* Loop through each tab we found */ for (i=0; i < this.tabs.length; i++) { t = this.tabs[i]; /* Get the label to use for this tab: From the title attribute on the DIV, Or from one of the this.titleElements[] elements, Or use an automatically generated number. */ t.headingText = t.div.title; /* Remove the title attribute to prevent a tooltip from appearing */ if (this.removeTitle) { t.div.title = ''; } if (!t.headingText) { /* Title was not defined in the title of the DIV, So try to get the title from an element within the DIV. Go through the list of elements in this.titleElements (typically heading elements ['h2','h3','h4']) */ for (i2=0; i2<this.titleElements.length; i2++) { headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0]; if (headingElement) { t.headingText = headingElement.innerHTML; if (this.titleElementsStripHTML) { t.headingText.replace(/<br>/gi," "); t.headingText = t.headingText.replace(/<[^>]+>/g,""); } break; } } } if (!t.headingText) { /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.li = DOM_li; /* Create a link to activate the tab */ DOM_a = document.createElement("a"); DOM_a.appendChild(document.createTextNode(t.headingText)); DOM_a.href = "java script:void(null);"; DOM_a.title = t.headingText; DOM_a.onclick = this.navClick; /* Add some properties to the link so we can identify which tab was clicked. Later the navClick method will need this. */ DOM_a.tabber = this; DOM_a.tabberIndex = i; /* Do we need to add an id to DOM_a? */ if (this.addLinkId && this.linkIdFormat) { /* Determine the id name */ aId = this.linkIdFormat; aId = aId.replace(/<tabberid>/gi, this.id); aId = aId.replace(/<tabnumberzero>/gi, i); aId = aId.replace(/<tabnumberone>/gi, i+1); aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, '')); DOM_a.id = aId; } /* Add the link to the list element */ DOM_li.appendChild(DOM_a); /* Add the list element to the list */ DOM_ul.appendChild(DOM_li); } /* Add the UL list to the beginning of the tabber div */ e.insertBefore(DOM_ul, e.firstChild); /* Make the tabber div "live" so different CSS can be applied */ e.className = e.className.replace(this.REclassMain, this.classMainLive); /* Activate the default tab, and do not call the onclick handler */ this.tabShow(defaultTab); /* If the user specified an onLoad function, call it now. */ if (typeof this.onLoad == 'function') { this.onLoad({tabber:this}); } return this;};tabberObj.prototype.navClick = function(event){ /* This method should only be called by the onClick event of an <A> element, in which case we will determine which tab was clicked by examining a property that we previously attached to the <A> element. Since this was triggered from an onClick event, the variable "this" refers to the <A> element that triggered the onClick event (and not to the tabberObj). When tabberObj was initialized, we added some extra properties to the <A> element, for the purpose of retrieving them now. Get the tabberObj object, plus the tab number that was clicked. */ var rVal, /* Return value from the user onclick function */ a, /* element that triggered the onclick event */ self, /* the tabber object */ tabberIndex, /* index of the tab that triggered the event */ onClickArgs; /* args to send the onclick function */ a = this; if (!a.tabber) { return false; } self = a.tabber; tabberIndex = a.tabberIndex; /* Remove focus from the link because it looks ugly. I don't know if this is a good idea... */ a.blur(); /* If the user specified an onClick function, call it now. If the function returns false then do not continue. */ if (typeof self.onClick == 'function') { onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event}; /* IE uses a different way to access the event object */ if (!event) { onClickArgs.event = window.event; } rVal = self.onClick(onClickArgs); if (rVal === false) { return false; } } self.tabShow(tabberIndex); return false;};tabberObj.prototype.tabHideAll = function(){ var i; /* counter */ /* Hide all tabs and make all navigation links inactive */ for (i = 0; i < this.tabs.length; i++) { this.tabHide(i); }};tabberObj.prototype.tabHide = function(tabberIndex){ var div; if (!this.tabs[tabberIndex]) { return false; } /* Hide a single tab and make its navigation link inactive */ div = this.tabs[tabberIndex].div; /* Hide the tab contents by adding classTabHide to the div */ if (!div.className.match(this.REclassTabHide)) { div.className += ' ' + this.classTabHide; } this.navClearActive(tabberIndex); return this;};tabberObj.prototype.tabShow = function(tabberIndex){ /* Show the tabberIndex tab and hide all the other tabs */ var div; if (!this.tabs[tabberIndex]) { return false; } /* Hide all the tabs first */ this.tabHideAll(); /* Get the div that holds this tab */ div = this.tabs[tabberIndex].div; /* Remove classTabHide from the div */ div.className = div.className.replace(this.REclassTabHide, ''); /* Mark this tab navigation link as "active" */ this.navSetActive(tabberIndex); /* If the user specified an onTabDisplay function, call it now. */ if (typeof this.onTabDisplay == 'function') { this.onTabDisplay({'tabber':this, 'index':tabberIndex}); } return this;};tabberObj.prototype.navSetActive = function(tabberIndex){ /* Note: this method does *not* enforce the rule that only one nav item can be active at a time. */ /* Set classNavActive for the navigation list item */ this.tabs[tabberIndex].li.className = this.classNavActive; return this;};tabberObj.prototype.navClearActive = function(tabberIndex){ /* Note: this method does *not* enforce the rule that one nav should always be active. */ /* Remove classNavActive from the navigation list item */ this.tabs[tabberIndex].li.className = ''; return this;};/*==================================================*/function tabberAutomatic(tabberArgs){ /* This function finds all DIV elements in the document where class=tabber.classMain, then converts them to use the tabber interface. tabberArgs = an object to send to "new tabber()" */ var tempObj, /* Temporary tabber object */ divs, /* Array of all divs on the page */ i; /* Loop index */ if (!tabberArgs) { tabberArgs = {}; } /* Create a tabber object so we can get the value of classMain */ tempObj = new tabberObj(tabberArgs); /* Find all DIV elements in the document that have class=tabber */ /* First get an array of all DIV elements and loop through them */ divs = document.getElementsByTagName("div"); for (i=0; i < divs.length; i++) { /* Is this DIV the correct class? */ if (divs[i].className && divs[i].className.match(tempObj.REclassMain)) { /* Now tabify the DIV */ tabberArgs.div = divs[i]; divs[i].tabber = new tabberObj(tabberArgs); } } return this;}/*==================================================*/function tabberAutomaticOnLoad(tabberArgs){ /* This function adds tabberAutomatic to the window.onload event, so it will run after the document has finished loading. */ var oldOnLoad; if (!tabberArgs) { tabberArgs = {}; } /* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */ oldOnLoad = window.onload; if (typeof window.onload != 'function') { window.onload = function() { tabberAutomatic(tabberArgs); }; } else { window.onload = function() { oldOnLoad(); tabberAutomatic(tabberArgs); }; }}/*==================================================*//* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */if (typeof tabberOptions == 'undefined') { tabberAutomaticOnLoad();} else { if (!tabberOptions['manualStartup']) { tabberAutomaticOnLoad(tabberOptions); }}
  19. Thank you for your help, now I have the same issue with the sub, sub menu. I applied the same CSS for the ul li ul li ul li... here's what I see when I rollover the top:Here's my CSS:.navmenu960 ul li ul li ul li.top {background-image: url('/images/v1_1/surechoice/sub-top1.gif'); height:33px; display:block; width:295px;}.navmenu960 ul li ul li ul li.top a {display: block; margin: 0 1px; width: auto;}.navmenu960 ul li ul li ul li.top:hover{background-position: 0 -33px; height:33px; color: #88ac2e; width:295px;}
  20. Like this?.navmenu960 ul li ul li.top {background-image: url('/images/v1_1/surechoice/main-top1.gif'); background-repeat:no-repeat; height:45px; font-size:13px; font-weight:bold; display:block; width:251px; margin: 0 1px;}
  21. Thank you, that worked - but now a small part of the left and right borders go away when you rollover the text, as seen here:
  22. Here is my HTML: <div id="navmenu" class="navmenu960"><ul><li><a href="/product/payroll/" class="payroll"><strong>Payroll</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href=#">How it works</a></div></li> <li><a href="#" class="bckgroundarrow">Payroll Features</a> <ul> <li class="top"><div style="padding-top:5px;"><a href="#">Accounting Software Integration</a></div></li> <li><a href="/product/payroll/time-clock-integration.asp" class="bckground">Time Clock Integration</a></li> <li><a href="/product/payroll/1-clickpayroll.asp" class="bckground">1-Click™ Technology</a></li> <li><a href="#" class="bckground">Security</a></li> <li class="bottom"><a href="#">iPhone & Mobile Users</a></li> </ul> </li> <li><a href="#" class="bckground">Payroll Pricing</a></li> <li><a href="/product/payroll/payroll-services.asp" class="bckground">Compare Payroll Services</a></li> <li><a href="/product/payroll/clergy-payroll.asp" class="bckground">Clergy Payroll</a></li> <li><a href="/guidedtour/" class="bckground">Guided Tour</a></li> <li><a href="/enroll/StartAccount.asp" class="bckground">New Payroll Enrollment</a></li> <li><a href="/login/login.asp" class="bckground">Customer Login</a></li> <li class="bottom"><a href="#">FAQs</a></li> </ul></li><li><a href="/product/"><strong>Products & Services</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href="/product/401k/">401k Plans</a></div></li> <li style="width:251px;"><a href="/product/health-insurance/" class="bckground">Health Insurance</a></li> <li><a href="/product/workers-compensation/" class="bckground">Workers' Compensation</a></li> <li><a href="/product/screening/" class="bckground">Pre-Employment Screening</a></li> <li class="bottom"><a href="/product/compliance/">Compliance</a></li> </ul></li><li><a href="https://localhost/surechoice/accountant_access.asp"><strong>Accountant Center</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href="/surechoice/surechoice-refer.asp">Refer a client</a></div></li> <li style="width:251px;"><a href="/surechoice/surechoice-resell.asp" class="bckground">Profit from Payroll</a></li> <li><a href="/surechoice/surechoice-rewards.asp" class="bckground">Rewards Program</a></li> <li><a href="/surechoice/what-is-surechoice.asp" class="bckground">Access Reports</a></li> <li><a href="/surechoice/surechoice-webinars.asp" class="bckground">Payroll Webinars</a></li> <li class="bottom"><a href="/surechoice/surechoice-resourcecenter.asp">Resource Center</a></li> </ul></li><li><a href="/spsite/resources/"><strong>Small Business Tools</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href="/calculator/">Payroll Calculators</a></div></li> <li style="width:251px;"><a href="/online-payroll/default_state.asp" class="bckground">State Payroll Tax Info</a></li> <li><a href="/spsite/resources/articles/" class="bckground">Helpful Payroll Articles</a></li> <li><a href="/online-payroll/" class="bckground">Payroll Terms</a></li> <li class="bottom"><a href="/video/">Small Business Videos</a></li> </ul></li><li><a href="#"><strong>Media Center</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href="/spsite/press/survey.asp">Main Street Insights</a></div></li> <li style="width:251px;"><a href="/scorecard/" class="bckground">Small Business Scorecard</a></li> <li><a href="/spsite/press/releases/" class="bckground">Press Releases</a></li> <li class="bottom"><a href="/contactus/">Contact Us</a></li> </ul></li><li class="aboutus"><a href="/spsite/company/" class="aboutus"><strong>About Us</strong></a> <ul> <li class="top"><div style="padding-top:20px;"><a href="/spsite/company/company-awards.asp">Awards & Recognition</a></div></li> <li style="width:251px;"><a href="/spsite/company/testimonials.asp" class="bckground">Customer Testimonials</a></li> <li><a href="/spsite/company/partners.asp" class="bckground">Strategic Partners</a></li> <li><a href="/spsite/company/careers.asp" class="bckground">Careers at SurePayroll</a></li> <li><a href="/spsite/company/meet-the-team.asp" class="bckground">Meet Our Team</a></li> <li><a href="#" class="bckground">Security and Privacy</a></li> <li class="bottom"><a href="/contactus/">Contact Us</a></li> </ul></li></ul></div> And CSS: #navmenu {margin-right:0px;margin-left:-30px;background-color: #88ac2e;height: 30px;}.navmenu960 ul{margin: 0;padding: 0;list-style-type: none; font-size: 14px;font-family: Arial;z-index:4;}.navmenu960 ul li{position: relative;display: inline;float: left;text-align: left;font-size: 14px;color:#ffffff;z-index:15;}.navmenu960 ul li.aboutus {padding-left:5px; margin-right:-20px;}.navmenu960 ul li a{display: block;color: white;padding: 3px 27px 0px;font-size: 15px;text-decoration: none;}.navmenu960 ul li a.payroll {display: block;background: #88ac2e;color: white;padding: 3px 20px 0px 25px;font-size: 15px;text-decoration: none;}.navmenu960 ul li a.aboutus {display: block;background: #88ac2e;color: white;padding: 3px 30px 0px 40px;font-size: 15px;text-decoration: none;}* html .navmenu960 ul li a{ /*IE6 hack to get sub menu links to behave correctly*/display: inline-block;}.navmenu960 ul li a:hover{background: #ffffff; /*tab link background during hover state*/height: 25px;color: #88ac2e;display: block;border: solid 1px #ccc;}.navmenu960 ul li ul{position: absolute;left: 0;display: block;visibility: hidden;padding-left: 0px;padding-top: 2px; /*margin between li and drop-down menu*/}.navmenu960 ul li ul li{display: list-item;float: none;}.navmenu960 ul li ul li a.bckground {background-image: url('/images/v1_1/surechoice/subnav-bckground.gif'); background-repeat:no-repeat; height:25px; width:auto;}.navmenu960 ul li ul li a.bckground:hover{background-position: 0 -30px; height:25px; color:#88ac2e; width:auto;}.navmenu960 ul li ul li a.bckgroundarrow {background-image: url('/images/v1_1/surechoice/subnav-bckgroundarrow.gif'); background-repeat:no-repeat; height:25px; width:auto;}.navmenu960 ul li ul li a.bckgroundarrow:hover{background-position: 0 -30px; height:25px; color:#88ac2e; width:auto;}.navmenu960 ul li ul li ul li a.bckground {background-image: url('/images/v1_1/surechoice/subsubback.gif'); background-repeat:no-repeat; height:25px;} .navmenu960 ul li ul li ul li a.bckground:hover{background-position: 0 -30px; height:25px;}.navmenu960 ul li ul li.bottom {background: url('/images/v1_1/surechoice/main-bot1.gif') no-repeat 0 0; font-weight:bold; font-family:Arial; font-size:13px; height:34px; display:block; width:251px;}.navmenu960 ul li ul li.bottom:hover{background-position: 0 -34px; color: #88ac2e; width:251px;}.navmenu960 ul li ul li.top {background-image: url('/images/v1_1/surechoice/main-top1.gif'); background-repeat:no-repeat; height:45px; font-size:13px; font-weight:bold; display:block; width:251px;}.navmenu960 ul li ul li.top:hover{background-position: 0 -45px; width:251px; color:#88ac2e; display:block; height:45px;}.navmenu960 ul li ul li ul li.top {background-image: url('/images/v1_1/surechoice/sub-top1.gif'); height:33px; display:block; width:265px;}.navmenu960 ul li ul li ul li.top:hover{background-position: 0 -33px; color: #88ac2e; width:265px;}.navmenu960 ul li ul li ul li.bottom {background-image: url('/images/v1_1/surechoice/subbotback.gif'); height:32px; display:block; width:265px;}.navmenu960 ul li ul li ul li.bottom:hover{background-position: 0 -32px; color: #88ac2e; width:265px;}.navmenu960 ul li ul li a {font: normal 13px Arial;font-weight:bold;width: auto; /*width of sub menus*/margin: 0;} .navmenu960 ul li ul li ul {position: absolute;left: 0;display: block;visibility: hidden;padding-left:0px;padding-top: 0px; }.navmenu960 ul li ul li a.payroll {font: bold 13px Arial;width: 220px; /*width of sub menus*/padding: 5px;margin: 0;border-top-width: 0;padding-left:25px;background-image:url('/images/960/global/header-carrot-right.gif');background-repeat:no-repeat;background-position:right;} .navmenu960 ul li ul li a:hover{ /*sub menus hover style*/color: #88ac2e;height: auto;border: solid 0px #ccc;}.navmenu960 ul li ul li ul li a:hover{ /*sub menus hover style*/color: #88ac2e;height:auto;border: solid 0px #ccc;}.subnavcarrot{background-position:right;}
  23. I am using a rollover nav menu with no margins. Instead, I'm using a background image for the top, rounded corner list item that has some white space at the top, giving the idea that margin/padding is being used. Here is the image that I use for the first list item:Now here is how the menu should look, when the user rolls-over "Product":The problem is when the user rolls-over in the white space between the top nav and the sub menu. I've added a giant arrow to replicate my mouse:As you can see, the text "disappears," or turns white. But, when the mouse moves down a little bit, the text displays:I'm confused on why this is happening. As you may be able to tell, the text is supposed to stay green in the 2nd screen shot, immediately when the green bar turns to white. If you need more information please do not hesitate to ask, thank you for your help.
  24. I am creating a custom tab menu that replicates this tabber here.My problem is getting the five tabs to align on the gray line. In Firefox, the tabs overlap the line:And in IE, they underlap (don't reach the gray line):Here is my HTML: <div class="tabber"> <div class="tabbertab"> <h3>How it works</h3> <div style="padding:15px 45px 0 20px;"> <strong>We handle the tedious payroll details - to alleviate your hassles</strong><br /> With SurePayroll, you simply go online and enter payroll hours. We handle allt he time-consuming, tedious details. <div style="margin: 10px 0 0 35px;"> <ul> <li>Instantly calculate your wages and deductions</li> <li>Make regular tax deposits according to your deposit frequency</li> <li>File Form 941, your Employer's Quarterly Federal Tax Return, on your behalf</li> <li>File Form 940, the form used to report your annual federal unemployment tax liability, on your behalf</li> </ul> </div> </div> </div> <div class="tabbertab"> <h3>Products and Services</h3> <div style="padding:15px 0 0 5px;"> <strong>We stay on top of regulations - to keep you penalty-free</strong><br /> Most people would agree that payroll would be a cinch, if it weren't for staying knowledgeable about rules and regulations. When you use SurePayroll, we make sure you stay in compliance. <div style="margin: 10px 0 0 35px;"> <ul> <li>Make timely and accurate local, the state and federal tax deposits and filings</li> <li>Automatically report new hires to the state agency as federal and state laws mandates</li> <li>Provide you with updated, customized labor posters</li> </ul> </div> </div> </div> <div class="tabbertab"> <h3>Features</h3> <div style="padding:15px 0 0 5px;"> <strong>We remove administrative burdens - so you can get back to business</strong><br /> With SurePayroll, you don't have to be in the office on payday or spend time administering data. With our convenient online system, you really can have a paperless office. <div style="margin: 10px 0 0 35px;"> <ul> <li>Provide direct deposit and email notifications letting employees know they've been paid</li> <li>Give employees online access to their pay stub, pay history and other payroll information</li> <li>Provide online W@s for employees and online 1099s for your contract workers</li> </ul> </div> </div> </div> <div class="tabbertab"> <h3>FAQs</h3> <div style="padding:15px 0 0 5px;"> <strong>We provide customer support - so you will never have to go at it alone</strong><br /> At SurePayroll, we like to say, "We've got your back!" <div style="margin: 10px 0 0 35px;"> <ul> <li>Work with State agency or IRS on any issues that arise</li> <li>Provide unlimited access to live customer support for processing questions</li> <li>Walk you through our online enrollment process, or complete it for you</li> <li>Walk you through your first payroll</li> </ul> </div> </div> <br /><div align="center"><a href="/Include/video/pop_compare.asp?keepThis=true&TB_iframe=true&height=345&width=313" title="Payroll Service Video" caption="Find out what makes SurePayroll the easiest, most comprehensive online experience" class="thickbox"><IMG SRC="/images/v1_1/video/sp_comparePages.gif" border="0"/></a></div> </div> <div class="tabbertab"> <h3>Compare Us</h3> <div style="padding:15px 0 0 5px;"> <strong>We give you HR tools and resources - so you can run your office more efficiently</strong><br /> Included with your SurePayroll payroll service, you receive easy access to a variety of tools right from your payroll account. <div style="margin: 10px 0 0 35px;"> <ul> <li>Business forms like I9s and W4s that can be automatically pre-populated with information from your payroll account</li> <li>Alerts and reminders service that will keep you on top of important dates</li> <li>Dozens of how-to guides on HR topics relevant to small businesses</li> </ul> </div> </div> </div> <img src="/images/v1_1/surechoice/tabber-bottom.gif" /> And the CSS it uses: /* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ *//*-------------------------------------------------- REQUIRED to hide the non-active tab content. But do not hide them in the print stylesheet! --------------------------------------------------*/.tabberlive .tabbertabhide { display:none;}/*-------------------------------------------------- .tabber = before the tabber interface is set up .tabberlive = after the tabber interface is set up --------------------------------------------------*/.tabber {}.tabberlive { margin-top:1em;}/*-------------------------------------------------- ul.tabbernav = the tab navigation list li.tabberactive = the active tab --------------------------------------------------*/ul.tabbernav{ margin:0; padding: 18px 0 0 0; height: 20px; background-image: url('/images/v1_1/surechoice/tabber-top1.gif'); background-repeat: no-repeat; background-position: 0 17px; width:625px; font: 12px Arial, sans-serif;}ul.tabbernav li{ list-style: none; margin: 0; display: inline;}ul.tabbernav li a{ padding: 10px 15px; margin-left: 20px; margin-right: -20px; color:#747474; border: 1px solid #ccc; border-bottom: none; background: #ededed; text-decoration: none;}ul.tabbernav li a:link { color: #65523f; }ul.tabbernav li a:visited { color: #667; }ul.tabbernav li a:hover{ border-color: #227; text-decoration: none;}ul.tabbernav li.tabberactive a{ text-decoration: none;}ul.tabbernav li.tabberactive a:hover{ text-decoration: none;}/*-------------------------------------------------- .tabbertab = the tab content Add style only after the tabber interface is set up (.tabberlive) --------------------------------------------------*/.tabberlive .tabbertab {width:625px; padding:5px; background-image: url(/images/v1_1/surechoice/tabber-bckground.gif); background-repeat: repeat-y; border-top:0; /* If you don't want the tab size changing whenever a tab is changed you can set a fixed height */ /* height:200px; */ /* If you set a fix height set overflow to auto and you will get a scrollbar when necessary */ /* overflow:auto; */}/* If desired, hide the heading since a heading is provided by the tab */.tabberlive .tabbertab h2 { display:none;}.tabberlive .tabbertab h3 { display:none;}/* Example of using an ID to set different styles for the tabs on the page */.tabberlive#tab1 {}.tabberlive#tab2 {}.tabberlive#tab2 .tabbertab { height:200px; overflow:auto;} I appreciate any help you can provide,
  25. Is something overriding the background image to give it that green color?
×
×
  • Create New...