[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.

06/11/2009 at 09:33PM PDT, ID: 24485604
[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!

8.6

My Jquery Tabs Issue with CSS

Asked by myselfrandhawa in Cascading Style Sheets (CSS), Jquery, Hypertext Markup Language (HTML)

Tags: CSS, jquery

Hi Experts. i am just putting all my stuf in jquery tabs, if i work with only jquery tabs (JS and CSS) files and load them on page. They just work beautifully. But i have load them into the another which already have the CSS which has many css ID's and Classses.

So when i run with just jquery provided css and js file it works perfect. Screenshot attached,

when i include my CSS to show in a page, its structure gets distorted.

my CSS templates will be shown here:
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:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
i am just listing the UL>LI as i think problem lies here:
 
start:
 
ul.pagination li	{
	display:block;
	float:left; 
	padding:0px 5px 0px 5px;
}	
 
ul.menu-nav {
	padding:0px 0px 0px 0px;
	margin-left:0px
}
ul.menu-nav li	{
	background:url(images/topmenu-separator.gif) no-repeat right 22px #286e92;
	display:block; 
	float:left; 
	margin:0px 0px 0px 0px; 
}
ul.menu-nav li a  {
	color:#fff; 
	font-weight:normal; 
	font-size:12px; 
	text-decoration:none; 
	display:block; 
	text-align:center;
	text-transform:uppercase;
	width:auto; 
	float:left;
}
ul.menu-nav li a span	{
	display:block; 
	padding:16px 30px 15px 30px;
}
 
/*-------------------hover----*/
 
ul.menu-nav li a:hover  {
	background:url(images/menu-right.gif) no-repeat right 0 #001b2f;
	border:none;
	color:#fff !important; 
	display:block; 
	float:left; 
	text-align:center; 
	text-decoration:none;
	width:auto;
}
ul.menu-nav li a:hover span	{
	background:url(images/menu-left.gif) no-repeat 0 0;
	display:block; 
	padding:16px 30px 15px 30px;
}
 
/*-------------------visited---*/
 
ul.menu-nav li a:visited{
	color:#fff; 
}
 
/*-------------------active----*/
 
ul.menu-nav li.active a {
	background:url(images/menu-right.gif) no-repeat right 0 #001b2f;
	border:none;
	color:#fff !important; 
	display:block; 
	float:left; 
	text-align:center; 
	text-decoration:none;
	width:auto;
}
ul.menu-nav li.active a span	{
	background:url(images/menu-left.gif) no-repeat 0 0;
	display:block; 
	padding:16px 30px 15px 30px;
}
ul {
	list-style:disc;
	margin:0px 0px 0px 15px;
}
/*-------------------visited---*/
 
ul.menu-nav li a:visited{
	color:#fff; 
}
 
 
 
NOW THE jquert TABS.css File:
 
/* Caution! Ensure accessibility in print and other media types... */
@media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
    .tabs-hide {
        display: none;
    }
}
 
/* Hide useless elements in print layouts... */
@media print {
    .tabs-nav {
        display: none;
    }
}
 
/* Skin */
.tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0 0 0 4px;
}
.tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
    display: block;
    clear: both;
    content: " ";
}
.tabs-nav li {
    float: left;
    margin: 0 0 0 1px;
    min-width: 84px; /* be nice to Opera */
}
.tabs-nav a, .tabs-nav a span {
    display: block;
    padding: 0 10px;
    background: url(tab.png) no-repeat;
}
.tabs-nav a {
    position: relative;
    top: 1px;
    z-index: 2;
    padding-left: 0;
    color: #27537a;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap; /* required in IE 6 */    
}
.tabs-nav .tabs-selected a {
    color: #000;
}
.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active {
    background-position: 100% -150px;
    outline: 0; /* prevent dotted border in Firefox */
}
.tabs-nav a, .tabs-nav .tabs-disabled a:hover, .tabs-nav .tabs-disabled a:focus, .tabs-nav .tabs-disabled a:active {
    background-position: 100% -100px;
}
.tabs-nav a span {
    width: 64px; /* IE 6 treats width as min-width */
    min-width: 64px;
    height: 18px; /* IE 6 treats height as min-height */
    min-height: 18px;
    padding-top: 6px;
    padding-right: 0;
}
*>.tabs-nav a span { /* hide from IE 6 */
    width: auto;
    height: auto;
}
.tabs-nav .tabs-selected a span {
    padding-top: 7px;
}
.tabs-nav .tabs-selected a span, .tabs-nav a:hover span, .tabs-nav a:focus span, .tabs-nav a:active span {
    background-position: 0 -50px;
}
.tabs-nav a span, .tabs-nav .tabs-disabled a:hover span, .tabs-nav .tabs-disabled a:focus span, .tabs-nav .tabs-disabled a:active span {
    background-position: 0 0;
}
.tabs-nav .tabs-selected a:link, .tabs-nav .tabs-selected a:visited, .tabs-nav .tabs-disabled a:link, .tabs-nav .tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
    cursor: text;
}
.tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active { /* @ Opera, we need to be explicit again here now... */
    cursor: pointer;
}
.tabs-nav .tabs-disabled {
    opacity: .4;
}
.tabs-container {
    border-top: 1px solid #97a5b0;
    padding: 1em 8px;
    background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
}
.tabs-loading em {
    padding: 0 0 0 20px;
    background: url(loading.gif) no-repeat 0 50%;
}
 
