Thread: top nav help..

Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Posts
    8
    Plugin Contributions
    0

    css problem top nav help..

    http://www.kotacouture.com/kotastore/

    there it is now..

    i cant get the styles right for the top navigation... can anybody help me out?
    i have a random tab image as the background with text on it just for test purposes.

    im trying to align it to the baseline of the green bar and fix the margining and whatnot so they are clearly spaced with the appropriate width..

    i dont even know what the hell is going on at this point! haha

    current CSS:
    Code:
    #navCatTabs ul {
    	margin: 0;
    	padding:0;
    	list-style-type: none;
    	text-align: center;
    	line-height: 14px;
    	font-size:14px;
    	height:30px;
    	}
    
    #navCatTabs ul li {
    background-image:url(../images/infants.jpg);
    background-repeat:no-repeat;
    display: inline;
    width:auto;
    height:30px;
    margin-right:20px;
    }

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: top nav help..

    #navCatTabs ul li {
    background-image:url(../images/infants.jpg);
    background-repeat:no-repeat;

    display: inline;
    width:auto;
    height:30px;
    margin-right:20px;
    }
    [/CODE]
    Try deleting the code in red. You have set the css to insert this image in every list item (li) then tell the li to use a different image. The two wind up on top of each other.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jun 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: top nav help..

    Say I wanted a rollover, i have 2 images one green one white(rollover & active), and i want the active page nav item to stay white.

    how should i go about doing that? i know almost nothing of php. could I do it just through the CSS or will i have to edit the php as well?

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: top nav help..

    The css term is hover.

    You will have a call for:
    • a link call (to show that it is in fact a link to something)
    • a visited call (if you wish to show what links the customer has already visited)
    • a hover call (to do something when the mouse hovers over the link)
    • an active call (to let the customer know which link they are currently viewing)


    None are required for a an anchor to work.
    Code:
    <a href="http://www.mysite.com">Visit our website</a>
    Check out the info at http://www.yourhtmlsource.com/stylesheets/csslinks.html
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Jun 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: top nav help..

    i know that... but how can i get the images to show up correctly behind each item first? :)

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: top nav help..

    If you were to take any image and place it in #navCatTabs ul li a {, it would be the background for all links.

    Adding another call for the a:hover would change the image.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Need help to change top Nav ? EasyBiz template
    By shades12345 in forum Addon Templates
    Replies: 1
    Last Post: 23 Jun 2011, 12:24 AM
  2. Need help fixing top Nav. bar of website
    By DontBlink7 in forum Templates, Stylesheets, Page Layout
    Replies: 40
    Last Post: 13 Mar 2011, 11:46 PM
  3. HELP? Remove nav bar on TOP of page....
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Sep 2010, 10:16 PM
  4. Please help me withe top nav bar
    By softget in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Dec 2006, 01:56 AM
  5. CSS help for nav top & bot
    By mlbracewell in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Oct 2006, 07:43 PM

Posting Permissions

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