Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By bhenick anchor Friday, 26. September 2008, 06:33:36

29: Text styling with CSS



( Read the article )

By scarby421 anchor Wednesday, 1. October 2008, 10:39:16

avatarGreat! :cool:
Demonstration 1
Links-
Resized title, attributions, and bodycopy.
Link when pressed takes you to a NOT FOUND on this server.

Demonstration 11
New rules
p{line-height: 1.5;}
.attributions {line-height: 1.5;}
are they em's?
Thanks Don.

By chrismills O anchor Wednesday, 1. October 2008, 14:25:17

avatarHi there Don - hope you are well!

Originally posted by scarby421:

Demonstration 1
Links-Resized title, attributions, and bodycopy.

Link when pressed takes you to a NOT FOUND on this server.



Oooops - this is a typo in the href attribute value - I've fixed it now, so the link should now work.

Originally posted by scarby421:

Demonstration 11
New rules
p{line-height: 1.5;}
.attributions {line-height: 1.5;}are they em's?



Nope - this is a unitless value. line-height is one of the cases where it can be a good idea to use values without units. Basically, it allows you to set the line-height as a ratio of the font-size, so in these cases, it is 1.5 times the font-size. It is especially useful to use unitless values of line-height on elements that are very likely to have descndents - you can set it once on the parent element to make all descendents have line-heights relative to their font-sizes.

Eric Meyer explains this in a bit more depth in his Unitless line-heights article.

By scarby421 anchor Sunday, 5. October 2008, 07:12:58

avatarThank's Chris, very interesting link to Unitless line-height. Keep well, Don.
Demo 11
Apply a suitable amount of leading to the passage : Takes you to a 404.

Post edited Sunday, 5. October 2008, 23:01:23

By chrismills O anchor Tuesday, 7. October 2008, 16:14:42

avatar

Originally posted by scarby421:

Apply a suitable amount of leading to the passage : Takes you to a 404.



Thanks for the heads up Don - this was caused by a rogue period in the href value; I've fixed it now.

By davenvro anchor Tuesday, 14. October 2008, 02:25:27

avatarhi, would like to ask about the "typography glossary" link under "font-style, font-variant, and font-weight: changing the details" section. when i clicked on the link, i am directed to the following url:

http://dev.opera.com/articles/view/supplementary-common-html-entities-used/

please advise if this is the case or should I expect a different url for the said link.

thanks,

By chrismills O anchor Tuesday, 14. October 2008, 11:21:00

avatar

Originally posted by davenvro:

please advise if this is the case or should I expect a different url for the said link.



Hi there - this is a mistake; that link should have been pointing to the WSC Glossary that explains both those two terms. I've fixed the link, and the surrounding text. Thanks for pointing this out!

By davenvro anchor Thursday, 16. October 2008, 07:18:52

avatarthanks :smile:

By jillianwinn anchor Monday, 26. October 2009, 20:22:57

avatarThere are several spots in this article where html entity codes are used, but they are showing up in the text and not converting to the symbol. Here are a few examples:

1. in the first sentence is says: — some dynamic, some static, some functional —

2. Table 2 has several issues

3. in "in What is the physical equivalent of a desktop pixel?" it says: However…

(sorry, but when I submit the post, it does not show the entity codes as listed in the article since the post translates the entity codes to symbols)

By chrismills O anchor Tuesday, 3. November 2009, 12:41:26

avatar

Originally posted by jillianwinn:

There are several spots in this article where html entity codes are used, but they are showing up in the text and not converting to the symbol. Here are a few examples:



Hrm, you are right - there are a lot of entity screwups going on here. I think I've got all of them - I replaced the HTML entities with unicode codes to make sure they display ok. Let me know if you spot any more - thanks!

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom