Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2012, 04:11 PM
justinneng
Guest
 
Posts: n/a
Question line height

in the eg on page 432, how did the author arrive at the following equation for line height
Code:
/*13x1.2 = 13.5 */
the eg is
Code:
.pull_quote2 {
font-size: 0.92em; /* 12 x 0.92 = 11 */
line-height: 1.2em; /* 13 x 1.2 = 13.5 */
margin-top: 0.2em;
float:right;
width:100px;}
It has been mentioned in the book that the "line height is set to three quarters of the height of the baseline grid, so the it catch up every five lines."
Reply With Quote
  #2 (permalink)  
Old August 18th, 2012, 09:41 PM
Authorized User
Points: 79, Level: 1
Points: 79, Level: 1 Points: 79, Level: 1 Points: 79, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Posts: 13
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think it's a typo. It should be 11x1.2=13.5 since the font-size is 11.
Reply With Quote
  #3 (permalink)  
Old August 20th, 2012, 12:25 AM
justinneng
Guest
 
Posts: n/a
Default Thanks

Thanks there.. Perhaps it is
Reply With Quote
  #4 (permalink)  
Old August 20th, 2012, 11:15 AM
Authorized User
Points: 79, Level: 1
Points: 79, Level: 1 Points: 79, Level: 1 Points: 79, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Posts: 13
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by justinneng View Post
Thanks there.. Perhaps it is
I'm positive that's the case.

BTW, as long as you're here, did you happen to notice that the code for ch10_eg9 on p. 434 uses the attribute id="main" twice? Isn't that an id attribute only supposed to be used once in a page? It works out the same if you substitute a class attribute.

Unfortunately, I've noticed more than a few errors that aren't addressed in the errata. Still a very good book, IMO.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to draw indicator line in owc line chart AlexOo General .NET 0 July 9th, 2007 10:32 PM
Fixed table height and row height rajanikrishna HTML Code Clinic 3 January 18th, 2007 12:42 AM
Reading line by line from a .txt file x_ray VB.NET 2002/2003 Basics 5 February 10th, 2006 01:55 PM
line-height -n- background-color with <DIV> block anshul HTML Code Clinic 11 September 5th, 2004 02:15 PM
Change height of div element if < window height JoelJunstrom Javascript How-To 1 October 10th, 2003 09:14 AM



All times are GMT -4. The time now is 11:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.