Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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."
 
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.
 
Old August 20th, 2012, 12:25 AM
justinneng
Guest
 
Posts: n/a
Default Thanks

Thanks there.. Perhaps it is
 
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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.