SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't understand why this is happening

    I'm trying to sprite some navigation buttons and having troubles.
    I can't figure out why I can't get the new one lined up like the original.

    original:
    http://www.listinventory.com/

    New:
    http://www.listinventory.com/index2.php

    Can anyone help out here?
    MrBaseball34
    Hook'Em Horns!

  2. #2
    SitePoint Addict AtSea webdesign's Avatar
    Join Date
    May 2010
    Location
    Newark, Delaware
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see #navigation css is different on both pages. One has a margin-top: 20px while the other does not.

    Did you match your CSS for both pages?

  3. #3
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the original, the CSS for #navigation has float:left. If I do that in the new CSS, all the buttons stack up next to the logo on top of each other. Adding the margin-top value to the new CSS just moves the buttons AND logo down.

    It is strange. Looking at the div in Firebug something is very strange.
    When hovering over the div in the left pane, it usually highlights the div in light blue in the top pane (the browser window). But it highlights it in yellow and, even if I set the width to 725px, it shows it the full width of the container.
    MrBaseball34
    Hook'Em Horns!

  4. #4
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't think the text-indent has anything to do with that, do you? That is there to hide the anchor text. It is needed for SEO.
    MrBaseball34
    Hook'Em Horns!

  5. #5
    SitePoint Addict MrBaseball34's Avatar
    Join Date
    Sep 2002
    Location
    Round Rock, Texas
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I finally got it. Just had to add padding-top value as 20 .vs margin-top. Geez, this is frustrating. ;-)
    MrBaseball34
    Hook'Em Horns!


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
  •