Getting CSS rollover background to match in size

Hi,
I'm on an intel Mac using DW CS4. I've created pretty straightforward CSS rollovers for my navigation but the background color area of the rollover isn't matching the original background area in size. Looking very carefully, there's an extra pixel in height on the size when you rollover.  I've tried tweaking the 'height:4px" setting in the li a area but it just shifts the dynamic in size and the mis-match is still there.
Here's the link/site: Http://www.frankbright.com
I really appreciate any help. This is probably basic CSS but I'm still learning. Many Thanks,
Frank B.
Btw, I forgot to mention, this seems to vary depending upon the browser. Firefox seems to be the main one not matching up.

Hi Frank
Closely looking i do get a 1px more at the extrem end of the navigation to get rid of 1px, i had refine the solution as below.
Step 1
.oneColElsCtrHdr #nav ul {
    background-color: #000000;
    color: #FFFFFF;
    float: left;
    font-family: arial,helvetica,sans-serif;
    height: 23px;   /************************remove height form it*******************************/
    list-style: none outside none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 710px;
Step 2
.oneColElsCtrHdr #nav {
    background-color: #000000;    color: #FFFFFF;
    height: 23px; /************************remove height form it*******************************/
    margin-top: 0;
    padding: 0;
    width: 745px;
    flaot:left; /************************add float:left;  *******************************/

