HighDots Forums  

Demonstrating inheritance

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Demonstrating inheritance in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
duck13
 
Posts: n/a

Default Demonstrating inheritance - 03-31-2009 , 10:39 AM






I understand the basics of inheritance, but am not sure how to use DW to show
it. Example:

Body has green background, which is passed through div wrapper to div sideBar.

How can I show the origin of the green background in div sideBar (when that
property is not set in sideBar)? I can't seem to get this info from the CSS
panel. And available elsewhere, too? I somewhere read that this is possible.

Thanks very much,

Sonny


Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Demonstrating inheritance - 03-31-2009 , 11:25 AM






Quote:
The Properties section now shows you the cascade of styles into the
element you have selected and where they came from.
By default, the center pane shows "info". You have to click on the
"cascade" icon on the right side of the center pane header to see the
cascade. I described this in more detail here:
http://blogs.adobe.com/dreamweaver/2008/12/css_styles_panel.html

Also, while this technique will lead you to where the applicable CSS
property is defined, the body background color showing through its child
paragraphs (p tags) is technically not CSS "inheritance". It just
shows through. The Summary pane at the top is more helpful in this
particular case.

HTH,
Randy


Reply With Quote
  #3  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Demonstrating inheritance - 03-31-2009 , 11:33 AM



Thanks, Randy.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Randy Edmunds" <redmunds_nospam (AT) adobe (DOT) com> wrote

Quote:
The Properties section now shows you the cascade of styles into the
element you have selected and where they came from.

By default, the center pane shows "info". You have to click on the
"cascade" icon on the right side of the center pane header to see the
cascade. I described this in more detail here:
http://blogs.adobe.com/dreamweaver/2008/12/css_styles_panel.html

Also, while this technique will lead you to where the applicable CSS
property is defined, the body background color showing through its child
paragraphs (p tags) is technically not CSS "inheritance". It just shows
through. The Summary pane at the top is more helpful in this particular
case.

HTH,
Randy


Reply With Quote
  #4  
Old   
duck13
 
Posts: n/a

Default Re: Demonstrating inheritance - 03-31-2009 , 01:23 PM



I now realize that my example of "background" was not well-chosen, and confused me. Using font-family, it works fine.

Thanks for the help.

Sonny

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.