![]() |
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Space between lines in CSS |
Page: 1 | Reply |
Oct 31st 2005 | #171190 Report |
![]() Posts: 672 |
Hey, I got a little question... It's about the space between each line of text in a normal page... how can I change it in CSS (or in html if it's not possible otherwise) I think I knew it before, but forgot what it is... Thanks for any help!! ![]() |
Reply with Quote Reply |
Nov 1st 2005 | #171191 Report |
![]() Posts: 6632 |
p { line-height: 1.6em; } |
Reply with Quote Reply |
Nov 1st 2005 | #171192 Report |
![]() Posts: 672 |
Thank you deker! Do you know what represent em though? It's probably a stupid question, but I'm kinda tired right now and can't figure it out :/ |
Reply with Quote Reply |
Nov 1st 2005 | #171201 Report |
![]() Posts: 6632 |
em is the width of the letter M in the font that is being used. so basically it is 1.6 times the width of that letter. you could also just do like 18px or something, but it is less flexible.
|
Reply with Quote Reply |
Nov 5th 2005 | #171257 Report |
![]() Posts: 537 |
so why do people use ems as opposed to pixels?
|
Reply with Quote Reply |
Nov 6th 2005 | #171265 Report |
![]() Posts: 6632 |
Because that way if someone changes the font size in their browser, everything scales with it. You can also set the width of pages and boxes and stuff with ems, so that the whole web site will scale larger or smaller, depending on their preferred font size.
|
Reply with Quote Reply |
Nov 6th 2005 | #171268 Report |
![]() Posts: 537 |
interesting.
|
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |