|
|
|
HTML Blank Space and line breakMany times we have to use blank space in our html code to
place objects or text in proper location. This is very simple in html. We will
use in our menu system to achieve desire location.
Link1|Link2|Link3|link4
Now let us add one blank space before and after each | to give some blank space.
Link1 | Link2
| Link3 | link4
To add one more blank space we have to use before and after the |
to place one more blank space.
Link1 | Link2 | Link3 | link4
Here is the code of the above line
Link1 | Link2 |
Link3 | link4
See the use of to
get blank space.
By using padding
This line starts after some blank space at left, here is the code.
<span style="padding-left:20px">This line starts after some blank space at left</span>
To get a blank line break we can use <br>
tag in html.
| | Bill Kisse | 18-01-2010 |
|---|
Short, sweet and to the point.
Just what I needed.
Thank you! | | Ray Su | 20-01-2010 |
|---|
| i like men | | myspace uh | 27-01-2010 |
|---|
| thanks it works fine :) | | Selvi | 30-01-2010 |
|---|
It's very nice and useful.
Easy to understand.
Thank You! | | Hansje | 04-02-2010 |
|---|
| nice, but what does nbsp mean? | | smo | 04-02-2010 |
|---|
| nbsp is non breaking space. Without line break browser should display this. | | siya | 04-02-2010 |
|---|
| Thanks .. this helped a lot | | Get on Google | 05-02-2010 |
|---|
| Just do a quick search, and I've found this page. Thanks for the code, I always forgot this one symbol. | | Colin D | 23-02-2010 |
|---|
| Thank you for this, this helped me make my lame excuse for a site's navigation bar look better :) | | Orion | 01-03-2010 |
|---|
| Thanks. What i have been looking for. :) | | Plada | 31-03-2010 |
|---|
Thats really helpfull, thanks.
But I still have a question.
| | Carlos Castillo | 01-06-2010 |
|---|
| Be careful when using multiple - Some browsers will ignore more than one and will only display one empty space no matter how many you've defined in your code. To get consistent results (and valid code) use CSS instead and define 'padding' and/or 'margin' for your elements. | | Billie Carrington | 21-06-2010 |
|---|
| Just like Bill said. Short, sweet and to the point | | Smiles | 17-06-2011 |
|---|
| Thank you so much! I used this code to decorate my page with pictures by positioning and aligning pictures. It looks perfect now. You rock!! |
|
|
|
|
|
|