Advertisement

08.12.2008 at 06:13AM PDT, ID: 23641021
[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.3

CSS/HTML working in IE7, not in Firefox & Safari

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

Tags: ,

I have some CSS and HTML written and it formats perfectly in IE7 but not in Firefox and Safari.   This is really bugging me that I can't figure out why because usually it's the other way around.

Basically, all the CSS is being applied for IE7 but only some of it for FF & Safari.  Like hr's, padding, and some div breaks aren't being applied for the two.

Anyway, code snippets below and I've also attached the two GIF place holders used in the header.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:
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:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
CSS
/* global styles */
*
{
	margin:0;
	padding:0;
}
html, body, table
{
	font-size:100%;
}
body
{
	color:#000000;
	text-align:center;
	font-family:tahoma,arial,helvetica,sans-serif;
	font-size:12px;
	padding:0 0 0 0;
}
hr
{
	color:#000000;
	height:1px;
}
input, select, textarea
{
	font-size:1em;
	vertical-align:middle;
}
a img
{
	border:none;
}
.clear
{
	clear:both;
	height:1px;
	font-size:1px;
}
#container
{
	width:800px;
	margin-left:auto;
	margin-right:auto;
	text-align:left;
}
/* header */
#development
{
	text-align:center;
	font-family:courier new;
	font-weight:bold;
	font-size:14px;
	padding-top:10px;
}
#development .highlight 
{
	color:#ffffff;
	background-color:#000000;
}
#header
{
	padding:10px 0 10px 0;
}
#header .logo
{
	float:left;
}
#header .randomPics
{
	float:right;
}
/* content area and its main styles */
#content
{
	width:800px;
	margin:0 auto 0 auto;
	position:relative;
}
#content a:link, #content a:visited
{
	color:#000000;
}
#content a:hover
{
	color:#ee1920;
}
#content .center
{
	display:block;
	text-align:center;
}
#content p.buttons
{
	height:auto;
}
#content p.buttons .right
{
	float:right;
}
#content p.buttons .left
{
	float:left;
}
#content p.buttons input
{
	width:75px;
	height:22px;
	font-size:11px;
	font-family:tahoma,arial,helvetica,sans-serif;
}
#content p.buttons .spinner
{
	display:none;
	float:right;
}
#content .login input
{
	font-family:tahoma,arial,helvetica,sans-serif;
	font-size:12px;
	width:150px;
}
/* tables */
#content table
{
	border-collapse:collapse;
	margin:0 auto 0.8em auto;
	width:100%;
	position:relative;
}
#content th
{
	text-align:right;
	font-weight:bold;
}
#content td
{
	margin-right:auto;
}
#content tr.alt th, #content tr.alt td
{
	background-color:#ffcc00;
}
#content table.login
{
	width:auto;
	margin:0 auto 0.8em auto;
	border:none;
}
#content table.login th, #content table.login td
{
	background:none;
	border:none;
	font-size:12px;
}
#content table.login td
{
	padding:5px 0 5px 11px;
}
#content table.login th
{
	text-align:right;
	padding:6px 12px 4px 0;
	border-right:1px solid #505050;
}
#content table.login tr.error th
{
	color:#ee1920;
}
/* menu */
#menu
{
	padding-top:10px;
}
#menu .nav
{
	float:left;
}
#menu .icons
{
	float:right;
}
/* error/warning/info alerts */
#content ul#alerts
{
	list-style:none;
	list-style-type:none;
	margin:0 0 0 0;
}
#content ul#alerts li
{
	margin:0;
	padding:2px 0 8px 0;
	text-align:center;
	font-weight:bold;
}
#content ul#alerts li.error
{
	color:#ee1920;
}
#content ul#alerts li.confirmation
{
	color:#029930;
}
#content ul#alerts li.warning
{
	color:#ff9922;
}
#content ul#alerts li.information
{
	color:#0546a8;
}
 
HTML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>Login</title>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<!--[if gte IE 6]><!-->
		<link rel="stylesheet" type="text/css" href="screen.css" media="screen,projection,print" />
    <!--<![endif]-->
</head>
<body>
<script language="javascript" type="text/javascript">
<!--
	function submitform()
	{
	if (validateform())
		{
		document.getElementById("spinner").style.display = "block";
		document.postform.btnLogin.style.visibility = "hidden";
		document.getElementById("spinner").innerHTML = "<img src='images/spinner.gif'>"; 
		}
	else
		{ return false; }
	}
	function validateform()
	{
	document.postform.login.disabled = true;
	var isformcomplete = true;
	message = "The following tasks need to be completed     \nbefore logging in:\n\n";
	if (document.postform.userid.value == '')
	   	{ 
	   	message += "* Enter your user ID\n";
		isformcomplete = false;
	   	}
	if (document.postform.password.value == '')
	   	{ 
	   	message += "* Enter your password\n";
		isformcomplete = false; 
	   	}
	if (isformcomplete == false)
	  	{
	   	alert(message);
	   	document.postform.login.disabled = false;
	  	}
	return isformcomplete
	}
//-->
</script>
<div id="container">
    <div id="development">
        WEB SERVER:&nbsp;
        <span class="highlight">&nbsp;DEV&nbsp;</span>	
        &nbsp;SQL SERVER:&nbsp;
        <span class="highlight">&nbsp;DEV&nbsp;</span>
        <hr />
    </div>
    <div id="header">
        <span class="logo"><img src="logo.gif" /></span>
        <span class="randomPics"><img src="header.gif" /></span>
    </div>
	<div id="content">
        <div id="menu">
        	<span class="nav">
            	<a href="/">Start</a>&nbsp;&gt;
                Login
           	</span>
           	<span class="icons"><strong>System v1.0</strong></span>
            <br />
            <hr />
       	</div>
        <form name="postform" method="post" onSubmit="return submitform();">
        <input type="hidden" name="fromsubmit" value="true" />
        <span class="center">
            <table class="login">
                <tr >
                    <th>User ID</th>
                    <td><input type="text" name="userid" value="ttorrillo" /></td>
                </tr>
                <tr >
                    <th>Password</th>
                    <td><input type="password" name="password" /></td>
                </tr>
            </table>
        </span>
        <hr />
        <p class="buttons">
            <span class="spinner" id="spinner"><img src="/vp_new/_assets/img/spinner.gif"></span>     
            <span class="right"><input type="submit" name="login" value="LOGIN" /></span>
        </p>
       	<div class="clear"></div>
        <hr />
      	</form>
	</div>
</div>
</body>
</html>
Attachments:
 
Logo.gif
Logo.gif
 
 
Header.gif
Header.gif
 
[+][-]08.12.2008 at 06:43AM PDT, ID: 22212963

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

Zones: Cascading Style Sheets (CSS), Hypertext Markup Language (HTML), Firefox Web Browser
Tags: CSS, HTML, IE7, Firefox, Safari
Sign Up Now!
Solution Provided By: mandrew182
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.12.2008 at 07:01AM PDT, ID: 22213148

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.

 
[+][-]08.12.2008 at 08:31AM PDT, ID: 22214172

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