Forums

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

Home Forums CSS How to have one div inside another

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #249648

    Hi I am using canvasjs for making a chart. It is very simple to make a particular chart but here is the problem I want to have two different charts such that a pie chart would be inside of a doughnut chart.

    I am not able to make one other inside. I have used the

    display :inline-block;

    I have added codepen link
    http://codepen.io/adishri22/pen/qRBQdb

    #249687
    Shikkediel
    Participant

    You’d need to give one of them a transparent background at least:

    codepen.io/anon/pen/ygyNvj

    backgroundColor: null
    
    #249709

    Yes, I figured that out. Now, I am able to have that I want. You can see now here
    codepen.io/adishri22/pen/zNxNJr

    #249713
    Shikkediel
    Participant

    That looks quite nice now. :-)

    #249715

    thanks :)

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