1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

2 column layout

Discussion in 'CSS' started by tony84, Jan 6, 2006.

  1. #1
    hi im in the middle of creating a totally new layout and my css is very bad so i would like a bit of help ive tried a few online generators but they arnt really much good - either that or more likely its me

    anyway what im wanting is a design in css which looks something like:
    rough

    i dont expect the little boxes on the left but it would be nice to get a simple 2 column centerised layout with a header, tables i can create it in seconds but i want to make my new 1 css based and i cant even find a rough design to work off so if anyone knows of any id appreciate a link to it

    tony
     
    tony84, Jan 6, 2006 IP
  2. dkin69

    dkin69 Active Member

    Messages:
    644
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    try this site, taught me css a few years back, let me know if it helps.

    http://www.lissaexplains.com/css3.shtml
     
    dkin69, Jan 6, 2006 IP
    tony84 likes this.
  3. tony84

    tony84 Well-Known Member

    Messages:
    1,864
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #3
    the bottom 1 on that site is what i want but i want it to be centerised and with a width of about 700pixels thats the bit im having problems doing
     
    tony84, Jan 7, 2006 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Check out the individual article pages on my site. The column sizing is done via javascript to make the height of the columns equal.

    Like for instance, this article about the Scott Stapp upcoming wedding.

    Admittedly, my css is a little out of control, but it is a starting point. Not too difficult to find the column/layout basics though.
     
    nevetS, Jan 7, 2006 IP
  5. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can center your layout this way. Suppose that the following div is the container of the other code of the layout:
    <div id="container">
    </div>

    Use this css:
    #container {margin:0 auto; width:700px}
     
    Instromaniac, Jan 17, 2006 IP