?
Solved

Funky Padding

Posted on 2014-08-26
3
Medium Priority
?
99 Views
Last Modified: 2014-08-26
I have a page with images that flip.  For some reason I have a grey area under each image and I can't seem to find where in the CSS this is being controlled.

The CSS
/*Initial CSS*/
		div.flip-3d {
		perspective: 1200px; width: 30%; float: left;
		}

		div.flip-3d figure {
		position: relative;
		transform-style: preserve-3d;
		transition: 1s transform;
		font-size: 1.6rem;
		}
		div.flip-3d figure img {
		width: 100%; height: Auto;
		}

		/*Captions*/
		div.flip-3d figure figcaption {
		position: absolute;
		width: 100%; height: 100%; top: 0;
		transform: rotateY(.5turn) translateZ(1px);
		/*background: rgba(255,255,255,0.9);*/
		background: rgba(255,255,255,0.9);
		text-align: center;
		padding-top: 45%;
		/*opacity: 0.6;*/
		transition: 1s;
		/*transition: 1s .5s opacity;*/
		}
		/*Rotations*/
		div.flip-3d:hover figure { transform: rotateY(.5turn); }
		div.flip-3d:hover figure figcaption { opacity: 1; }

Open in new window


the Link
http://www.davidschure.com/portfolio.html
0
Comment
Question by:DS928
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40286776
In div.flip-3d figure figcaption {} remove the padding
0
 

Author Closing Comment

by:DS928
ID: 40286811
That worked to straighten out the photo but now the text is no longer centered.
0
 
LVL 58

Expert Comment

by:Gary
ID: 40286856
Put the text in a span and add this css

#market span {
    display: inline-block;
    margin-top: 25%;
}

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question