Advertisement

05.30.2008 at 09:55AM PDT, ID: 23445210
[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!

9.8

CSS - issues with tyring to use a div as a tab top border with 1 pixel space each side..

Asked by glumlun in Cascading Style Sheets (CSS)

Tags: ,

hi

please see attached code in FF. works fine.
IE7 - is missing the top boders from the tabs. and ie6 displays the top border but the tabs are 100% in width and the edging div does not collapse. i think if i was to add a 1 pixel image in to the edging div this would fix this.  but id rather not do that.

the big issue is with the top border on the tabs.
i can fix this by adding a width to the li items within the tabs div,  but these need to be flexible.

any help appreciated.Start Free Trial
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:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
 
<style>
 
body {
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
 
#header {
	background-color: #D8D8D8;
	padding: 4px 4px 0px 4px;
	background-image: url(header_border_bottom.gif);
	background-repeat: repeat-x;
	background-position: bottom;
	height: 72px;
}
 
#header #panels, #header #tabs {
	min-width: 1015px;
}
 
#header #panels ul, #header #tabs ul
{
	margin: 0px;
	padding: 0px;
}
 
 
#header #panels ul li, #header #tabs ul li
{
	float: left;
	display: inline;
	list-style-type: none;
	padding-right: 4px;
}
 
#header #panels li.panelListOff {
	filter:alpha(opacity=60);
	-moz-opacity:.60;
	opacity:.60;
}
 
#header #panels li.panelListON {
	filter:alpha(opacity=100);   
	-moz-opacity: 1.0;   
	opacity: 1.0;
}
 
#header #panels li .inner {
	background-color: #FFF;
	border-left: 1px solid #B8B8B8;
	border-right: 1px solid #B8B8B8;
	height: 52px;
}
 
.edging {
	margin-left:1px;
	margin-right:1px;
	height: 1px;
	background-color: #B8B8B8;
}
 
#header #panels li.module {
	width: 280px;
}
 
#header #panels li.tools {
	width: 200px;
}
 
#header #panels li.other {
	width: 140px;
}
 
/*
#header #tabs li {
	width: 140px;
}
*/
 
 
#header #tabs li .inner {
	background-color: #FFF;
	border-left: 1px solid #B8B8B8;
	border-right: 1px solid #B8B8B8;
	height: 15px;
	padding: 0 20px 0 20px;
}
 
</style>
 
</head>
 
<body>
	<div id="header">
		<div id="panels">
			<ul>
			  <li class="module">
			  	 <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
				 <div class="edging"></div>
			  </li>
			  <li class="tools panelListOff" onmouseover="this.className='tools panelListOn'" onmouseout="this.className='tools panelListOff'">
			  	 <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
				 <div class="edging"></div>
			  </li>
			  <li class="other panelListOff" onmouseover="this.className='other panelListOn'" onmouseout="this.className='other panelListOff'">
			  	 <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
				 <div class="edging"></div>
			  </li>
			  <li class="other panelListOff" onmouseover="this.className='other panelListOn'" onmouseout="this.className='other panelListOff'">
			  	 <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
				 <div class="edging"></div>
			  </li>
			  <li class="other panelListOff" onmouseover="this.className='other panelListOn'" onmouseout="this.className='other panelListOff'">
			  	 <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
				 <div class="edging"></div>
			  </li>
			</ul>
		</div>
		
		<br /><br /><br /><br /><br /><br /><br /><br />
 
		<div id="tabs">
			<ul>
			  <li class="module">
			  <div class="edging"></div>
				  	<div class="inner">
						panel contents
					</div>
			  </li>
			  <li class="module">
			  	    <div class="edging"></div>
				  	<div class="inner">
						tab
					</div>
			  </li>
			  <li class="module">
			  	    <div class="edging"></div>
				  	<div class="inner">
						tab
					</div>
			  </li>
			  <li class="module">
			  	    <div class="edging"></div>
				  	<div class="inner">
						tab
					</div>
			  </li>
			</ul>
		</div>
	</div>		 
</body>
</html>
[+][-]05.30.2008 at 12:44PM PDT, ID: 21680838

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 04:43AM PDT, ID: 21691105

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 03:04PM PDT, ID: 21696082

View this solution now by starting your 7-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

Zone: Cascading Style Sheets (CSS)
Tags: CSS HTML, IE7 IE6 FF
Sign Up Now!
Solution Provided By: Kravimir
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.03.2008 at 02:12AM PDT, ID: 21698561

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628