Forums

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

Home Forums CSS one div on top of button

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #43475
    pallavi1811
    Participant

    Hi,

    I want one div whose background-color is white. and on top of that div i have create a box. now how to position that div on top of parent div, m not getting.

    MOD EDIT: Codpen instead of borked code : http://codepen.io/anon/pen/jDxBH

    i want white background over that this button. please help me do this.

    #128661
    Paulie_D
    Member

    You have a background on the button

    background-color: #F8F8F8;

    #128664
    pallavi1811
    Participant

    that is the background color of the button.

    i want another white background behind it. which has more height and width than the button.. kinda surrounding the button.

    #128665
    pallavi1811
    Participant

    can i paste image here of what exactly i want? how to paste image here?

    #128666
    Paulie_D
    Member

    Try giving a background color other than white to the div.

    You might also want to add a height.

    #128711
    pallavi1811
    Participant

    i want button div on top of other div with white background.. how to put on top of a div?

    #128720
    yoyo
    Participant

    may be the z-index is the issue

    use z-indexattribute for both the div’s, the top div must have high z-index value

    use codepen to show the actual problem

    #128726
    devil3682116
    Participant
    #128694
    Paulie_D
    Member

    >i want button div on top of other div with white background.. how to put on top of a div?

    I don’t understand. Why would you put a div on top of a button…that make zero sense?

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