Centering elements within container..
-
I am working on a responsive website, and need the portfolio elements to be centered within the container. I already purchased the pro version so I could change the size of the elements to fit on my responsive versions, but I cannot get the elements to center. I am using the “Blocks Toggle Up/Down” option.
The container by default takes up 100% width, which is what I want, but the content inside is not centered. When my site is at it’s highest width there are two elements on the same line, but they are left aligned. For example I have six items, with ‘|’ indicating the container boundaries:
|(item)(item)(space)|
|(item)(item)(space)|
|(item)(item)(space)|I would like it to be centered like the following:
|(space)(item)(item)(space)|
|(space)(item)(item)(space)|
|(space)(item)(item)(space)|This also comes into play when the site is at one of it’s smaller widths, and only one element per line is visible:
|(item)(space)|
|(item)(space)|
|(item)(space)|
|(item)(space)|
|(item)(space)|
|(item)(space)|When I would like that to look like:
|(space)(item)(space)|
|(space)(item)(space)|
|(space)(item)(space)|
|(space)(item)(space)|
|(space)(item)(space)|
|(space)(item)(space)|It appears that the div “element hugeitmicro-item” is the container for each item, but it is absolute positioned at left 0px top 0px for each.. I’ve been trying to toy with some of the CSS to move them around, but I just cannot seem to get it working. How can I accomplish centering the items?
- The topic ‘Centering elements within container..’ is closed to new replies.