Forums

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

Home Forums CSS Background height not working

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #248494
    wolfgang1983
    Participant

    I am trying to get the background of my prices div to be bigger than my prices table.

    But since i use positions and z-index the right side table seems to go past back ground

    The back ground does not get bigger if tables are bigger or using positions etc.

    How do I solve this?

    http://codepen.io/wolfgang1983/pen/XNzOxG

    #248496
    I.m.learning
    Participant

    You have 2 instances of .price-plan-2 in your CSS. When I deleted both of them in your CSS; they lined up topside.

    I’m not sure if this is a big deal; but- t/head should have “th” instead of td…this is what I was taught, but seems to work fine.

    #248498
    Beverleyh
    Participant

    I’m not sure what it’s supposed to look like. Are the tables supposed to be staggered like that? If that’s your aim, what about using margin-top to push the right one down (also remove position:absolute/relate). The background will expand height-wise then.

    Maybe you should provide a picture of what you’re aiming for though.

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