• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Layout > Creating Contextual Layouts

Creating Contextual Layouts

In Chapter 2, I discussed using contextual selectors to change how content is displayed according to where it is placed in the page. By using the contextual selector method, you can define multiple definitions for the same rule. Then, depending on the parent element you place the selector in, the appearance can be radically different.

In this example, I want to take that technique one step further and show you how to control the layout of the entire page, using the same HTML code to create pages with one, two, or three columns controlled using a single ID.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint