Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display property - CSS - XML Bible contradicting ?

 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re the Display property, on p392 of XM Bible 2 nd Edition,

Children do not inherit the display property.

Contradicting this on p394:

Once you�ve hidden an element by using display:none you cannot then show
any of its descendants. For example, consider these rules:
SYNOPSIS {display:none }
LOCATION {display:block}
Because the LOCATION element is contained inside the SYNOPSIS element, it is hidden
even though its own display property is set to block .

yack...... :roll:
Anyone explain what this means....
Am I to assume that it is inherited only for display:none and not for other values....
- madhav
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!