Spaces in HTML for a template

This is a discussion on "Spaces in HTML for a template" within the Web Page Design section. This forum, and the thread "Spaces in HTML for a template are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 9th, 2006, 10:00
New Member
Join Date: Aug 2006
Location: Maidenhead
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Spaces in HTML for a template

I currently run 2 business and am working on one of the sites which is a template site.

I would like to know how to incorporate spaces between 2 seperate pieces of text.

- locate vehicles.......................................... .......Over 550 000 km of roads
(have to use dots here as i get the same issue)

I have two images side by side and need this text under them.

trying traditional methods i.e. using normal spacing gives me this

- locate vehiclesOver 550 000 km of roads

What do i need to do or include?

Thanks in advance for the assistance
Reply With Quote

  #2 (permalink)  
Old Aug 9th, 2006, 10:53
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Spaces in HTML for a template

There are a few things toy could do here.

  is a non-breaking space. A series of these will do the job but it is very messy and not desireable.

Another way is to put it in a table and have a column between the two peices of text.

The best way however is to make a class in CSS for that pariculat text element.

for example

Code: Select all
.foo {
margin-right: 50px
}
then apply the class to the txt you want to have a big space on the right.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #3 (permalink)  
Old Aug 9th, 2006, 11:01
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Spaces in HTML for a template

As you have discovered, browsers only render the first space in a sequence of spaces and ignore the rest.

There a number of possible approaches and it really depends on the amount of layout you have, how often you might need to change it and so forth.

The easiest approach is to use what are known as non-breaking spaces instead of ordinary spaces.

You do this be inserting the code   total of six characters, for each space required.

Another option might be have a div element as a container and then use span elements around the pieces of text with css used to specify one to align left and the other to align right.

As I said horses for courses. Come back if you want more info.
Reply With Quote
  #4 (permalink)  
Old Aug 9th, 2006, 12:26
New Member
Join Date: Aug 2006
Location: Maidenhead
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Spaces in HTML for a template

  works for me guys, thankyou for your assist, have a look at this

www.tangent-distribution.co.uk
Reply With Quote
  #5 (permalink)  
Old Aug 9th, 2006, 12:28
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Spaces in HTML for a template

Quote:
Originally Posted by necron_uk View Post
  works for me guys, thankyou for your assist, have a look at this

www.tangent-distribution.co.uk
It might work but I urge you to explore the CSS option for overcoming this issue. It is a lot more accessible and you will have good karma bestowed upon you for doing it.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #6 (permalink)  
Old Aug 9th, 2006, 12:43
New Member
Join Date: Aug 2006
Location: Maidenhead
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Spaces in HTML for a template

to be honest, i don't even know what CSS stands for never mind how to use it lol

What I am trying to achieve is these images, side by side with a small space between them and the text aligned underneath

Real Time Tracking Via Detailed Street Level Maps

................
- locate vehicles .............................................Over 550 000 km of roads
- track real time full ..........................................street level coverage of
- follow multiple vehicles ..........................................Great Britain
- route your vehicles
- export data to pda
- add waypoints

Last edited by necron_uk; Aug 9th, 2006 at 12:47.
Reply With Quote
  #7 (permalink)  
Old Aug 9th, 2006, 12:52
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Spaces in HTML for a template

Quote:
Originally Posted by necron_uk View Post
to be honest, i don't even know what CSS stands for never mind how to use it lol
Well, Learn it. It is not complicated... well, what you're trying to acomplish isn't.

http://www.w3schools.com/css/default.asp
http://www.elated.com/tutorials/authoring/css/

I'll help you in the learning process any way I can, but what I won't do is hold your hand and do it all for you while you learn nothing. If I do that then when a similar problem arrises in the future, you're just as stuck.

I'm not being an ass here I just want people to show some initiative.

I'm sure other members share my sentiments and agree I am being hard but fair.

Enjoy learning.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #8 (permalink)  
Old Aug 9th, 2006, 13:25
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,739
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Spaces in HTML for a template

Minute, you are so mean! You used to treat me badly and then I got bigger than you and pulled the underwear over your head! Muhaha!

But in all seriousness he has a point. This is a simple problem with a simple solution. We are more than willing to help you out, but it is good practice and etiquete to at least research a solution first. The way it sounds to me is you want basically two "Columns" one for each image and its text.

[ image here ] [ Image Here ]
[ foo foo foo ] [ foo foo foo ]

This can be done with floats, lists etc..
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 9th, 2006 at 13:27.
Reply With Quote
  #9 (permalink)  
Old Aug 9th, 2006, 13:29
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Spaces in HTML for a template

Quote:
Originally Posted by moojoo View Post
Minute, you are so mean! You used to treat me badly and then I got bigger than you and pulled the underwear over your head! Muhaha!
The cheek!!! I've never had a bad word to say about you. I'm hurt!!! lol
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #10 (permalink)  
Old Aug 9th, 2006, 13:50
New Member
Join Date: Aug 2006
Location: Maidenhead
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Spaces in HTML for a template

while i appreciate the need for people to learn new skills and techniques i am not a web developer and have no actual need for the full skill set. I am making adjustments to one of my business sites and this is purely a one off. I shall review the proposed links and tutelage when time permits but at this moment I am rather rushed, as I said I have 2 business to manage

Because this site is a template from a website company there is only so much i can actually do with it. If the need to do this kind of thing arises again I will at least have a working example to aid me.

The   has served my purpose at this time and I sincerely thank you for your assistance in this matter. I was following up on your suggestion of using CSS to see how it could be used by a leyman.

Do i need to learn all css or can i do it with a few symbolly code words?

Kindest Regards
Reply With Quote
  #11 (permalink)  
Old Aug 9th, 2006, 14:04
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Spaces in HTML for a template

You don't need to know all of CSS for this, just the bits that pertain to your needs.

But if the site is from a template it could well be more trouble than it's worth. Get a cross section to look at it with the   solution and if they can all see it ok then I would leave it. Templates can be a right slag to modify.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #12 (permalink)  
Old Aug 9th, 2006, 14:11
New Member
Join Date: Aug 2006
Location: Maidenhead
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Spaces in HTML for a template

Will do and thankyou once again
Reply With Quote
Reply

Tags
spaces, html, template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i make my PSD Template into a working HTML Page homer09001 Web Page Design 23 Aug 1st, 2007 01:23
Need good HTML template service... pdbuddy Starting Out 4 Apr 7th, 2007 20:48
Generating a CSS Template from HTML dhochee Web Page Design 2 Apr 3rd, 2007 18:06
How do I Remove Template Tags from html? sovereign6 Web Page Design 3 Dec 8th, 2006 16:16


All times are GMT. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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