Yii Framework Forum: Defining multiple layouts - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Defining multiple layouts pp 70-71 missing css layouts?

#1 User is offline   windsor 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 04-October 11
  • Location:Tampa, FL

Posted 15 October 2011 - 07:27 PM

The Example references some "<div>" with css classes "sidebar tags", "sidebar toc" and "sidebar links"

Did not see these css classes in application/css folder. Layout does not change to include the sidebars when the page(s) are loaded. Is there a css layout file that goes with the book?
0

#2 User is offline   windsor 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 04-October 11
  • Location:Tampa, FL

Posted 15 October 2011 - 08:10 PM

Attached File  YiiCookbookMultiLayouts.gif (33.39K)
Number of downloads: 65
0

#3 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,340
  • Joined: 17-January 09
  • Location:Russia

Posted 17 October 2011 - 04:11 PM

No, CSS isn't included for this recipe. There are a lot of techniques you can use to position these elements. The simplest possible that cames into my mind is something like:

.sidebar {
  float: right;
  width: 200px;
}

Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users