WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change default text alignment in posts (5 posts)

  1. isopropyl24
    Member
    Posted 5 years ago #

    Theme: Fog 1.0 by miloIIIIVII

    Hi, I noticed that my blog's default alignment is justify. I would like it to be left so I don't have to keep setting it for each post. =)

  2. Wendel Brume
    Member
    Posted 5 years ago #

    That will be set in your CSS Stylesheet - Dashboard>Design>Theme Editor>style.css

    You'll need to know some CSS, or post a link to your site and someone here might take a look. If you run Firefox, there's an add-on called Firebug that will inspect the relationship between the CSS and the HTML.

    Or you might ask the theme author.

  3. isopropyl24
    Member
    Posted 5 years ago #

    Yeah, I thought so, but my knowledge of CSS is very limited... :/

    How about I just post the CSS file here:

    /*
    Theme Name: Fog
    Theme URI: http://milo.peety-passion.com/category/themes/
    Description: A simple and clean three col fluid theme with an <a href="http://theundersigned.net/">intelligent PHP menu</a> by <a href="http://theundersigned.net/">The undersigned</a>.
    Version: 1.0
    Author: miloIIIIVII
    Author URI: http://milo.peety-passion.com/
    */
    body {margin: 0;padding: 0;background: #000 url(images/bg.jpg) no-repeat;font: normal 12px "Tahoma", Arial, Helvetica, sans-serif;color: #D7EEFD;}h2, h3, h4, h5, h6 {margin: 0;padding: 0;color: #fff;}h1, h1 a{font: 30px normal arial, Helvetica, Sans-Serif;float:right;color:#AEC1CD;font-variant: small-caps;padding:0 20px 0 0 ;margin:0;}h2 { font-size: 26px; }h3 { font-size: 18px;font-variant: small-caps;font-weight: normal;}h4 { font-size: 11px;font-family: arial, Helvetica, Sans-Serif;}p, ul, ol, blockquote {margin-top: 0;padding-top: 0;text-align: justify;line-height: 18px;}a {color: #AEC1CD;text-decoration: none;}a:hover {text-decoration: none;color: #fff;}a:visited {text-decoration: none;color: #ccc;}a img{ border:none; }#header {width: 70%;height: 300px;margin: 0 auto;background: transparent;}#topmenu {margin: 92px 0 0 0;padding:0;z-index:5;float:left;width:70%;}#topmenu a:link, #topmenu a:visited {color:#fff;}#topmenu a:hover {text-decoration:none;}#topmenu ul { list-style:none;margin:0 0 0 5px;padding:0;}#topmenu ul li a:link, #topmenu ul li a:visited {display:block;line-height:11px;padding:5px 15px 2px 5px;margin:0 5px 0 0;font-size:12px;border-bottom:0px solid #fff;text-transform:uppercase;}#topmenu ul li a:hover{ border-bottom:2px solid #333;}#topmenu ul li {display:block;float:left;position:relative; }#topmenu ul li ul {display:block;position:absolute;top:auto;list-style:none;margin:0;padding:0;visibility:hidden;border-top:1px solid #fff;width:220px;}#topmenu ul li:hover ul,#topmenu ul li.msiefix ul {visibility:visible;}#topmenu ul li ul li {position:relative;float:none;line-height:18px;color:#333;font-size:10px;_height:1px;}#topmenu ul li ul li a:link, #topmenu ul li ul li a:visited, #topmenu ul li ul li a {display:block;margin:0;line-height:15px;padding:2px 0 2px 10px;color:#fff;_height:1px;text-transform:none;border:0;background-color:#AEC1CD;}#topmenu ul li ul li a:hover {background-color:#333;border-top:1px solid #fff;}.col {margin: 0 0 20px 0;padding: 0 5px 15px 5px;background: url(images/post.gif) repeat-x left bottom;}.entry{clear:left; margin-top: 15px;padding:0 5px 15px 5px;background: url(images/post.gif) repeat-x left bottom;}.entry h4 {margin-bottom: 20px;font-size: 11px;font-weight: normal;}.entry h4 strong {font-weight: bold;color: #ccc;}#content {width: 70%;margin: 0px auto 0px;padding: 0 0 0 10px;}#l_sidebar {float: left;width: 17%;}#r_sidebar {float: right;width: 17%;}#main {float: left;width: 48%;margin: 10px 0 0 27px ;padding: 5px 5px 5px 5px;}#l_sidebar ul, #r_sidebar ul {margin-left: 0;padding-left: 0;list-style: none;}#l_sidebar li, #r_sidebar li {padding: 5px 0 7px 0;border-top: 1px solid #AEC1CD;}#l_sidebar li a, #r_sidebar li a{display: block;}#l_sidebar li a:hover, #r_sidebar li a:hover{background: #AEC1CD;color:#333;}#l_sidebar li.first, #r_sidebar li.first {border: none;}#l_sidebar h3, #r_sidebar h3 {font-size: 15px;}#footer {clear: both;width: 60%;margin: 0 auto;background: url(images/footer.gif) repeat-x left top;}#footer p {margin: 0;padding: 30px;text-align: center;}#wp-calendar {empty-cells: show;margin: 10px auto 0;width: 120px;}#wp-calendar #prev a {font-size: 9pt;}#wp-calendar a {text-decoration: none;}#wp-calendar caption {font: normal 1.0em 'Tahoma', Arial, Helvetica, Sans-Serif;text-align: center;}#wp-calendar th {font-style: normal;text-transform: capitalize;}#wp-calendar #next a {padding-right: 10px;text-align: right;}#wp-calendar #prev a {padding-left: 10px;text-align: left;}#wp-calendar a {display: block;}#wp-calendar caption {text-align: center;width: 100%;}#wp-calendar td {padding: 3px 0;text-align: center;}#wp-calendar td.pad:hover { /* Doesn't work in IE */background-color: #000; }img.center, a img.center {display: block;margin-left: auto;margin-right: auto;padding: 3px;}img.alignleft, a img.alignleft {float:left;margin: 4px 10px 5px 0;padding: 3px;}img.alignright, a img.alignright {float:right;margin: 4px 10px 5px 0;padding: 3px;}blockquote{margin: 0 0 0 10px;padding: 0 10px 0 10px;font-style: italic;color: #ccc;border-left: 5px solid #AEC1CD;}#blockquote p{margin: 0 0 10px 0;padding: 0;}#searchdiv {margin: 0;padding 0;}#searchform {margin: 0;padding: 0;overflow: hidden;}#s {width: 70%;background: transparent;color: #fff;font-size: 11px;font-family: Verdana, Helvetica, Sans-Serif;padding: 3px;margin: 8px 0 0 0;border: 1px solid #AEC1CD;}#textfield1 {width: 175px;background: transparent;border: none;}#submit1 {height: 19px;background: transparent;border: none;text-transform: lowercase;font-size: 10px;font-weight: bold;color: #fff;}.navigation {float: right;margin-top: 10px;margin-bottom: 60px;}
  4. Wendel Brume
    Member
    Posted 5 years ago #

    p, ul, ol, blockquote {margin-top: 0;padding-top: 0;text-align: justify;

    Make a backup copy if you're not sure what you are doing.

    Then remove 'text-align: justify;' under the 'p, ul, ol, blockquote' text definition. Don't remove anything else, I am just showing you the line of code where it comes from.

  5. isopropyl24
    Member
    Posted 5 years ago #

    Thank you, I was trying to replace that "justify" by typing in "left" instead. =)

Topic Closed

This topic has been closed to new replies.

About this Topic