• yo, just looking for some quick help…
    On a page, I want the images to stack up and align perfectly together… They do so in the original EDIT PAGE but when you look at it on a clean tab they have a few spaces between each image.. Whats the code for this… I checked in the html for the page post and there is nothing between each …<arel..” code causing it so obviously I need some code to put there. Thanks a bunch

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter krstak

    (@krstak)

    by stacking… I mean one above the other

    there might be padding or ‘margin’ in the style of the images, or of the loink, or the images may be wrapped in a paragrph tag, or ….;

    look into style.css or any other css file of the theme for clues.

    but without a link to your site, there is not much more to help.

    Thread Starter krstak

    (@krstak)

    https://www.creativegiantsco.com/?page_id=2

    theres the page link… nothing else is finished but I wanted to see how the contact page might look..

    style.css

    /*
    Theme Name: F8 Lite
    Theme URI: https://graphpaperpress.com/2008/06/02/f8-lite-portfolio-theme-for-wordpress/
    Description: A photography & multimedia portfolio theme for WordPress
    Version: 1.3
    Tags: photography, one-column, minimal, widgets, white, portfolio
    Author: Thad Allender
    Author URI: https://graphpaperpress.com
    License: GPL
    */
    
    /*
        Copyright 2008 Graph Paper Press
    
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program.  If not, see https://www.gnu.org/licenses/.
    
    */
    
    /************************* DEFAULT STYLES ***************************/
    body {color:#222;background:#fff;font-family:"helvetica", Arial, sans-serif;}
    .container-inner {width:950px; margin:0 auto;}
    h1,h2,h3,h4,h5,h6 {color:#000;font-family:"helvetica", Arial, sans-serif;}
    h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {color:#ff0000;}
    a {color:#ff0000;text-decoration:none;}
    a:hover, a:focus {color:#222222;}
    
    /************************* RSS ************************************/
    #inside-subscribe {float:right;color:#666;}
    #inside-subscribe a {color:#666;}
    #inside-subscribe a:hover {color:#000;}
    .feed {margin-left: 3px;padding: 0 0 0 19px;background: url("images/rss.png") no-repeat 0 50%;color:#eee;}
    
    #inside-widgets {margin:4em 0;}
    #inside-widgets h6.widgettitle {color:#222;border-bottom:1px solid #ccc;text-transform:uppercase;padding:1em .3em .5em;}
    #inside-widgets ul{list-style:none;margin:0 0 1.6em 0;font-size:1em;}
    #inside-widgets ul li a,ul.txt li{color:#222;height:1%;background:url(images/li.png) no-repeat  0;line-height:1.2em;border-bottom:1px solid #ccc;display:block;padding:6px 0 6px 8px;}
    #inside-widgets ul li a:hover,ul.txt li:hover{color:#fff;background-position:1px 0.8em;background: #222 url(images/li-white.png) no-repeat 3px 10px;}
    #inside-widgets ul li a span,ul.txt li,h4 a span{color:#696455;}
    #inside-widgets ul li.active a{cursor:default;color:white;}
    #inside-widgets ul ul{margin:0;list-style:none;}
    
    /************************* MASTHEAD ************************************/
    .pusher {cursor:pointer;}
    #masthead { background: padding: 0;border-top:5px solid #000;}
    #masthead h4 {margin:1em 0;font-weight: bold; text-transform: uppercase;width:100%;}
    #masthead h4 a { color: #333; text-decoration: none; float:left;}
    #masthead h4 a:hover {color:#000;}
    #masthead span {color:#666;font-size:.8em;text-transform:lowercase;font-weight:normal;}
    #masthead span.description {float:left;margin-left: 20px;padding-top:.2em;}
    #masthead span.contact {float:right;line-height:1em;}
    #masthead span.contact a:hover {color:#000;}
    
    #navcontainer {padding: 0;font-family:"helvetica", Helvetica, Arial, sans-serif;text-align: right;background-color: #000;height:40px;margin:0 0 1em;}
    #navlist {height:40px}
    #navcontainer p	{padding: 7px 7px 0px;font-family:"helvetica", Helvetica, Arial, sans-serif;font-size: 1em;font-weight: bold;}
    /* to stretch the container div to contain floated list */
    #navcontainer:after {content: ".";display: block;line-height: 1px;font-size: 1px;color: transparent;clear: both;}
    #navcontainer img {margin: 0;padding: 0;}
    ul#navlist {list-style: none;padding: 0;margin: 0px;background-color: #000;font-size: 1em;}
    ul#navlist li {text-align: left;float: left;height: 40px;margin: 0;background: #000;border-right:1px solid #ccc;padding: 0;}
    ul#navlist li { width: 105px; voice-family: "\"}\""; voice-family:inherit; width: 119px;}
    html>body ul#navlist li { width: 119px; }
    ul#navlist li a {display: block;padding: 7px 5px 25px 7px;color: #eee;font-size: 11px;text-decoration: none;height: 1%;height:40px;text-shadow: 0 0 0 #000;}
    #navcontainer>ul#navlist li a {width: auto;height: auto;height: 8px}
    ul#navlist li#active a {background: #eee;color: #<?php echo $ss_nav_hover_color; ?>;}
    ul#navlist li a:hover,ul#navlist li#active a:hover {color: #fff;background-color: #222;}
    ul#navlist li.home	{border-left: none;}
    ul#navlist li#empty	{width: 120px;}
    
    /********************************POSTS ************************* */
    .post {display:block;clear:both;}
    .postmetadata {color:#ccc;}
    .postmetadata a {color:#ccc;}
    .postmetadata a:hover {color:#000;}
    .underlined {border-bottom:1px solid #000;}
    h6.underlined {margin:0 0 1em;}
    
    .nav-image-left, .nav-image-up, .nav-image-right {text-align:center;float:left;width:25px;margin:0 10px 0 2px;}
    .nav-image-left a, .nav-image-up a, .nav-image-right a {background:#eee;padding:2px 48% 2px 48%;text-decoration:none;color:#000;}
    .nav-image-left a:hover, .nav-image-up a:hover, .nav-image-right a:hover {background:#000;color:#fff;}
    
    .nav {background:#eee;margin:0 0 1em 0;}
    .nav:hover {background:#ccc;}
    .prev a, .next a {color:#000;text-decoration:none;padding:.2em 1em;}
    
    .nav-interior {margin:0;padding:0;clear:both;display:inline;}
    .nav-interior .next {color:#000;text-decoration:none;float:right;}
    .nav-interior .prev {color:#000;text-decoration:none;float:left;}
    
    /* ************************* FOOTER *********************** */
    #footer {margin:1em 0 0;background:#fff;padding:1em;}
    #footer p {text-align:center;color:#ccc;}
    #footer a {color:#666;}
    #footer a:hover {color:#333;}
    
    /* ************************ SLIDESHOW ********************************/
    ul#portfolio {padding:0;list-style:none;margin:0 0 1em;overflow:hidden;max-height:435px;}
    ul#portfolio li {list-style:none;padding:0;}
    ul#portfolio li h4 {margin: 0 0 .5em 0;text-transform:uppercase;padding:0 16px;}
    ul#portfolio li img {width:950px;text-align:center;margin:0;}
    
    /* **************************** FLOATS & IMAGES ***************************** */
    .right { float: right; }
    .left { float: left; }
    .middle {margin: 0 auto;float:left;}
    .clear { clear: both; }
    img.centered{display: block;margin-left: auto;margin-right: auto;}
    img.alignright{padding: 4px;margin: 3px 0 2px 10px;display: inline;}
    img.alignleft{padding: 4px;margin: 3px 10px 2px 0;display: inline;}
    .alignleft{float: left;}
    .alignright{float: right;}
    .aligncenter,div.aligncenter {display: block;margin-left: auto;margin-right: auto;}
    .wp-caption {border: 1px solid #ddd;text-align: center;background-color: #f3f3f3;padding-top: 4px;margin: 10px;-moz-border-radius: 3px;-khtml-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;}
    .wp-caption img {margin: 0;padding: 0;border: 0 none;}
    .wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px;padding: 0 4px 5px;margin: 0;}
    .thumbnail {width:310px;height:150px;background:#eee url('images/x.png') no-repeat center;max-width:310px;max-height:150px;overflow:hidden;}
    
    /***************************** ARCHIVE *****************************/
    h6.archive-header {display:block;border-bottom:#000 1px solid;margin:0 0 .5em;}
    .archive-stack {width:100%; height:1em;}
    
    /***************************** ETC *****************************/
    #filters {clear: both;height: 2em;margin-bottom: 1em;}
    #filters li {float: left;margin-right: 2em;}
    .prev {}
    .next {}
    /* remember to define focus styles! */
    :focus {outline: 0;}
    
    /***************************** SEARCH *****************************/
    #search {float: right;margin:15px 0 0;}
    #search #s {background: transparent url('images/search.gif') 0px center no-repeat;color: #666;font-size: 0.9em;margin:0 0 0 10px;padding: 2px 0 2px 17px;width: 100px;}
    #search input {border:1px solid #222;}
    #search #s:hover {color: #666;}
    .search-excerpt {margin: 0;}
    
    /***************** COMMENTS ********************/
    h3#comments{margin: 10px 0 0;padding: 20px 10px;background: #f5f5f5;}
    h3#comments span.comments-subscribe {float:right;font-size:.7em;margin-left: 3px;padding: 0 0 0 19px;background: url("images/rss.png") no-repeat 0 50%;color:#cccccc;}
    h3#respond{margin: 10px 0 0;padding: 20px 10px;background: #f5f5f5;}
    ol.commentlist{list-style-type: none;margin: 0;padding: 0;border-top: 5px solid #eee;}
    ol.commentlist li strong{padding-left:1em;}
    ol.commentlist li .comment-entry{margin: -135px 0 0;border-bottom: 5px solid #eee;padding: 5px 150px 0;line-height: 2em;}
    ol.commentlist li .avatar{border:1px solid #eee;padding:1em;margin:2em 1em 1em 0;}
    #commentform{margin: 0 0 7px;padding: 30px 150px 6px;border-top: 10px solid #fff;background: #eee;}

    find this line
    p img {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
    in screen.css of your theme;

    change it to:
    p img {float:left;margin:0em 1.5em 0em 0;padding:0;}

    https://www.w3schools.com/CSS/css_margin.asp

    this will obviously also effect the margins in all other images in a paragraph.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images Touching Perfectly’ is closed to new replies.