Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] Grid columns alignment

[CLOSED] Grid columns alignment 24 Nov 2011 09:09 #583

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
For the grid columns, don't specify any alignment, and set it in CSS file.

I am sorry. This does not work. Even if all alignments are unclicked, the html code in the template by default includes for every <th> and <td> a style='text-align:center' statement that cannot be overwritten by the CSS file. CSS in the 'style' statement has higher priority than CSS in the file.

I think 'style' statements set by default should be avoided as much as possible in the generated code as they overwrite any general settings defined on a higher level.
Last Edit: 19 Dec 2011 20:41 by admin.
The administrator has disabled public write access.

Re: Grid columns alignment 25 Nov 2011 12:32 #595

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Well.

Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Grid columns alignment 25 Nov 2011 15:37 #618

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
This now works perfect as desired! Thank you for the quick fix!
The administrator has disabled public write access.

Re: Grid columns alignment 19 Dec 2011 16:28 #745

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
In the frontend, this has been reverted back again to text-align: center, (in the css file). If all the align buttons are unset, there should be no text-aligning at all in the css file.
Last Edit: 19 Dec 2011 16:29 by giori.
The administrator has disabled public write access.

Re: Grid columns alignment 19 Dec 2011 20:41 #746

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Center or left... It is a question of choice.

Everything is OK.
Since the begining, default alignment is setted to center in CSS for few reasons :

1. (And the most important). You SHOULD open your component to customize at least the template and the CSS. Cook is a tool. Not a generator for lazy behaviors. This is an educative tool and our politic is not to help people that copy/paste in continuation without trying to understand anything.
It is not possible to always fits the exact needs of all projects. If a such software do this, it should be very comlipicated to setup. Cook is a balance between power and simplicity of use.

2. Centering is in almost case the most readable when you develop (to my opinion). Except for numbers, but, you always can setup it.

3. In back end template (I don't remember 1.5 or 1.6) it is setted center by default.

4. Why do not avoid CSS entry ? Because for beginners who want to change it, the CSS entry is created, so they recognize, and change it.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.104 seconds

Get Started