The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS best method for css columns?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #38958

    I am making a new layout and I need to make a section for 4 columns with equal padding between them. I have messed with relative and absolute positioning, floating left with margins to make the white space. My problem is that I need no margin on the first and last column and I am finding first-child and last-child to be problems. I also want to optimize this layout for wordpress so I am trying desperately hard not to assign classes to individual columns that way I can make my loop in wordpress and not have to worry about it. What do you think?


    Would this not do the trick?

    First-child is ussualy well-supported (unlike last-child).


    Your answer is BlueprintCSS or Bootstrap by Twitter!


    960gs can also do this.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.