Forums

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
    Posts
  • #38958
    cybershot
    Participant

    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?

    #106303
    filipeb
    Member

    Would this not do the trick? http://jsfiddle.net/PNDTm/1/

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

    #106306

    Your answer is BlueprintCSS or Bootstrap by Twitter!

    http://blueprintcss.org/
    http://twitter.github.com/bootstrap/

    #106307
    Paulie_D
    Member

    960gs can also do this.

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