Results 1 to 4 of 4

Thread: Sexy Panels CSS Menu problem in FF

  1. #1
    Join Date
    Jul 2005
    Location
    West Lothian, Scotland
    Posts
    37
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Sexy Panels CSS Menu problem in FF

    1) Script Title: Sexy Panels Vertical CSS Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...vertical_menu/

    3) Describe problem: I am building a new website using the Sexy Panels CSS menu. The test page I have put together looks fine in IE8 but in Firefox (v3.6.22) the menu buttons have gaps in between them.

    Sample page - http://www.raceandrally.co.uk/revamp/index2.htm

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The presence of "P" elements inside your menu is what's causing the gaps in between the menu items. You can forcibly remove them by adding the following CSS rule to your existing CSS:

    Code:
    .sexypanels p{
    margin:0;
    }
    Or to retain some bottom gap, do the following instead:

    Code:
    .sexypanels p{
    margin:0;
    margin-bottom:2px;
    }
    DD Admin

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

    Franco50 (09-26-2011)

  4. #3
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I always begin the css with a Meyer reset
    Code:
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    	margin: 0;
    	padding: 0;
    	border: 0;
    	outline: 0;
    	font-weight: inherit;
    	font-style: inherit;
    	font-size: 100%;
    	font-family: inherit;
    	vertical-align: baseline;
    }
    /* remember to define focus styles! */
    :focus {
    	outline: 0;
    }
    body {
    	line-height: 1;
    	color: black;
    	background: white;
    }
    ol, ul {
    	list-style: none;
    }
    /* tables still need 'cellspacing="0"' in the markup */
    table {
    	border-collapse: separate;
    	border-spacing: 0;
    }
    caption, th, td {
    	text-align: left;
    	font-weight: normal;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
    	content: "";
    }
    blockquote, q {
    	quotes: "" ""
    }
    It helps getting the same look across browsers
    but ok it may be overkill in this case

  5. #4
    Join Date
    Jul 2005
    Location
    West Lothian, Scotland
    Posts
    37
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help guys. I went for ddadmin's solution as it seemed the easier option. This has cured the problem.

Bookmarks

Posting Permissions

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