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.

Layout Help

Discussion in 'CSS' started by mikee.jk, Mar 2, 2009.

  1. #1
    Hi gurus,

    i am attaching an image, for which the markup has to be created,

    i tried with table, but that seems to be helping little,

    the problem is , i need a space at the top and bottom of every td which has a 1px right border (see image)

    also each row has a 1px bottom border as a separator for rows.

    can this be achieved or any other solutions....


    thanks in advance
     

    Attached Files:

    mikee.jk, Mar 2, 2009 IP
  2. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Using grid layout using this tool

    www dot pagecolumn dot com /grid_layout_generator.htm

     
    unigogo, Mar 2, 2009 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's not even valid code.

    coordinates such as left do not work on unpositioned elements. Robots can't write code.

    What mikee was asking actually was how to not have the borders reach all the way to the tops and bottoms of the td's.

    And I'll agree with that other forum, put the borders on some inner element, it can even be a div, and give THAT inner element some margin of like a px or something to make the space. You'll have to be careful though since non-table elements won't follow the same rules as table borders (if you're using something like border-collapse: collapse;), so you'll really need to manually set these borders.
     
    Stomme poes, Mar 3, 2009 IP
  4. dickieknee

    dickieknee Active Member

    Messages:
    441
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #4
    have you tried in your html for the table tag to use cellspacing and cellpadding, then in css set your border width and color using border-right etc to isolate which border is set.
     
    dickieknee, Mar 4, 2009 IP
  5. mikee.jk

    mikee.jk Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i tried with cellpadding and cellspacing (not working), but i got it with adding one empty row b/w every rows to achieve the layout.
     
    mikee.jk, Mar 5, 2009 IP