Understanding the grid
-
Anthony,
Below I have 3 questions (5-7) and four assumptions (1 – 4). They raised when examining the working of the grid and my purpose to extend / change it (but keep it basic and keep it float based).
Can you tell me if my assumptions are correct and answer the related questions?Thank you!
Here we go:
1) Assumption:
The classes site-content, site-footer, site-header, home-sidebar and banner act as a “container” for the grid and one of it’s purposes is to center the grid (by setting margin: 0 auto; max-width and width).2) Assumption:
The classes with the name ‘container’ in it – headercontainer, bannercontainer, maincontentcontainer, footercontainer – are for the general layout.3) Assumption:
The combination of these settings:“grid container classes” (see 1) -> margin: 0 auto;
col class -> left-margin in percentage.
row class -> margin: 0 auto;structure the grid by making the content not touch the edges of the viewport and create gutters and is another implementation of the same but with settings like for example:
An equal sided padding (value X) on the “grid container” with
a negative margin-left (value X) on the row class and
equal sided padding (value X) on the col class grid to negate the container’s padding and create the gutters.4) Assumption:
If replacing the grid (stylesheet grid.css) of the theme, the new grid may have a container and this does not interfere with the existing “grid container” classes (see 1). At most, it is kind of duplication on containing of the grid.5) Question:
If replacing the grid, with a grid system that has an equal sided padding on the “grid container” and taking in account the theme structure, what is the best choice for row margin and column padding, pixel or percentage?6) Question:
The classes site-footer, home-sidebar and banner do not have setting ‘position: relative;’. Why not?7) Question:
The classes home-sidebar and banner do not have setting ‘clear: both;’. Why not?
- The topic ‘Understanding the grid’ is closed to new replies.