Increase spacing between words

This is a discussion on "Increase spacing between words" within the Web Page Design section. This forum, and the thread "Increase spacing between words 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 Sep 9th, 2007, 22:45
Junior Member
Join Date: May 2007
Location: Virginia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Increase spacing between words

I'm trying to make a simple navigation menu which so far looks like this:



I initially tried to make this with the spry menu widgit (see post which is going nowhere here: http://www.webforumz.com/css-forum/5...nu-bar-etc.htm), but kept running into so many challenges that it seems much easier and more sensible to make this with plain html text and make each word a link.

All I need to do is increase the space between each word. I tried just hitting the space bar (um ...) but that didn't work. So I made a .css class called "nav", assigned it to these words, and changed the Block: Word Spacing setting to 5 px, then 10 px, then 100 px but nothing changed. (However, changing the letter spacing property does affect the text, so I know the nav class is assigned.) What am I doing wrong?

Thank you.
Reply With Quote

  #2 (permalink)  
Old Sep 9th, 2007, 23:00
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Increase spacing between words

could put margins between the words
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 9th, 2007, 23:10
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Increase spacing between words

Word spacing (CSS code example: word-spacing: 2em;) will only affect the words within each text node. For example, it will affect the spacing in "Viewer Mail", but not the spacing between "Home" and "Images".

I'm assuming these are list items <li>. Just add padding or margins.
Reply With Quote
  #4 (permalink)  
Old Sep 9th, 2007, 23:37
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpmitchell Send a message via Skype™ to jpmitchell
Re: Increase spacing between words

Like Mike suggested. I would make sure your code looks like this:
Code: Select all
<ul id="navigation">
  <li><a href="index.html">Home</a></li>
  <li><a href="images.html">Images</a></li>
  <li><a href="multimedia.html">Multimedia</a></li>
  <li><a href="the-arts.html">The Arts</a></li>
  <li><a href="forum.html">Forum</a></li>
  <li><a href="viewer-mail.html">Viewer Mail</a></li>
  <li><a href="contact.html">Contact</a></li>
</ul>
Now assuming your CSS looks something like this:
Code: Select all
#navigation li {
float: left;
list-style: none;
text-align: center;
}

#navigation a {
color: #fff;
font-size: 1.3em;
text-decoration: none;
}
If your code looks something like that, then there is are two easy ways to do it.

1. You could add padding to each <li> (say 10 pixels to each side), by making the above look like this:
Code: Select all
#navigation li {
float: left;
list-style: none;
padding: 0 10px;
text-align: center;
}

#navigation a {
color: #fff;
font-size: 1.3em;
text-decoration: none;
}
I do however recommend doing this next method.

2. Make the links blocks and setting a width, by making the original CSS code like this:
Code: Select all
#navigation li {
float: left;
list-style: none;
text-align: center;
}

#navigation a {
color: #fff;
display: block;
font-size: 1.3em;
height: 20px;
text-decoration: none;
}
In that last method, you can add padding or set the height to anything you'd like. That makes the links more button like instead of just hyperlinked text.

Hopefully that helps answer your question.

- James
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Reply With Quote
Reply

Tags
spacing

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
Words Women Use (Read This) Wicca Webforumz Cafe 1 Jun 13th, 2008 20:39
regardind see-saw moment of words pushpendramadan Website Planning 5 Jan 7th, 2008 04:48
Help with key words Wombat Starting Out 4 Jul 17th, 2007 08:10
Gre words and vocabulary builder hawashp Free Web Site Critique 7 May 25th, 2007 08:33
write words on pictures jenjen1018 Web Page Design 10 Dec 19th, 2003 18:17


All times are GMT. The time now is 03:33.


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