Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    moving elements within a nav bar

    I am trying to replicate the look of a 1.2.6 site in 1.3
    I managed to create all the elements in a 2nd nav bar but they are positioned wrong

    here is my 1.3 development site

    http://sulserv.dyndns.org/sgf/

    ** it will take a while to come up **


    here is the existing live

    http://www.secretgardenflowers.com

    1) how do i move the search form in the nav bar to the center
    2) how do i center the new text link elements i created in navbar2 (ie all products etc) so that they are centered?
    3) how to i have borders around the nav bars?

    Thanks,

    I have found the classes for the nav bars i just can't figure out what element to add or modify to drive this

    - Kevin

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: moving elements within a nav bar

    use border: 1px solid #000000; and text-align: center;

  3. #3
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: moving elements within a nav bar

    Quote Originally Posted by clydejones
    use border: 1px solid #000000; and text-align: center;
    thanks but on what class

    here are the classes i figured drive it

    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {

    margin: 0em;

    background-color: #C00000;

    font-weight: bold;

    color: #ffffff;

    height: 1%;

    width: 100%;

    }



    #navMainWrapper2 {

    margin: 0em;

    background-color: #C00000;

    font-weight: bold;

    color: #ffffff;

    height: 1%;

    width: 100%;

    }



    #navMain ul, #navSupp ul, #navCatTabs ul {

    margin: 0;

    padding: 0.5em 0em;

    list-style-type: none;

    text-align: center;

    line-height: 1.5em;

    }

    #navMain2 ul {

    margin: 0;

    padding: 0.5em 0em;

    list-style-type: none;

    text-align: center;

    line-height: 1.5em;

    }

    #navMain ul li, #navMain2 ul li, #navSupp ul li, #navCatTabs ul li {

    display: inline;

    white-space: nowrap;

    }



    #navMain2 ul li {

    display: inline;

    white-space: nowrap;

    }



    #navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {

    text-decoration: none;

    padding: 0em 0.5em;

    margin: 0;

    color: #ffffff;

    }



    #navMain2 ul li a {

    text-decoration: none;

    padding: 0em 0.5em;

    margin: 0;

    color: #ffffff;

    }
    Last edited by sgflowers; 11 May 2006 at 07:44 PM. Reason: update with css snippet

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: moving elements within a nav bar

    Add a new ID to the stylesheet

    #navMain2 { border: 1px solid #000000; text-align: center;}
    This should center everything in this Navbar.

    looking at the search in the source it renders like this <div class="navMainSearch forward"> which aligns it to the right. You'll have to find the template file that handles this search form and remove the forward class. I'd then add the class
    .navMainSearch {text-align: center;} to the stylesheet

    Quote Originally Posted by sgflowers
    thanks but on what class

    here are the classes i figured drive it

    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {

    margin: 0em;

    background-color: #C00000;

    font-weight: bold;

    color: #ffffff;

    height: 1%;

    width: 100%;

    }



    #navMainWrapper2 {

    margin: 0em;

    background-color: #C00000;

    font-weight: bold;

    color: #ffffff;

    height: 1%;

    width: 100%;

    }



    #navMain ul, #navSupp ul, #navCatTabs ul {

    margin: 0;

    padding: 0.5em 0em;

    list-style-type: none;

    text-align: center;

    line-height: 1.5em;

    }

    #navMain2 ul {

    margin: 0;

    padding: 0.5em 0em;

    list-style-type: none;

    text-align: center;

    line-height: 1.5em;

    }

    #navMain ul li, #navMain2 ul li, #navSupp ul li, #navCatTabs ul li {

    display: inline;

    white-space: nowrap;

    }



    #navMain2 ul li {

    display: inline;

    white-space: nowrap;

    }



    #navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {

    text-decoration: none;

    padding: 0em 0.5em;

    margin: 0;

    color: #ffffff;

    }



    #navMain2 ul li a {

    text-decoration: none;

    padding: 0em 0.5em;

    margin: 0;

    color: #ffffff;

    }

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: moving elements within a nav bar

    I just noticed one other thing in the source:

    <div id="navMain2">
    <ul class="back"> this aligns everything to the left;

    You'll need to remove the class="back" from the template file (tpl_header.php)

  6. #6
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: moving elements within a nav bar

    Quote Originally Posted by clydejones
    I just noticed one other thing in the source:

    <div id="navMain2">
    <ul class="back"> this aligns everything to the left;

    You'll need to remove the class="back" from the template file (tpl_header.php)
    thanks for all the help

    no i know why my edits wern't taking!

  7. #7
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: moving elements within a nav bar

    Quote Originally Posted by sgflowers
    I am trying to replicate the look of a 1.2.6 site in 1.3
    I managed to create all the elements in a 2nd nav bar but they are positioned wrong

    here is my 1.3 development site

    http://sulserv.dyndns.org/sgf/

    ** it will take a while to come up **


    here is the existing live

    http://www.secretgardenflowers.com

    1) how do i move the search form in the nav bar to the center
    2) how do i center the new text link elements i created in navbar2 (ie all products etc) so that they are centered?
    3) how to i have borders around the nav bars?

    Thanks,

    I have found the classes for the nav bars i just can't figure out what element to add or modify to drive this

    - Kevin
    ok so i have most of it done

    just the bars are way to big now

    i can figure out how to reduce them in size

    can anyone assist

    here is current

    tpl_header http://sulserv.dyndns.org/sgf/tpl_header.php.txt

    css http://sulserv.dyndns.org/sgf/stylesheet.css.txt

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: moving elements within a nav bar

    You might want to change the height from 1% to say 30px:
    Code:
    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    	margin: 0em;
    	background-color: #C00000;
    	font-weight: bold;
    	color: #ffffff;
    	height: 30px;
    	width: 100%;
      border: 1px solid #9a9a9a
    }
    
    #navMain2Wrapper {
    	margin: 0em;
    	background-color: #C00000;
    	font-weight: bold;
    	color: #ffffff;
    	height: 30px;
    	width: 100%;
      border: 1px solid #9a9a9a
    }
    Try it and see how it works.

  9. #9
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: moving elements within a nav bar

    Quote Originally Posted by clydejones
    You might want to change the height from 1% to say 30px:
    Code:
    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    	margin: 0em;
    	background-color: #C00000;
    	font-weight: bold;
    	color: #ffffff;
    	height: 30px;
    	width: 100%;
      border: 1px solid #9a9a9a
    }
    
    #navMain2Wrapper {
    	margin: 0em;
    	background-color: #C00000;
    	font-weight: bold;
    	color: #ffffff;
    	height: 30px;
    	width: 100%;
      border: 1px solid #9a9a9a
    }
    Try it and see how it works.
    damn this is hard to figure out

    i reduced it to 20px but then the text moves off the bar into the other bar
    what the he** is going on

    ahhhhhhhhh

    ok i'm allright



    can anyone look at the 2 files at tell me what to edit to mimic

    the original site - i need to fix the size of the navbars and reposition the text vertically

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: moving elements within a nav bar

    Here's my CSS for the top navbars:
    Code:
    #navMainWrapper {margin: 0em; padding: 0 0 2px 0; border-bottom: 1px solid #66006B; background-color: #c459aa; font-weight: bold; height: 20px; width: 100%;}
    #navMain  {margin: 0; padding: 3px 0 0 10px; list-style-type: none; text-align: center;	color: #580C84;}
    
    #navMainWrapper2 {margin: 0em; padding: 0 0 2px 0; text-align: center; border-bottom: 1px solid #66006B; background-color: #c459aa; font-weight: bold; height: 20px; width: 100%;}
    #navMain2  {margin: 0; padding: 3px 0 0 10px; list-style-type: none; text-align: center;	color: #fff;}
    take a look here for a demo

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Nav bar - How can i delete a heading in my Nav bar (v1.5.0)
    By Pretty dumb in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Oct 2012, 02:07 PM
  2. Moving the top nav bar down
    By sunrise in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Nov 2010, 05:22 PM
  3. Moving Customer greeting to main nav bar?
    By softget in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2007, 01:29 PM
  4. How to move search bar into nav bar?
    By Sullmoney in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Sep 2006, 08:49 AM
  5. Top bar Header Bar Nav Bar
    By mole69 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Jul 2006, 04:35 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