1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Query - Implement justified text in my wp content

Discussion in 'Content Management' started by jamuna, Nov 15, 2008.

  1. #1
    Can anyone help me to implement 'justify' text in wordpress post content.?
    Indian broadbandweb

    Code is given below.


    /* RED Color scheme inspiration with thanks from - Cameron Moll's http://authenticjobs.com/ */
    
    body {
    	background: #443b34 url(images/body-bg_red.png) repeat;
    	color: #555;
    }
    img {
    	border: none;
    	background: none;
    }
    hr {
    	color: #fff;
    	border-top: 1px dotted #D3D3D3;
    }
    blockquote{
    	background: url(images/quote.gif) no-repeat;
    	color: #666666;
    	}
    /*************************************
    	Links
    **************************************/
    a {
    	color: #b30000;
    	}
    	
    a:hover{
    	color: #333;
    	}
    /*************************************
    	Headings
    **************************************/
    h1, h3 {
    	color: #570e00;
    	}
    h1 a, h3 a{
    	color: #333;
    }
    h1 a:hover, h3 a:hover {
    	color: #b30000;
    }
    h2 {
    	color: #570e00;
    }
    	
    h2 a{
    	color: #570e00;
    }
    h2 a:hover {
    	color: #333;
    	}
    h3 a{
    	color: #333;
    }
    #sidebar h2 {
    	color: #b30000;
    }
    #sidebar #popular h2 {
    	color: #333;
    }
    h6 {
    	color: #000;
    }
    /*************************************
    	Header
    **************************************/
    #header { 
    	background:url(images/headerbg_red.png) repeat-x;}
    #header-in .title a {
    	color: #e8e5cc;
    }
    #header-in .title a:hover {
    	color: #FFF;
    }
    #header-in .description {
    	color: #d27318;
    }
    /*************************************
    	Subscribe form 
    **************************************/
    .subscribe {
    	background:url(images/subscribebg_red.png) bottom left no-repeat;
    }
    	
    .subscribeform p { 
    	color:#fff; }
    	
    .subscribeform .input{
    	 background:url(images/sinputbg.png) no-repeat;
    	 border:none;} 
    .sbutton {
    	background:url(images/b_subscribebg_red.png) no-repeat;
    	border:none;
    	}
    
     
    /*************************************
    	Top Search Form
    **************************************/
    /*Search box Rounded Corner start */
    #xsnazzy {background: transparent; }
    .xtop, .xbottom { background:transparent; }
    .xb2, .xb3, .xb4 {background:#f4f3e8; border-left:1px solid #bdbcb6; border-right:1px solid #bdbcb6;}
    .xb1 {background:#bdbcb6;}
    .xb2 {border-width:0 2px;}
    .xboxcontent {background:#f4f3e8; border:0 solid #bdbcb6; border-width:0 1px;}
    /*Search box Rounded Corner End */
    #searchform .s {
    	background: #fff;
    	color: #333;
    	border:1px solid #443b34;
    }
    
    
    ul.tablist { 	
    	color:#333;}
    ul.tablist li  { 
    	border-bottom:1px dotted #959595; 
    	color: #333;
    	background:url(images/bullet-arrow3.gif) no-repeat;
    	background-position:3px 8px;}
    ul.tablist li a         { 
    	color: #333; 
    }
    ul.tablist li a:hover 	{ 
    	color: #b30000;}
    
    
    
     
    #searchform .s {
    	border: none;
    	background: #fff;
    	color: #333;
    	border:1px solid #443b34;
    }
    
    
    #nav li {
    	background: url(images/nav_red.png) top left no-repeat;
    	}
    #nav ul li:hover, #nav ul li.hover, #nav ul li.current_page_item {
    	background: url(images/nav-active_red.png) top left no-repeat; color: #ff4e2c ;
    	}
    #nav ul li:hover a, #nav ul li.hover a, #nav ul li.current_page_item a {
    	color: #fff;	
    	background: url(images/nav-active_red.png) top right no-repeat;
    	}
    #nav ul li a {
    	color: #560e00;
    	background: url(images/nav_red.png) top right no-repeat;
    	}
    #nav ul li a:hover {
    	color: #fff ;
    	background: url(images/nav-active_red.png) top right no-repeat;
    	}
    
    /*************************************
    	Main Container
    **************************************/
    #container { 
    	background:url(images/container-cbg_red.gif) top repeat-y;
    	border: 0px solid black;
    	}
    .container-top {
    	background:url(images/container-bg_red.gif) top left no-repeat;
    }
    .container-bottom {
    	background: url(images/container-bottom_red.gif) no-repeat;
    }
    /*************************************
    	Content
    **************************************/
    #content .post-meta-top {
    	color: #8E8F91;
    }
    #content .post-bottom {
    	border-top: 1px solid #DFE3E6;
    	border-bottom: 1px solid #DFE3E6;
    	color: #535353;
    }
    .post-bottom a {
    	color: #535353;
    }
    .cat span {
    	background: url(images/i_categories.png) 0px 3px no-repeat;
    }
    .comm {
    	background:url(images/comment_black.png) no-repeat;
    }
    .auth span {
    	background: url(images/i_author.png) 0px 1px no-repeat;
    }
    
    .nav-next	{ background:url(images/arrow-right.gif) no-repeat right; }
    .nav-previous { background:url(images/arrow-left.gif) no-repeat left; }
    
    /*************************************
    **************************************
    	Comments
    **************************************
    **************************************/
    
    .textarea { border:1px solid #ababab;}
    .Cbutton { 
    	border:none; 
    	background:#434343;
    	color:#fff;}
    
    
    /*	Comments	*/
    
    .comment-body {
    	background:url(images/quote.png) no-repeat left top;
    	background-position:0 0px;
    }
    .comment-metadata {
    	background: #fff;
    	color: #ca5433;
    }
    .comment-metadata a{
    	color: #333333;
    }
    .comment-metadata a:hover {
    	color: #FF8800;
    }
    .authorcomment {
    	border-bottom:1px solid #ccc;
    	overflow: hidden;
    }
    .authorcomment .comment-body {
    	border: none;	
    }
    .authorcomment .comment-metadata {
    	background: #fff;
    	color: #333333;
    }
    .authorcomment .comment-metadata a {
    	color: #b30000;
    }
    .authorcomment .comment-metadata a:hover {
    	color: #333;
    }
    
    PHP:

     
    jamuna, Nov 15, 2008 IP