Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7788955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:08:34+00:00 2026-06-01T21:08:34+00:00

I cake-baked ( cake bake ) a test installation that resulted the Product Controller

  • 0

I cake-baked (cake bake) a test installation that resulted the Product Controller and its views such as index.cpt, add.cpt, edit.ctp, etc. I’m looking at the CSS file that these views are using, and there are two divisions: action and products index.

I see the actions div tag in the CSS file, but I don’t see one for products index. The code is below for these divisions.

/** containers **/
div.form,
div.index,
div.view {
    float:right;
    width:76%;
    border-left:1px solid #666;
    padding:10px 2%;
}
div.actions {
    float:left;
    width:16%;
    padding:10px 1.5%;
}

My questions are:

  1. why is products index‘s parameters defined under div.view?

  2. I see div.form and div.index end their lines with a , rather than empty brackets. What does this mean?

  3. Right now the page is divided vertically into two as follow.

    ---------------------
    |    |              |
    |    |              |
    |    |              |
    |    |              |
    |    |              |
    ---------------------
    

What the ideal method to employ to make the following? Is it possible to make the following using these div tags alone or should I look into using tables? I’d like to put navigation bars on the left and on the top as shown on all pages. I’m using using app/views/layouts/default.ctp and this->element().

    ---------------------
    |    |              |
    |    |--------------|
    |    |              |
    |    |              |
    |    |              |
    ---------------------
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:08:36+00:00Added an answer on June 1, 2026 at 9:08 pm

    I do not know CakePHP, but the majority of your questions are limited to CSS.

    why is products index’s parameters defined under div.view?

    This is most likely due to the fact that there is a generic implementation of what a view is. All “views” share the same layout, so there’s no need to repeat yourself in the CSS file for each page if its the same. Just tag the div with a class (that’s what they’re there for), and move along.

    I see div.form and div.index end their lines with a , rather than
    empty brackets. What does this mean?

    This is a combined selector in CSS. When multiple selectors share the same style, you can denote them in a comma separated list before the ruleset declarations. In your example, div.form, div.index, div.view all share the same style declaration. Using empty brackets would give no style declaration.

    http://www.w3.org/TR/selectors/#grouping

    For your third question, assuming you have some HTML as follows

    <div>
      <div class="actions"><!--your actions --></div>
      <div class="view"><!-- your product index view--></div>
    </div>
    

    you can add a div tag as a child of the div.view tag to achieve your nav bar on the top. Like so:

    <div>
      <div class="actions"><!--your actions --></div>
      <div class="view">
         <div class="custom_nav_bar"><!-- your new html --></div>
         <div class="view_content">
             <!-- your product index view-->
         </div>
      </div>
    </div>
    

    you can then fool around with the css of div.custom_nav_bar and div.view_content to get the desired heights/colors.

    or should I look into using tables

    Please dont. Tables have a purpose, but not for layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should we test add/edit and delete functions created with Cake bake command? Should we
Just learning CakePHP and its Bake feature. I tried to run ../cake/console/cake bake from
I'd like to modify cake test so that it operates with a different value
When I run cake bake all then I receive the error messages shown below.
I have created my database, and used cake bake my_project to create my project,
I created an app with the cake bake command, and one table used text
I want to bake cake php project on Windows system. I'm using wamp server
guys. I've been trying to bake some models, controllers, and views in CakePHP 1.3
Target string: Come to the castle [Mario], I've baked you [a cake] I want
I'm getting below error when I view the index page of my petitions controller.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.