Getting the nav bar to the right... help?

Discussion in 'CSS' started by D_C, Oct 19, 2008.

  1. #1
    I'm trying to learn wordpress's requirements for coding, and im still a little iffy on the css. What am I doing wrong? My navigation bar appears right under my post section. I want it to the right, like the usual ones.

    CSS:

    
    /*  
    Theme Name: Tutorial
    Theme URI: http://www.wpdesigner.com
    Description: This is my theme for a tutorial.
    Version: 1.0
    Author: Small Potato
    Author URI: http://www.wpdesigner.com/
    
    */
    
    body,h1,h2,h3,h4,h5,h6, blockuote,p{
    	margin: 0;
    	padding: 0;
    	}
    
    .post h2{
    	font-family: Georgia, Sans-serif;
    	font-size: 18px;
    	}
    
    .entry{
    	line-height: 18px;
    	}
    
    p.postmetadata{
    	border-top 1px solid #ccc;
    	margin: 10px 0 0 0;
    	}
    
    .navigatoin{
    	padding: 10px 0 0 0;
    	font-size:14px;
    	font-weight: bold;
    	line-height: 18px;
    	}
    
    
    body{
    	margin: 0;
    	font-family: Arial, Gelvetica, Georgia, Sans-serif;
    	font-size: 12px;
    	text-align: left;
    	vertical-align: top;
    	bacground: #ffffff;
    	color: #000000
    	}
    
    h1{
    	font-family: Georgia, Sans-serif;
    	font-size: 24px;
    	padding: 0 0 10px 0;
    	}
    
    a:link, a:visited{
    	text-decoration: underline;
    	color: #336699;
    	}
    
    a:hover{
    	text-decoration: none;
    	}
    
    p{
    	padding: 10px 0 0 0;
    	}
    
    #wrapper{
    	margin: 0 auto 0 auto;
    	width: 750px;
    	text-align: left;
    	}
    
    #header{
    	float: left;
    	width: 750px;
    	}
    
    #container{
    	float: left;
    	width: 500px;
    	}
    
    .sidebar{
    	float: left;
    	width: 240px;
    	background: #eeeeee;
    	margin: 0 0 0 10px;
    	
    	}
    
    .sidebar ul{
    	list-style-type: none;
    	margin: 0
    	padding: 0 10px 0 10px;
    	}
    
    .sidebar ul li{
    	padding: 10px 0 10px 0;
    	}
    
    .sidebar ul li h2{
    	font-family: Georgia, Sans-serif;
    	font-size 14px;
    	}
    
    .sidebar ul ul li{
    	padding: 0;
    	line-height: 24px;
    	}
    
    table#wp-calendar{
    	width: 100%;
    	}
    
    #footer{
    	clear: both;
    	float: left;
    	width: 750px;
    	padding: 10px;
    	}
    
    .comments-template{
    	margin: 10px 0 0;
    	border-top: 1px solid #ccc;
    	padding: 10px 0 0;
    	}
    
    .comments-template ol{
    	margin: 0;
    	padding: 0 0 15px;
    	list-style: none;
    	}
    
    .comments-template ol li{
    	margin: 10px 0 0;
    	line-height: 18px;
    	padding: 0 0 10px;
    	border-bottom: 1px solid #ccc;
    	}
    
    .comments-template h2, .comments-template h3{
    	font-family: Georgia, Sans-serif;
    	font-size: 16px;
    	}
    
    .commentmetadata{
    	font-size: 12px;
    	}
    
    .comments-template p.nocomments{
    	padding: 0;
    	}
    
    .comments-template textarea{
    	font-family: Arial, Helvetica, Georgia, Sans-serif;
    	font-size: 12px;
    	}
    
    
    #footer p{
    	line-height: 18px;
    	}
    	
    
    Code (markup):
     
    D_C, Oct 19, 2008 IP
  2. estetique69

    estetique69 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    estetique69, Oct 19, 2008 IP
  3. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #3
    Guess that tutorial I just came from? That one. I know all about how wordpress wants things expressed and how to code it, but the CSS is confusing me.
     
    D_C, Oct 19, 2008 IP
  4. estetique69

    estetique69 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    estetique69, Oct 19, 2008 IP
  5. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #5
    I understand it 100%, I read it nearly 5 times. I just confirmed for the second time by using the css reference he provided at the bottom of the post that his is exactly like mine.

    Still, mine does not work. Anyone have a clue?

    EDIT:

    It passed CSS validation too.
     
    D_C, Oct 19, 2008 IP
  6. estetique69

    estetique69 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Maybe there is something wrong with your browser or PHP installed on your machine ( if your testing it on your own PC ) :rolleyes:
     
    estetique69, Oct 19, 2008 IP
    D_C likes this.
  7. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #7
    Haha I spelled an ID wrong in my index file, stupid mistake. Thanks for your help!
     
    D_C, Oct 19, 2008 IP