kerning, leading, and justified text?

This is a discussion on "kerning, leading, and justified text?" within the Web Page Design section. This forum, and the thread "kerning, leading, and justified text? are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 15th, 2008, 20:45
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
kerning, leading, and justified text?

I have a question in an assignment for my course and it's about kerning, leading and jusified text.

7) Demonstrate, kerning, leading, and justified text

Tried to find some examples of kerning and leading but I couldn't find how to do it.

Could someone please write how I do this for me?

Never heard of the first 2 tbh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 15th, 2008, 21:27
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Kerning is adjusting the space between letter pairs individually. This can be done manually by specifying letter spacing with <span>s, but for all practical purposes it's impossible on the web (as are ligatures).

Leading is controlled in CSS by { line-height: 1em }. 1em is the default leading (no space between lines); 1.5em is generally good.

Justified text is just about alignment: { text-align: left } (default), center, or right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 15th, 2008, 21:36
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Thanks a lot, I'm also have major problems trying to give examples of superscripting text using CSS, how the hell do you do it? I've done it in HTML before and can't find anything on how to do it with CSS.

Could you give me an example of how you do that aswell? Just something simple like making the '2' in 'A2' suprtscripted? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 15th, 2008, 21:42
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Just use HTML. There's no reason to use CSS here: superscript and subscript are meaningful, and should not be removed to a presentation layer.

Code: Select all
E = mc<sup>2</sup>

Water is H<sub>2</sub>O
You could always use CSS to reduce the font-size and offset it with {position: relative }, but why? Use meaningful HTML elements instead.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 15th, 2008, 21:48
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Here's what the question says, my teacher is rubbish and has also messed up the answers sheet with the basics of ID and CLASS.

Quote:
8) Give 2 samples of aligning text vertically. Use the following scientific notations as your examples. A2 H2O.
Give 1 example of setting an elements alignment relative to the parent alignment eg:TEXTBOTTOM text-top
Description of absolute and relative positioning.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 15th, 2008, 22:13
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

As I said, the HTML <sup> and <sub> will produce superscript and subscript.

Relative positioning: the element is shifted from its position by the specified amount, but it still leaves behind the space it formerly occupied.

Absolute positioning: the element is removed from the visual formatting flow and positioned relative to the top-left corner of its nearest positioned ancestor. If there is no such ancestor, then it is positioned relative to the top-left corner of the viewport.

Combine these two by setting a parent container to { position: relative } and a child element to { position: absolute }. The child will then be positioned relative to the parent. This is far more powerful than the old-fashioned textbottom nonsense.

If you really wanted to, however, you could replicate <sup> with the following CSS:

Code: Select all
span.sup {
vertical-align: text-top;
font-size: 60%;
}
Or you could do this:

Code: Select all
span.sup {
position: relative;
top: -0.5em;
}

Last edited by MikeHopley; Jan 15th, 2008 at 22:17.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 16th, 2008, 00:22
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Thanks so much that worked perfectly.

So for the justify is it just deciding on a text alignment and that's it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 16th, 2008, 08:29
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: kerning, leading, and justified text?

Quote:
Originally Posted by PicoDeath View Post
Thanks so much that worked perfectly.

So for the justify is it just deciding on a text alignment and that's it?
Ooooh actually, I believe you can also set { text-align: justify } if you want. That creates a block of text with "straight edges" on both sides -- but usually ugly spacing between words. Try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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
Create templates for the leading edge Terapad.com Terapad Job Opportunities 0 Aug 9th, 2007 12:57
Is there a way to Tween kerning? griffonwing Flash & Multimedia Forum 3 Jun 13th, 2007 01:53
Web Developer needed for Leading Dance Label Big fish Digital Job Opportunities 0 Apr 27th, 2007 11:54
incrementing variables with leading zeros saxman PHP Forum 5 Jan 22nd, 2007 09:48
Unable to get correct leading Audioz Web Page Design 4 Nov 14th, 2004 19:32


All times are GMT. The time now is 23:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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