Product Customization

Support Area Forums Elite Product Customization

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://www.igoldd.com/24-carat-gold-iphone-6s/
  • Author
    Posts
  • #32644
    Rama Devi
    Participant

    1) Look at the Snapshot below (Desktop Version). I want to Increase the Gap between the Product Image, Product Name & Pricing. You gave me the below code earlier. Should I make any changes to this?

    @media only screen and (min-width: 768px) {

    ul.products li.product {
    position: relative;
    text-align: center;
    padding-top: 50px !important;
    }

    ul.products li.product h3 {
    font-size: 35px !important;
    position: absolute;
    top: 0;
    width: 100%;
    padding: 0 5px !important;
    }

    }

    @media only screen and (max-width: 767px) {

    ul.products li.product {
    position: relative;
    text-align: center;
    padding-top: 50px !important;
    }

    ul.products li.product h3 {
    font-size: 25px !important;
    position: absolute;
    top: 0;
    width: 100%;
    padding-left: 0;
    padding-left: 0;
    padding-bottom: 5px;
    padding-top: 60px;
    }

    }

    #32645
    Rama Devi
    Participant

    Please Look at the Snapshot below (Desktop Version)

    Attachments:
    #32654
    Bill Robbins
    Moderator

    This is the section that affects the desktop only:

    
    @media only screen and (min-width: 768px) {
    
    	ul.products li.product {
    		position: relative;
    		text-align: center;
    		padding-top: 50px !important;
    	}
    	
    	ul.products li.product h3 {
    		font-size: 35px !important;
    		position: absolute;
    		top: 0;
    		width: 100%;
    		padding: 0 5px !important;
    	}
    
    }
    

    The (min-width: 768px) indicates that it will affect browser windows that are 768 pixels wide and larger only.

    The padding-top: 50px !important; sets how far the image is from the top. You can increase that number to give more room between the title and the image.

    Here’s that code block with styling added to also change the space below the image too:

    
    @media only screen and (min-width: 768px) {
    
    	ul.products li.product {
    		position: relative;
    		text-align: center;
    		padding-top: 50px !important;
    	}
    	
    	ul.products li.product h3 {
    		font-size: 35px !important;
    		position: absolute;
    		top: 0;
    		width: 100%;
    		padding: 0 5px !important;
    	}
    	
    	.woocommerce ul.products li.product img.attachment-shop_catalog {
    		margin-bottom: 30px;
    	}
    
    }
    

    The margin-bottom: 30px; sets distance between the image and the content below it. Yo can adjust it to fit your needs.

    Take care,
    Bill

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Product Customization’ is closed to new replies.