in my test page, i have something like this which runs only jquery code:
 
<script src="tabs/jquery-1.1.2.pack.js" type="text/javascript"></script>
<script src="tabs/jquery.tabs.pack.js" type="text/javascript"></script>
<link rel="stylesheet" href="tabs/jquery.tabs.css" type="text/css" media="print, projection, screen">
<script>
$(document).ready(function(){
	$('#contain').tabs({fxAutoHeight: true});
	$('#section-1').tabs({fxAutoHeight: true});
});
</script>
<style>
#contain {
	width: 600px;
}
.frmStep {
	border: 1px dashed #999999;
}
</style>
 
 
Jquery tabs Code Here
 
 
now if i run from my page i have to include my CSS file as well as:
 
<script src="tabs/jquery-1.1.2.pack.js" type="text/javascript"></script>
<script src="tabs/jquery.tabs.pack.js" type="text/javascript"></script>
<link rel="stylesheet" href="tabs/jquery.tabs.css" type="text/css" media="print, projection, screen">
</script>
$(document).ready(function(){
	$('#contain').tabs({fxAutoHeight: true});
	$('#section-1').tabs({fxAutoHeight: true});
});
</script>
<style>
#contain {
	width: 600px;
}
.frmStep {
	border: 1px dashed #999999;
}
</style>
<link rel="stylesheet" href="template.css" type="text/css" />
Attachments:
 
Image without MY CSS
Image without MY CSS
 
 
My CSS File included
My CSS File included
 
 
Keywords: My Jquery Tabs Issue with CSS
 
Loading Advertisement...
 
[+][-]06/11/09 10:54 PM, ID: 24609483

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.

 
[+][-]06/11/09 11:06 PM, ID: 24609534

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.

 
[+][-]06/11/09 11:07 PM, ID: 24609537

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.

 
[+][-]06/11/09 11:15 PM, ID: 24609587

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.

 
[+][-]06/12/09 12:17 AM, ID: 24609859

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.

 
[+][-]06/12/09 12:38 AM, ID: 24609969

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.

 
[+][-]06/12/09 01:50 AM, ID: 24610284

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.

 
[+][-]06/12/09 02:29 AM, ID: 24610467

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.

 
[+][-]06/12/09 03:22 AM, ID: 24610744

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.

 
[+][-]06/12/09 05:50 AM, ID: 24611636

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.

 
[+][-]06/12/09 06:32 AM, ID: 24612033

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.

 
[+][-]06/12/09 08:15 AM, ID: 24613104

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.

 
[+][-]06/13/09 02:34 AM, ID: 24618427

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), Jquery, Hypertext Markup Language (HTML)
Tags: CSS, jquery
Sign Up Now!
Solution Provided By: MuraliKanth
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20091028-EE-VQP-87 - Hierarchy / EE_QW_4_20070622