moving navigation bar in Pressrow theme

  • Unknown's avatar

    hello, i have the css upgrade and would like to know if i can move the navigation bar to appear below the custom header in the pressrow theme. if so, how? thanks. http://www.hhconsulting.wordpress.com

  • Unknown's avatar

    This is probably going to take our only volunteer CSS expert, devblog, and we never know when he is going to show up. He does look in the CSS forum for new questions and problems, but it may take a day before he gets back to you.

  • Unknown's avatar

    thanks, i guess i’ll cultivate some patience then : )

  • Unknown's avatar

    also, can devblog help me with making the page content flush with the sidebar headers? i.e. front page photo is not flush with the word “storefront”?

    i already removed the h2 from the the page content (i.e. “welcome”) so there is nothing impeding the image and text from “testimonials” from moving upwards.

  • Unknown's avatar

    Yep, he is a CSS guru.

  • Unknown's avatar

    A few suggestions:

    Keep your selectors organized by “type”. Element selectors (body, h1, etc.) first; ID selectors (#nav, #pic, etc.) second; class selectors (.page_meta, .post, etc) third.

    The following code has them organized, I’ve included the code to move the navigation bar below the header:

    h2 {
    font-weight:normal;
    font-size:1em;
    text-transform:uppercase;
    }
    
    h2.archive_head {
    font-size:1em;
    text-transform:uppercase;
    }
    
    h3 {
    font-size:1em;
    text-transform:uppercase;
    }
    
    h4 {
    font-size:.8em;
    text-transform:uppercase;
    }
    
    a {
    color:orange;
    text-decoration:underline;
    }
    
    a:visited {
    color:orange;
    text-decoration:underline;
    }
    
    a:hover {
    color:grey;
    text-decoration:underline;
    }
    
    #header{position: relative;}
    
    #nav {
    width:100%;
    border-top:0 solid #222;
    border-bottom:0 solid #222;
    
    float: none;
    overflow: hidden;
    clear: both;
    position: absolute;
    top: 200px;
    left: 0;
    }
    
    #nav ul {
    list-style:none;
    }
    
    #nav li {
    float:left;
    }
    
    #nav li a,#nav li a:visited {
    display:block;
    height:3em;
    line-height:3em;
    color:saddebrown;
    text-decoration:none;
    font-size:1em;
    text-transform:capitaize;
    letter-spacing:.3em;
    float:left;
    cursor:pointer;
    padding:0 1.2em;
    }
    
    #nav li a:hover {
    color:grey;
    background:white;
    text-decoration:none;
    }
    
    #nav li.current_page_item a:link,#nav li.current_page_item a:visited {
    background:white;
    color:orange;
    cursor:default;
    }
    
    #pic {
    border-bottom:2px solid white;
    
    overflow: hidden;
    float: none;
    clear: both;
    }
    
    #content h4 {
    display:none;
    }
    
    #footer {
    width:770px;
    padding-top:8px;
    border-top:none solid white;
    font-size:1em;
    text-transform:lowercase;
    letter-spacing:.3em;
    float:left;
    clear:both;
    }
    
    #sidebar ul li.widget ul {
    background:white;
    clear:both;
    padding:10px 0 7px 20px;
    }
    
    #sidebar ul li ul,#sidebar ul li ol {
    list-style:none;
    padding-left:20px;
    margin-bottom:12px;
    }
    
    .post_meta {
    display:none;
    }
    
    .page h2,.attachment h2 {
    font-size:0;
    }
    
    .post h2,.page h2,.attachment h2 {
    color:white;
    line-height:.5;
    padding-top:0;
    margin-bottom:10px;
    }
  • Unknown's avatar

    thanks a lot devblog!

    can anything be done with making the image from “welcome” and text from “testimonials” flush with the top of the sidebar word “storefront”? there’s some margin space but i am unable to identify the value that affects it…

  • Unknown's avatar

    I’m sorry but am not quite following what you ask… maybe because of the long weekend (and because I need more coffee).

  • Unknown's avatar

    It looks like it is the sidebar list formatting (but then what do I know)

  • Unknown's avatar

    Sorry – that’s not it. I was looking at something else

  • Unknown's avatar

    hey devblog, more coffee always helps, i’ve had some too so let’s see if i can explain myself better…

    i put in a red background to illustrate how the top of the photo image is flush with the bottom of the “storefront” lettering, while the top of the red background overshoots it a bit.

    how do i move the image as well as the text in “testimonials” to be even with the top of the “storefront” lettering?

  • Unknown's avatar

    Thank you! now I get it. When I get home, I’ll see what I can do to fix that.

  • Unknown's avatar

    BTW, I call it “alignment” (is not aligned with…, etc.); flushing to me means something else(it means “forcing” to clear up something from memory). :)

  • Unknown's avatar

    got it! alignment.

    so i used your code and notice that i would like to align the left margin of the photo with the “Home” in the navigation bar and…

    would like to align “Storefront” with the top of the photo margin.

    any way to get rid of the word “home” in the navigation bar?

    that would all make my world a perfect place, thanks!

  • Unknown's avatar

    Let me see what I can do.

    If it take awhile for me to post, just be patient. I’ll post something as soon as I can.

  • Unknown's avatar
  • Unknown's avatar

    I haven’t forgotten about you. I’ve been working on a big project at work that when I get home I just don’t want to see more code. I’ll take a look at it this weekend.

  • Unknown's avatar

    i understand and appreciate the help.

  • Unknown's avatar

    Sorry for the delay. Add the following code:

    below the #pic definition

    #content {
    padding: 0;
    margin: 0;
    width: 520px;
    }

    below teh #footer definition

    #sidebar {
    width: 200px;
    margin: 10px 0 0;
    }

    above the .post_meta definition

    .post {
    width: 520px;
    }

    modify these selectors definition with this code:

    .page h2,.attachment h2 {
    display: none;
    }

    That should aligned the picture with the title of your sidebar.

    HTH

  • Unknown's avatar

    tried these out but it brought back the original formatting. not pretty! i’ll play around with these above code. thanks for your help, hope you enjoy your weekend!

  • The topic ‘moving navigation bar in Pressrow theme’ is closed to new replies.