Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  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

    ok i am getting there .... slowly

    again:

    here is original :

    http://www.secretgardenflowers.com (1.2.6)

    new site

    http://sulserv.dyndns.org/sgf


    css:

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

    tpl_header.php:

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

    I am still having problem postioning the text properly and getting a border around the 2 navbars any help would be appreciated
    Last edited by sgflowers; 12 May 2006 at 04:12 AM.

  8. #8
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: moving elements within a nav bar

    A small suggestion, get some tools to help the works. Very easy to use and with visual help.

    The link
    Tools For Fast Find Items In Css


    Good luck.

    .
    A New Starter again

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

    Default Re: moving elements within a nav bar

    Quote Originally Posted by seethrou
    A small suggestion, get some tools to help the works. Very easy to use and with visual help.

    The link
    Tools For Fast Find Items In Css


    Good luck.

    .
    i am using the firefox webdev extension
    but i am having difficulty figuring out which class overides which

    It seems like many of the inputs i am making have no effect

  10. #10
    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

 

 
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