We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27436
    • 1 Posts
    I’m posting images of logos on a page and I can’t get to images to be next to each other without looking distorted. I’ve tried class="left"/"right" but the images don’t line up neatly. I want to avoid a long line of images right under each other. My goal is to have images line up like two columns next to each other.

    FYI: I’m very new to Modx, learning as I go, any suggestions would be great. Thanks.
      • 16183
      • 1,390 Posts
      sjdowntown , welcome to modx!

      modx has absolutely nothing to do with aligning your images. Are you using the visual editor and trying to align your images using it? class="left"/"right" is not the way align your images. You position your images using CSS (It is recommended to use CSS). Do a search in google for "align images css" and "float images css" or "position images css". These will through up all kinds of tutorials. Have a read through these, it will be helpful in the long run. Here’s a couple tutorials for starters...

      http://css.maxdesign.com.au/floatutorial/
      http://www.elated.com/articles/css-positioning/
      http://www.bigbaer.com/css_tutorials/css.float.html.tutorial.htm
      http://www.westciv.com/style_master/house/tutorials/quick/floating/index.html

      smiley

      /k
        • 31227
        • 198 Posts
        img.centered {
        	display: block;
        	margin-left: auto;
        	margin-right: auto;
        	}
        
        img.alignright {
        	padding: 4px;
        	margin: 0 0 2px 7px;
        	display: inline;
        	}
        
        img.alignleft {
        	padding: 4px;
        	margin: 0 7px 2px 0;
        	display: inline;
        	}
        
        .alignright {
        	float: right;
        	}
        
        .alignleft {
        	float: left
        	}
        	
        
        
        .caption {
           border: 1px solid #ddd;
           text-align: center;
           background-color: #f3f3f3;
           padding-top: 4px;
           margin: 10px;
           /* optional rounded corners for browsers that support it */
           -moz-border-radius: 3px;
           -khtml-border-radius: 3px;
           -webkit-border-radius: 3px;
           border-radius: 3px;
        }
        
        .caption img {
           margin: 0;
           padding: 0;
           border: 0 none;
        }
        
        .caption p.caption-text {
           font-size: 11px;
           line-height: 17px;
           padding: 0 4px 5px;
           margin: 0;
        }
        
          Pure MODx sites
          Viriko.ru & Viriko.com - Multilingual and running on 1 MODx