Solved

Space before word-Urgent

Posted on 2003-11-28
9
263 Views
Last Modified: 2013-12-03
hi,
  If i want

Username  :__________
Password   :___________

i use this:
form  {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
      color: #000000;
      }

label {
      float: left;
      width:200px;
      clear:all;
      }

My problem is i need a bit of space bef username, what do i do?

       Username  :__________
       Password   :___________

Pls help, thanks
0
Comment
Question by:Jasbir21
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9837160
Put a   character inbetween.
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9837166
HTML ignores extra white-spaces. The only way to force an extra white-space is to use the   character.
0
 

Expert Comment

by:kiranmn
ID: 9837350
Create a 1px X 1px transparent gif in photoshop, insert it before username and password. Set the image's width to howmuch ever blank space you want. Note each   takes 6 bytes, if u want a lenghty blank space, transparent image method may be the solution.

Another method is put it in a table and set left-padding:

<table>
    <tr>
    <td  style="padding-left: 10px"> your form code here </td>
    </tr>
</table>

Hope it helps you,
Kiran Makam
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 7

Expert Comment

by:MaB
ID: 9837505
You can also use the style-sheet command:
margin-left: 10%;
this might, however, not work in all browsers. I use this in a web developed for IE 5.5 or later.

BR MaB
                  
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 60 total points
ID: 9837627
Absolutely no need for spaces, tables or images here.

<html>
<head>
<title>Hello</title>
<style type="text/css">
<!--
form  {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
      color: #000000;
      }

label {
      float: left;
      width:200px;
      clear:all;
      padding-left:30px;
      }
//-->
</style>
</head>
<body>
<form>
<label for="username">Username:</label> <input type="text" sixe="10" name="username"><br />
<label for="password">Password:</label> <input type="text" sixe="10" name="password"><br /></td>
</form>
</body>
</html>
0
 

Author Comment

by:Jasbir21
ID: 9837806
georgemarian,
  i got one question to ask pls, pls . when u use this font-family: Arial, Helvetica, sans-serif;
the combination of the three fonts is used ??, is it

.thank you so much, and God bless.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9837837
Here's how the multiple font listing works:

If the user has Arial installed, it will be used.
If the user "does not" have Arial installed, but they "do" have Helevtica, it will be used.
If the user has "neither" font installed, the default sans-serif font for their OS will be displayed.
0
 

Author Comment

by:Jasbir21
ID: 9837928
thank you so much for explanation, i needed that.

God bless
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9837955
My pleasure...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question