Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Location
    Connecticut
    Posts
    118
    Plugin Contributions
    0

    help question Stylesheet CSS Structure Diagram?

    I am struggling a bit moving to the tableless stylesheet. Is there a diagram somewhere showing the hierarchical relationship of the divs and classes in the stylesheet? When using a CSS viewer I can see the ancestors and children of the elements but can't get a clear picture of the overall structure. Also, the nesting of the divisions does not seem to be defined in the stylesheet, where is the structure heirachy defined?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Stylesheet CSS Structure Diagram?

    The hierarchy, structure or cascade (from cascading stylesheets = CSS) isn't defined in a stylesheet, or even for a stylesheet. It's defined by the structure of the HTML or XHTML code to which it is applied.

    It is this structure that you see when you use a CSS Viewer. Trying to document and maintain by traditional means for an application as complex as Zen Cart would take a nonsensical amount of time and rapidly be invalidated as users change the Admin switches or use add-in modules.

    A better way to get an overview of the structure is to use a tool such as Firebug which allows you to see the XHTML structure of a page and then drill down the hiercharcy seeing the XHTML that defines each level and the CSS that is being applied to it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2006
    Location
    Connecticut
    Posts
    118
    Plugin Contributions
    0

    Default Re: Stylesheet CSS Structure Diagram?

    Quote Originally Posted by kuroi View Post
    The hierarchy, structure or cascade (from cascading stylesheets = CSS) isn't defined in a stylesheet, or even for a stylesheet. It's defined by the structure of the HTML or XHTML code to which it is applied.
    Uh huh.

    Thanks Kurio. I now have Fire Bug, that helps - very nice. Not quite sure I am using it to its capabilities but Muddling through. Any recommends on a good view to use with Fire Bug? I am using HTML and Style tabs now. Can't figure out how to edit on the fly yet, but I think its possible.

    I am trying to migrate site http://www.aurora-museum.com/catalog/ my testbed is http://www.aurora-museum.com/catalog2/. I am very much trying to use the new templates and CSS. Are elements .centershop, headerNavigation, .footerbottom, and possible more now defunct?

    Is it possible to position an element within its container block ? For example if #navMainWrapper is part of #headerWrapper is it possible to get it to line up on the bottom of #headerWrapper? Like it was in the live site. I have been floating, positioning, aligning to no avail. Or do you have to tweak tpl_header.php to move it. btw - The alt_header mod moves it to the right of the logo not below it like it used to.

    Also, any ideas on where to start to get the sidebox formatting back ?

 

 

Similar Threads

  1. v151 stylesheet css?
    By david52 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Mar 2013, 02:49 PM
  2. Installation of Tabbed Products pro, ruined my css structure
    By satyros in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Jan 2012, 03:51 PM
  3. New Install, structure of site displays wrong, no css attached?
    By openxs in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 24 May 2008, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg