[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Vertically centering an image inside an element in Internet Explorer

Asked by HarpuaFSB in Cascading Style Sheets (CSS), Internet Explorer Web Browser, Hypertext Markup Language (HTML)

Tags: Internet Explorer, CSS, HTNL, HTML

This has been bothering me for sometime.

I have a site that displays thumbnails of photos and I vertically and horizontally center the thumbnails in whatever container they are in on whatever page the user is currently viewing.

Now, the v.centering works in FF, Safari, etc., etc. but doesn't ever work in IE and after futile Google searches and attempts at the work-arounds I found, I figured I'd try here.

How do I get the image to vertically center in IE?  The thumbnail image sizes will change but the container size will remain the same.

Below is the CSS and HTML from one of the pages in question, note that I've only included the HTML and CSS to replicate the issue.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
/* main page container */
#container
{
	position:relative;
	width:960px;
	background:#323232 url('../img/container.gif') 0 -60px no-repeat;
	border:2px solid #000000;
	border-width:2px 4px 2px 2px;
	margin:0 auto 0 auto;
	padding:147px 0 0 0;
}
/* content area and its main styles */
#content
{
	width:878px;
	margin:0 40px 14px 41px;
	/*min-height:200px;*/
	position:relative;
}
.clear
{
	clear:both;
	height:1px;
	font-size:1px;
}
/* viewing photos */
body.photos #content .photoThumbnails
{
	padding:5px 0 4px 0;
}
body.photos #content .photoThumbnails p
{
	width:200px;
	padding:7px 10px 7px 9px;
	float:left;
	margin:0;
	text-align:center;
	font-size:0.8em;
}
body.photos #content .photoThumbnails p span
{
	display:block;
	width:152px;
	height:152px;
	margin:0 auto 0 auto;
	text-align:center;
	padding-bottom:5px;
}
body.photos #content .photoThumbnails p span span
{
	display:table;
}
body.photos #content .photoThumbnails p span span span
{
	display:table-cell;
	vertical-align:middle;
}
body.photos #content .photoThumbnails a
{
	font-size:0.9em;
}
body.photos #content .photoThumbnails p a img
{
	border:1px solid #ffb92c;
	vertical-align:middle;
}
body.photos #content .photoThumbnails p a:hover img
{
	border:1px solid #ffd57f;
}
body.photos #content .photo
{
	padding:5px 0 4px 0;
}
body.photos #content .photo p
{
	text-align:center;
	margin:0 0 0.5em 0;
}
/*HTML*/
<body class="photos">
<div id="container">
	<div id="content">
        <div class="photoThumbnails">    			
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=1023"><img src="http://photos.findyourgeek.com/members/thumbnails/1/q5nx75e61dh80mqe4ucfbbx01d62l4jk.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=1025"><img src="http://photos.findyourgeek.com/members/thumbnails/1/m50l4eoc57jx6g68s5dvku40a8yi1815.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=1026"><img src="http://photos.findyourgeek.com/members/thumbnails/1/72n238aqc12h2730y0qq4joypz7yhpl5.gif" alt="Photo" /></a></span></span></span>
            </p>
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=1027"><img src="http://photos.findyourgeek.com/members/thumbnails/1/0vanf7i1078y7i7ni037rdh4axpdh0lo.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <div class="clear"></div>    				
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=3325"><img src="http://photos.findyourgeek.com/members/thumbnails/1/h0k8h6ic0w5kk2c18ncip74442q377df.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=4084"><img src="http://photos.findyourgeek.com/members/thumbnails/1/5zgsn2nq400g4j8ksm0fn655vd31f45y.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <p>
                <span><span><span><a href="/viewphotos.php?id=1&amp;pid=7416"><img src="http://photos.findyourgeek.com/members/thumbnails/1/4s52d2wnp754742as46h5lj47s71gvn6.jpg" alt="Photo" /></a></span></span></span>
            </p>
            <div class="clear"></div></div>    
        </div>
    </div>
</body>
[+][-]01/26/09 06:52 AM, ID: 23466999Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cascading Style Sheets (CSS), Internet Explorer Web Browser, Hypertext Markup Language (HTML)
Tags: Internet Explorer, CSS, HTNL, HTML
Sign Up Now!
Solution Provided By: HarpuaFSB
Participating Experts: 1
Solution Grade: A
 
[+][-]12/24/08 09:43 AM, ID: 23241146Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12/26/08 02:29 PM, ID: 23246624Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/26/08 03:08 PM, ID: 23246747Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/02/09 12:12 PM, ID: 23282049Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/05/09 05:35 AM, ID: 23295094Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/05/09 05:42 AM, ID: 23295161Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/05/09 05:45 AM, ID: 23295196Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/05/09 05:51 AM, ID: 23295242Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/26/09 07:38 AM, ID: 23467504Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625