Facing problem with fixed width

Facing problem with fixed width


How to make div elements wjich are present inside my

  • fit to same width ?

  • #2

    That is a very vague question. Can you re-phrase so we know what you’re asking?


    make all div elements inside

  • elements give same width?

  • #4

    I have put div elements in li (list) in a loop.I want all those div elemets to be of same width?


    Are you familiar with CSS? You can set the width of elements with CSS.

    li {
      width: 200px;

    Are we looking at sentences of several words? Can you provide a code sample?



    If I understand this correctly, if you do a body width 100%. The child will inherit 100% width as well.

    My div don’t often need 100% width, it just does it default.