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

01/29/2009 at 11:40AM PST, ID: 24095993
[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.2

HTML Form:  How to Align Form Labels to Left Edge and Others

Asked by duta in Cascading Style Sheets (CSS)

Dear experts:

I would like to learn how to align form labels to the edge.
In the screen shot below, description label protruded to the left a little bit.

Description text area is not aligned with the left edge of textboxes above.

In addition, there is a little too much space between Registration heading and header image.

Finally, subscribe checkbox  needs to be moved to the left, and aligned with the left edge of textboxes above.

Thank you very much for your kind help.


duta

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:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
_________________________  HTML ____________________
 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
	<title> My Home Page</title>
	<meta http-equiv="Content-Language" content="en-us" />
 
	<meta http-equiv="imagetoolbar" content="no" />
	<meta name="MSSmartTagsPreventParsing" content="true" />
 
	<meta name="description" content="Description" />
	<meta name="page" content="" />
 
	<meta name=" design" content=" Designs" />
 
        <script type="text/javascript" src="/myjava.js"></script>
        
 
 
	<style type="text/css" media="all">@import "../site.css";</style>
 
 
</head>
 
<body  id ="about">
 
<div id="page-container"><br>
 
<div>
	<p class="navigation-bar">
	<span class="white">|</span> <a href="../index.html">Home</a> &nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;
	<span class="white">|</span> <a href="../projects/index.html">Projects</a> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
	<span class="white">|</span> <a href="../assignments/index.html">Assignments</a> &nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;
	<span class="white">|</span> <a href="../exams/index.html">Exams</a>
&nbsp; &nbsp;&nbsp;
	<span class="white">| </span> &nbsp; &nbsp;&nbsp; &nbsp;<a href="../form/index.html">Form</a>&nbsp;&nbsp; &nbsp;<span class="white">|
	</p>
</div>
 
<div id="header">
<div class = "padding">
 
<img src="../images/mount.jpg" width="760" height="120" border="0" alt="header image" />
</div>
</div>
 
 
 
 
	<div id="center">
 
<h2 class ="size" color ="#B00000"> &nbsp;&nbsp; &nbsp;&nbsp;  Registration Form </h2><br>
</div>
 
<div id="center">
 
<form name="registration" onsubmit="return validateFormOnSubmit(this)" method = "GET"
action="http://www.nytimes.com/">
<table summary="Demonstration form">
  <tbody>
  <tr>
    <td><label for="Name"> Name:</label></td><br>
    <td><input name="name" size="35" maxlength="50" type="text"  id = "name"></td>
  </tr>
  <tr>
    <td><label for="phone"> Phone:</label></td>
    <td><input name="phone" size="35" maxlength="25" type="text"  id = "phone"></td>
  </tr>
 
  <tr>
    <td><label for="email"> Email:</label></td>
    <td><input name="email" size="35" maxlength="30" type="text"  id = "email"></td>
  </tr>
 
  <tr>
    <td><label for="description"> Description </label></td>
    <td><TEXTAREA name="description" cols="25" rows="6" id = "description"></TEXTAREA></td>
  </tr>
 
 
  <tr>
    <td>
        <label for="subscribe"> Subscribe </label></td>
    <td><input name="subscribe" size="35" maxlength="50" type="checkbox"></td>
  </tr>
  <tr>
    <td> </td>
    <td><input name="Submit" value="Send" type="submit" ></td>
    <td> </td>
  </tr>
  </tbody>
</table>
</form>
 </div>
 
</body>
 
 
</html>
 
____________________________  site.css __________________________________
/*  To center this div.  This is done when margin is set to auto   */
 
 
#center {
        margin: 0 auto;
        text-align: center;
		
.size
{
	color: #B00000;
	font-size: 30px;
	text-decoration: none
}		
		
		
}
form {
        width: 300px;
        margin: 0 auto;
}
 
#page-container 
{
	width: 760px;
	margin: auto;
	
	background: beige;
	
}
 
 
 
#header 
{
	height: 170px;
	width:  760px
	
}
 
/*  To float sidebar-a div to right with width of 280 px  */
 
#sidebar-a 
{
    float: right;  
	width: 260px;
/*	background: darkgreen;  */
}
 
 
#sidebar-a .padding 
{
	padding: 25px;
	padding-top: 30px;
	padding-right: 0px;
}
 
 
#content 
{
	margin-right: 250px;
/*	background: green;  */
}
 
#content .padding 
{
	padding: 10px;
}
 
#footer 
{
	clear: both;
	font-family: Tahoma, Arial, Helvetica, Sans-serif;
	font-size: 11px;
	color: #B0B0B0;
	border-top: 1px solid #efefef;
	padding: 13px 25px;
	line-height: 18px;
}
 
 
#footer a 
{
	color: #B0B0B0 ;
	text-decoration: none;
}
 
#footer a:hover 
{
	color: #B0B0B0;
}
 
#footer #altnav 
{
	width: 350px;
	float: right;
	text-align: right;
}
 
 
html, body 
{
	margin: 0;
	padding: 0;
}
 
/*  Before adding body class (below), you must comment all color in other classes  */
 
body 
{
	font-family: Arial, Helvetica, Verdana, Sans-serif;
	font-size: 13px;
	letter-spacing: 0.05 em; 
	light-height: 18px;
}
 
body.about #header 
{
	height: 150px;
	background: #db6d16
		    url(sea.jpg) repeat;
}
 
/*  To add padding to separate blocks of content from each other   */
 
#content h2 
{
	margin: 0;
	padding: 0;
	padding-bottom: 15px;
}
 
#content p 
{
	margin: 0;
	padding: 0;
	padding-bottom: 15px;
}
 
 
 
 
/*  To create a little class called "hidden"   */
/*  Any element on the page will not show up   */
.hidden 
{
	display: none;
}
 
 
 
h1 
{
	margin: 0;
	padding: 0;
	float: right;
	margin-top: 47px;
	padding-right: 25px;
}
 
#content h2 
{
	margin: 0;
	padding: 0;
}
 
#content p 
{
	margin: 0;
	padding: 0;
}
 
p.navigation-bar 
{
background-color: 	#585858;
 
border: medium #ffffff solid;
 
padding: 10px;
 
text-align: center
}
 
/*    Affects anywhere   */
.white
 {
 color:#FFFFFF;
 }
 
p.navigation-bar a:link
{
	color: 	#FFFFFF ;
	font-size: 13px;
	text-decoration: none
}
 
p.navigation-bar a:visited
{
	color: 	#FFFFFF ;
	font-size: 14px;
	text-decoration: none
}
 
p.navigation-bar a:link 
{
	color: 	#FFFFFF ;
	font-size: 14px;
	text-decoration: none
}
 
p.navigation-bar a:hover 
{
background-color: #FFFF99;
font-size: 14px;
color: black;
 
text-decoration: none
}
 
 
/*   Affects  the entire body   */
/*   <body id = "about">         */
#about {
	background-image: url(images/rock.jpg);
	background-repeat: repeat;
}
_______________________________________________________________________
Attachments:
 
form align
form align
 
[+][-]01/29/09 11:58 AM, ID: 23501754

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.

 
[+][-]01/29/09 11:59 AM, ID: 23501783

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

Zone: Cascading Style Sheets (CSS)
Sign Up Now!
Solution Provided By: RickEpnet
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625