?
Solved

Space before word-Urgent

Posted on 2003-11-28
9
Medium Priority
?
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 240 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

719 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