Similar Messages

  • Dreamweaver CSS div background color doesn't match .png menu button color on PC

    Hello,
    I created a menu with buttons the same background color (CSS) as the background color on my CSS template. However, for some reason, the colors don't look the same on mac and a pc. The background on the menu buttons that I created (.png) match the css template div background on a mac. But, when the site displays on a pc, the menu background color from the css template is darker than the .png background color, even though the color code is the exact same. On a mac, the .png background color matches the css div template color exactly. Anyone know what is going on or how to fix?
    I appreciate any assistance!

    Are both monitors calibrated?
    http://www.wikihow.com/Calibrate-Your-Monitor
    Windows renders images a tad darker.  To compensate, use Gamma Correction in Photoshop.
    http://www.photoshopsupport.com/tutorials/cb/gamma.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Getting black backgrounds to match

    Sorryif this is too simple but I have a bunch of logos that I've edited and cropped in photoshop. Since my DVDs are using black backgrounds I used black in photoshop as a filler color on the edges of the logos. However when I drop the logos in m menus as drop zones, the black in the logos in slightly darker than the black of the menu. This makes the logos look pretty ugly. Is there a way to reset my menu background to match the logos?

    The other option(s)
    Make the whole thing mounted on black in Photoshop OR use your color picker to grab the black in the logos and use that value to set the background color of the menu as Hal suggested.
    Best off just making the menu background black in Photoshop file

  • Trifecta CSS rollover question

    Hi Guys
    I am currently using Flash buttons and would like to replace
    them using trifecta CSS rollover effects. I have the buttons and
    the over buttons in my images folder but the code I have only seems
    to require the over button URL, how can i adapt this code to use
    two images?
    Code entered into CSS:
    .cssnav
    position: relative;
    font-family: arial, helvetica, sans-serif;
    background: url(overbtn.jpg) no-repeat;
    white-space: nowrap;
    display: block;
    width: 211px;
    height: 44px;
    margin: 0;
    padding: 0;
    .cssnav a
    display: block;
    color: #000000;
    font-size: 11px;
    width: 211px;
    height: 44px;
    display: block;
    float: left;
    color: black;
    text-decoration: none;
    .cssnav img
    width: 211px;
    height: 44px;
    border: 0
    * html a:hover
    visibility:visible
    .cssnav a:hover img
    visibility:hidden
    .cssnav span
    position: absolute;
    left: 35px;
    top: 15px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    Text
    Code entered into html:
    <div class="cssnav">
    <a href="
    http://www.URL.com"><img
    src="downbtn.jpg" alt="Alternative text" /><span>your
    keyword</span></a>
    </div>
    downbtn.jpg

    Your code is a bit strange/voluminous. Consider my comments
    shown below.
    .cssnav /* why a class and not an ID? */
    position: relative;
    font-family: arial, helvetica, sans-serif;
    background: url(overbtn.jpg) no-repeat;
    white-space: nowrap;
    display: block;
    /* why display:block on an element that is already a block
    tag? */
    width: 211px;
    height: 44px;
    margin: 0;
    padding: 0;
    .cssnav a
    display: block;
    color: #000000;
    font-size: 11px;
    width: 211px;
    height: 44px;
    display: block;
    /* why redundant styles? */
    float: left;
    color: black;
    /* why redundant styles? */
    text-decoration: none;
    .cssnav img
    width: 211px;
    height: 44px;
    border: 0
    * html a:hover
    visibility:visible
    /* why this rule at all? */
    .cssnav a:hover img
    visibility:hidden
    .cssnav span
    position: absolute;
    left: 35px;
    top: 15px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    /* why this style when it will be the default? */
    /* try adding this rule */
    .cssnav a:hover
    background-image:url(overbtn.jpg);
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mikes1471" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi Guys
    >
    > I am currently using Flash buttons and would like to
    replace them using
    > trifecta CSS rollover effects. I have the buttons and
    the over buttons in
    > my
    > images folder but the code I have only seems to require
    the over button
    > URL,
    > how can i adapt this code to use two images?
    >
    > Code entered into CSS:
    >
    > .cssnav
    > {
    > position: relative;
    > font-family: arial, helvetica, sans-serif;
    > background: url(overbtn.jpg) no-repeat;
    > white-space: nowrap;
    > display: block;
    > width: 211px;
    > height: 44px;
    > margin: 0;
    > padding: 0;
    > }
    >
    > .cssnav a
    > {
    > display: block;
    > color: #000000;
    > font-size: 11px;
    > width: 211px;
    > height: 44px;
    > display: block;
    > float: left;
    > color: black;
    > text-decoration: none;
    > }
    >
    > .cssnav img
    > {
    > width: 211px;
    > height: 44px;
    > border: 0
    > }
    >
    > * html a:hover
    > {
    > visibility:visible
    > }
    >
    > .cssnav a:hover img
    > {
    > visibility:hidden
    > }
    >
    > .cssnav span
    > {
    > position: absolute;
    > left: 35px;
    > top: 15px;
    > margin: 0px;
    > padding: 0px;
    > cursor: pointer;
    > }
    >
    >
    Text
    >
    > Code entered into html:
    >
    > <div class="cssnav">
    > <a href="
    http://www.URL.com"><img
    src="downbtn.jpg" alt="Alternative text"
    > /><span>your keyword</span></a>
    > </div>
    >
    >
    >
    downbtn.jpg
    >

  • CSS rollover effects

    Hello,
    So I've been playing with muse since the beginning basically. A feature that would be greatly appreciated by me and probably the whole community would be CSS rollover effects. I know that there's states and all that, but I feel like that just uhhh kind of dull in a way. They work but there's only so much you can do. I know you can kind of make something in edge animate but that can get complicated for those who are not familiar and frankly uncomfortably with code (like myself). So I'm wondering in the next update if the Muse team can Add some sort of preset of CSS rollover effects to Muse.
    For example you would be able to make a menu or a gallery, Then you could click the thing you wanted to add the effect to, then could select what style of effect you wanted. If that makes sense..I'm not the greatest at explaing things via type.
    http://thecodeplayer.com/walkthrough/simple-hover-effects-with-css3-filters  <----- That is just an example of photo/gallerly effects that would be sweet if Muse could implimnet. As of now i cant find a good site for text rollover effects.
    Cheers
    -Ben

    I do not understand what you mean with "the rollover will extend the full width of the background"
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • How do I get a white background with black lines

    How do I get a white background with black lines and characters on my screen. To run the program, copy it out and delete the ` and it should go. If it does not compile on your machine, I would like to know. There is a test on about line 34 for changing the colors.
    `//Simple program to test Graphics2D.setBackground(white) obtained from BufferedImage.getGraphics()
    `import java.awt.Frame; //Object>awt.Component>Container>Window>Frame
    `import java.awt.Insets; //Object>awt.Insets
    `import java.awt.image.BufferedImage; //Object>awt.Image>awt.image.BufferedImage
    `import java.awt.Graphics; //Object>awt.Graphics
    `import java.awt.Graphics2D; //Object>awt.Graphics>Graphics2D
    `import java.awt.Color;
    `import java.awt.BasicStroke;
    `public class TstBgCol { //frame & BufferedImage in pixels & BasicStroke in points ????????????
    ` TstBgCol tstBgCol;
    ` public static void main(String[] args) {
    ` TstBgCol tstBgCol=new TstBgCol(); tstBgCol.tstBgCol=tstBgCol;
    ` tstBgCol.main2(); tstBgCol.byteBinary();
    ` }
    ` Graphics fgcontext;
    ` Frame fram; Insets insets; //borders of the Frame, Container.getInsets
    ` int bIWid=1272,bIHgt=876; //set for 1280x1024 screen on windows XP & matches paper ratio 10.6x7.3
    ` int unusedPixHgt=84;
    ` void main2() {
    ` fram=new Frame();
    ` fram.addWindowListener(new java.awt.event.WindowAdapter() { //anonymous inner class
    ` public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }
    ` });
    ` fram.setVisible(true);
    ` insets=fram.getInsets(); //(Container)getInsets() works after displayable
    ` System.out.println("Insets l,t,r,b:"+insets.left+","+insets.top+","+insets.right+","+insets.bottom);
    ` fram.setSize(insets.left+bIWid+insets.right,insets.top+bIHgt+unusedPixHgt+insets.bottom);
    ` fgcontext=fram.getGraphics(); //creates Graphics context for this component
    ` }
    ` void byteBinary() {
    ` BufferedImage buIm=new BufferedImage(bIWid,bIHgt,BufferedImage.TYPE_BYTE_BINARY); //can be resized
    ` Graphics2D bIG2=buIm.createGraphics(); //returns Graphics2D context
    ` //change to if(true) to use either of the following two lines
    ` if(false) bIG2.setBackground(Color.white); //does not change the background color to white
    ` if(false) bIG2.setColor(Color.black); //does change the foreground color to black
    ` edgeLinesAndX(buIm,bIG2);
    ` fgcontext.drawImage(buIm,insets.left,insets.top,fram);
    ` }
    ` private void edgeLinesAndX(BufferedImage bI,Graphics2D bIG2) { //really on the edge
    `      BasicStroke strk=new BasicStroke(10f); bIG2.setStroke(strk);
    ` int x0,y0,xmx,ymx;
    ` x0=bI.getMinX(); y0=bI.getMinY(); xmx=bI.getWidth()-1; ymx=bI.getHeight()-1;
    ` bIG2.drawLine(x0+xmx,y0,x0,y0+ymx); //lo-left to up-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0+ymx); //up-left to lo-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0); //up-left to up-right
    ` bIG2.drawLine(x0,y0,x0,y0+ymx); //up-left to lo-left
    ` bIG2.drawLine(x0,y0+ymx,x0+xmx,y0+ymx); //lo-left to lo-right
    ` bIG2.drawLine(x0+xmx,y0,x0+xmx,y0+ymx); //up-right to lo-right
    ` bIG2.drawString("("+x0+","+y0+") wid="+(xmx+1)+" hgt="+(ymx+1),(xmx+1)/5,(ymx+1)/5);
    ` }
    `} //the result on my screen is a black background, why?????

    How do I get a white background with black lines and characters on
    my screen.Contrary to what you might think, the linebIG2.setBackground(Color.white);does not give the buffered image a white background. The API docs
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setBackground(java.awt.Color)
    say: "Setting the background color in the Graphics2D context only
    affects the subsequent clearRect calls... " So adding a line to your
    if blocks we getif (false) {
        bIG2.setBackground(Color.white);
        bIG2.clearRect(0, 0, buIm.getWidth(), buIm.getHeight());
    if (false) {
        bIG2.setColor(Color.black);                    
    }Changing the false to true results in a white background (and black
    X and text).

  • What do I have to do to get WebHelp browser styles to match RH's style sheet?

    What do I have to do to get WebHelp browser styles to match RH's style sheet?
    In the PDF rendering, the styles conform to the .css styles, but the generated WebHelp in the browsers (Firefox and IE) does not.
    I've check all the generated project's topic folders for the correct .css, and they're there. I also put a copy of the .css in the project's root folder as someone suggested, but that doesn't work.
    I'm using RH 10, and I'm certainly no expert at it or HTML. Forgive me if I've done something stupid or not done something I should have.
    Thanks.
    B.

    Willam,
    No. Every style but on in the style sheet that I created is mapped correctly to the project. All style settings except margins and font appear correctly in the webHelp. Also, if generated as a PDF or as .chm help, ALL styles render correctly. They just don't appear correctly for WebHelp (haven't tried any of the other HTML-realated project formats.)
    This appears to be a problem with the default font, which apparently cannot be changed in RH.
    Unless there's some sort of work-around, it appears that my problem is that I didn't map the source FrameMaker "normal" font to a font style OTHER THAN the default style, and under a different name, when I imported the FM file. I made the unwarranted assumptions that the RH default font would be whatever was the default font in FM, and if it wasn't, I could change it.
    I've looked all over the "communities" and Adobe help, but I can't find anywhere where the default font can be changed after a project is created.
    Thanks for keeping with me on this.

  • Paper detected does not match paper size or type selected

    Says paper mismatch! Paper detected does not match paper size or type selected. I have a 6600. Can some help?

    Hi,
    Try updating the printer firmware, the latest version should improve its paper handling.
    Follow these steps to get the latest update for the printer and then check for any differencex:
    http://support.hp.com/us-en/product/HP-Officejet-6​600-e-All-in-One-Printer---H711a/H711g/4322968/mod​...
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Div box gets relocated depending on browser and monitor size. HELP!!!!!!!!!!!

    div box gets relocated depending on browser and monitor size. HELP!!!!!!!!!!!

    This is usually caused by malformed HTML, CSS and/or the use of absolute positioning in primary layouts.  Without a link, it's all guesswork on how to fix it though. 
    Nancy O.

  • 'Margins Do Not Match Page Size' Excel 2011 problem - nothing working now. Mac 10.9.2

    Hey folks. PLEASE help. I'm running Mac 10.9.2 with Excel 2011 on a macbook pro. All of a sudden i'm getting an error 'Margins Do Not Match Page Size' on Excel as soon as i start doing anything e.g. adjust page size, try to print. Help?
    Ive seen previous questions on this but nothing recent and none of the solutions seem to fit.
    Any ideas?
    Tahnks

    Kernel Panics today:
    Kernel Extensions in backtrace:
             com.apple.filesystems.smbfs(2.0.2)[E043DE0F-9336-3C61-9C82-F029B430A3EB]@0xffff ff7fabb77000->0xffffff7fabbc2fff
                dependency: com.apple.kec.corecrypto(1.0)[DB137B94-65D2-32AF-B5BC-80A360E104C3]@0xffffff7fa bb2b000
                dependency: com.apple.kext.triggers(1.0)[A7018A2E-1C0C-37B8-9382-67786A396EAF]@0xffffff7fab b72000
    Kernel Extensions in backtrace:
             com.apple.filesystems.smbfs(2.0.2)[E043DE0F-9336-3C61-9C82-F029B430A3EB]@0xffff ff7f85e2c000->0xffffff7f85e77fff
                dependency: com.apple.kec.corecrypto(1.0)[DB137B94-65D2-32AF-B5BC-80A360E104C3]@0xffffff7f8 3f2b000
                dependency: com.apple.kext.triggers(1.0)[A7018A2E-1C0C-37B8-9382-67786A396EAF]@0xffffff7f83 f72000
    BSD process name corresponding to current thread: Finder
    Mac OS version:
    13E28

  • PhotoSmart3210 All in one "Paper detected does not match paper size or type selected."

    All of a sudden i cannot copy any document with my 3210 All In One.  I keep getting the message shown above on the screen.

    Hi @nunzio317 
    I would like to help you with your Photosmart 3210. I understand that when you copy you see a message on the printer that says "Paper detected does not match paper size or type selected". Does this also happen when you print from the computer, or only when you copy? Have you tried copying a different size paper, and what size paper are you currently using?
    Are you able to print a self test report? If you are unsure, please try, and let me know;
    Load plain white paper into the tray.
    Press the Setup button.
    Press 1 to display the Print Report menu.
    Press 1 again to select Self-Test Report. The self-test report prints.
    - Source
    If this also happens when you print from the computer, please use the following document as it can help you to resolve the issue; 'Paper Mismatch,' or 'Paper Size Mismatch' Error Message Displays When Printing.
    I hope this helps.
      - In support of Movember
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How do you get drum loops tempo to match your track?

    We've recorded a few different projects with acoustic guitar tracks and are having trouble getting the drum loops to match the beat/tempo of our tracks. Even with Groove Matching, it still sounds a little bit off. Any suggestions?

    Did you record your guitars to a steady metronome? If you have a varying tempo, it will be hard to match the beat to them.

  • My apple tv 2 says I can't stream music from my iTunes library on my iMac without settng up iTunes Match. I don't want to set up iTunes match. How can I get back to the pre-Match system which let me just use home sharing to stream music from computer to A

    When I click on the Music tab on my Apple TV 2, a message tells me I have to set up iTunes Match to stream music from my iTunes library on my iMac. I don't want to set up and pay for iTunes Match. How can I get back to the pre-Match system which let me just use home sharing to stream music from computer to Aple TV

    Ditto.
    You need to look for your itunes library under Computers and select it, then music.
    Music column is for web based content not local content, just to confuse everyone.
    AC

  • When I burn my imovie I get the IDVD screen with a thumb size video playing in the corner of the screen without audio - weird

    When I burn my imovie I get the IDVD screen with a thumb size video playing in the corner of the screen without audio - weird

    You can find the serial number either in About this Mc in the Menu bar under the , or it should be on a sticker under the foot of the machine.
    If you have the install discs, try booting from them, holding down the c key and then using Disk Utility to check the drive. 
    You can also boot into Safe mode
    To start up into Safe Mode (to "Safe Boot"), do this:
       1. Be sure the computer is shut down.
       2. Press the power button.
       3. Immediately after you hear the startup tone, press and hold the Shift key.
          Tip: The Shift key should be held as soon as possible after the startup tone but not before.
       4. Release the Shift key when you see the gray Apple and progress indicator (looks like a spinning gear).
    During the startup in Mac OS X 10.2 through 10.3.9, you will see "Safe Boot" on the Mac OS X startup screen.
    During the startup in Mac OS X 10.4 or later, you will see "Safe Boot" on the login window, which appears even if you normally log in automatically.
    Please post back with results,
    To leave Safe Mode in any version of Mac OS X, restart the computer normally, without holding any keys during startup.

  • How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    That has not worked. I do it and still it reverts. Isn't there a way to tell Firefox to just go back to default settings?

Maybe you are looking for