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.

Can I make a table like this with just CSS?

Discussion in 'CSS' started by marketjunction, Dec 2, 2005.

  1. #1
    Hi,

    I decided to get away from tables a bit and go more CSS. However, I have a graphic oriented table I want to make, but have no clue if it is possible or how to do it.

    I am attaching an example.

    [​IMG]

    Any help appreciated. I am looking around and searching, but so far just finding normal table info. Kind of lost on this one.
     
    marketjunction, Dec 2, 2005 IP
  2. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This example looks very easy. You need two divs, both have width=100%
    The first one you put in your html will go on top, then the next, underneath.

    Now, take this and ask more questions:
    http://mikx2.com/demo1.html
     
    mikmik, Dec 2, 2005 IP
  3. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #3
    I understand how to make a basic table, but not a graphic table like the one shown with border, gradient graphic and so forth.
     
    marketjunction, Dec 2, 2005 IP
  4. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #4
    Well, 30 sites later, I found an example that kind of does what I was looking for. Now on to the experimentation.

    Think I was making it more complicated than it was.
     
    marketjunction, Dec 2, 2005 IP
  5. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the_pm, Dec 3, 2005 IP
  6. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #6
    gradient how?
     
    mikmik, Dec 3, 2005 IP
  7. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Oh yeah? BG pic!
    [​IMG]
     
    mikmik, Dec 3, 2005 IP
  8. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Bingo ;)

    Here's a link to the background image. There isn't much to it - http://www.paulhirsch.com/ex/div_not_table/bg.png

    But don't be surprised when the day comes you'll be able to create gradients like this using code only!
     
    the_pm, Dec 3, 2005 IP
  9. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #9
    Yea, I spent hours last night playing around and made my table. :D

    I am liking CSS more and more now. Up until now I have only used CSS for some simple attribute changes mainly.
     
    marketjunction, Dec 3, 2005 IP
  10. Shodan5

    Shodan5 Guest

    Messages:
    53
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You can't, tables are for "DATA", css are for "designs". I suppose just make a jpg as a bg.
     
    Shodan5, Dec 5, 2005 IP
  11. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #11
    I made the above table utilizing CSS for attributes and positioning just fine.

    In the past, I would have made the entire table and sliced it up then done a bunch of bg's on cells. CSS makes it easier and cleaner.
     
    marketjunction, Dec 5, 2005 IP