Jump to content



Latest News: (loading..)

- - - - -

960 Grid System

possible change grid column

  • Please log in to reply
10 replies to this topic

#1   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 13 July 2012 - 02:41 PM

Hello folks.

I trying to use 960 grid system on my shop, but i need a 12 column.

Its possible on oscommerce use 12 column besides 24 as?

Ty

Rafael

OScommerce Rocks!


#2 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,401 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 13 July 2012 - 02:59 PM

Why you want a 12 column?

The 960gs affect only the 2 columns and main body, so if you want the columns wider, just let them be more grids.

#3   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 14 July 2012 - 07:20 PM

But in what file are the <div's> to make the changes?

Ty multimixer

OScommerce Rocks!


#4 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,401 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 15 July 2012 - 05:22 AM

@Celebrimbor

Maybe you explain first what you want to achieve, so I can be more concrere, others of course too.

Till now, all you said is that you want 12 columns

Anyway, you could also take a look to here and here about how to change the column width

#5   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 15 July 2012 - 01:13 PM

Thank you very much for your support.

Searching on oscommerce forum i see that oscommerce uses only 24 columns, and as you said, i can do the same on 24 columns.

Follow atached a simple layout as i need my site.

Rafael

Attached Files


OScommerce Rocks!


#6 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,401 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 15 July 2012 - 02:11 PM

@Celebrimbor,

even I can't see the grids you intent to use for each section, sure thing is, that there is nothing you can't do with a 24 grid that you could with a 12

I thing that all you have to do is, to change the grids of he left column, if even necessary

#7   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 15 July 2012 - 04:04 PM

Yes... i think that is the road.

And after arrange left column, play with grids on main.

Ty Multimixer

OScommerce Rocks!


#8 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,401 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 15 July 2012 - 04:19 PM

The main part of osCommerce is not constructed using grids

It looks basically like this:

grid_4 (left column) ---- grid_16 (middle part) ---- grid_4 (right column)

In case of only 1 column, it adjust automatically like this

grid_4 (left column) ---- grid_20 (middle part)

That mean, that you need to know in advance how many columns you plan to use, so you know what grid you are in, a 16 or a 20, I mean in case you want to use the grid system within the main content part

Edited by multimixer, 15 July 2012 - 04:19 PM.


#9   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 16 July 2012 - 12:26 AM

After all changes.

My website starts with this lag, as picture attached.

I dont know how fix the lag between left column and main content.

any sugestions?

the site is panobendito.com.br

i removed all boxes from right column.

Attached Files


OScommerce Rocks!


#10   Celebrimbor

Celebrimbor
  • Members
  • 124 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brasil

Posted 16 July 2012 - 03:24 AM

Problem solved.

I fixed the file osc_template.php.

I put now the correct values for columns and container


class oscTemplate {
    var $_title;
    var $_blocks = array();
    var $_grid_container_width = 24;
    var $_grid_content_width = 16;
    var $_grid_column_width = 4;  >>> correct value. 4 grids for each column. Was 8. lol

Hope that this help others.

Cya

rafael

OScommerce Rocks!


#11   vampirehunter

vampirehunter
  • Members
  • 274 posts
  • Real Name:vampire

Posted 06 August 2012 - 09:47 PM

can someone help me.

i want to remove the left column from just the "product_info" page.

the rest of the pages apart from home page have the left column and the main body content.

ive been trying for hours and nothing has come up in the forums or search engines.


all i want is for the product info page to have no left column and for the body content to go the full width which is 24 in the grid.


if i go to template_bottom there is some code there, but i dont know what to do to it.