Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • giori
  • giori's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 14
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.

Please Log in or Create an account to join the conversation.

Last edit: by admin.

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

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

Fixed.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

  • giori
  • giori's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 14
This now works perfect as desired! Thank you for the quick fix!

Please Log in or Create an account to join the conversation.

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

  • giori
  • giori's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 14
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.

Please Log in or Create an account to join the conversation.

Last edit: by giori.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.065 seconds

Dear Cook Team Firstly a massive thank you for your wonderful service!
audibleid (Forum)  

Get Started