?
Solved

Space(10) instead of " " 10 times?

Posted on 2007-11-28
10
Medium Priority
?
1,458 Views
Last Modified: 2008-02-01
Is there a Space tag in HTML?  I want to make 10 spaces.  Do I really need to code:
          ?
0
Comment
Question by:LeahTheMack
[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
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20364638
Yes, unfortunately you will have to, as if you just put white spaces then the browsers will display them as one. No other options buddy.
0
 
LVL 11

Expert Comment

by:Sven
ID: 20364914
Maybe you can use tables or you can use a <span> and format it via css to the width you want?
0
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 200 total points
ID: 20364947
Why not add the spacing to whatever you have after the spacing? Like:

margin-left: 80px;

or

padding-left: 80px;
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Assisted Solution

by:Sven
Sven earned 200 total points
ID: 20364964
This is what I said:
<span style="margin-left: 80px;">Your text here!</span>
 
<span style="width: 80px;">&nbsp;</span>Your text here!

Open in new window

0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20364984
No, DarthSonic, you only mentioned the second method, I suggested the first method as an alternative.
0
 

Author Comment

by:LeahTheMack
ID: 20365161
If I set the span to 80px here, will that goof up other lines on the page (above or below)?
Will that force me to set the span everywhere else to compensate?
0
 
LVL 11

Expert Comment

by:Sven
ID: 20365174
The span-Tag is an inline element which will only affect the space you defined and the text before and after will not be affected and there will be no break before and after. Try it and see what happens!
0
 
LVL 11

Expert Comment

by:Sven
ID: 20365184
Here you will find an example and a description of the span-tag:
http://www.w3schools.com/tags/tag_span.asp
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20365215
That depends on how your layout is working. The style applies only to the element where you apply it, but the extra space may affect other elements, just as a lot of &nbsp;s would.

Applying width on an inline tag like a span doesn't have any effect at all, by the way. (Internet Explorer may be applying the width in some settings, but this is a rendering error and should definitely not be used.)
0
 

Author Comment

by:LeahTheMack
ID: 20365347
Ok, thanks.  Doubling points to split between GreenGhost and DarthSonic
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

771 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