Yii Framework Forum: Elements overflow div - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Elements overflow div Rate Topic: -----

#1 User is offline   moginn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 50
  • Joined: 07-April 12
  • Location:Spain

Posted 10 October 2014 - 12:45 PM

Hi,

I want to add a border to the page in Yii 2. So I have done the following:

<body>
<div style="width:90%;border:1px solid black;margin-left:auto;margin-right:auto;">
...
</div>
</body>

However, this results in the elements overflowing the div. Please see the screenshot attached.

What could I do to fix this problem?

Attached File  screenshot.JPG (105.92K)
Number of downloads: 3
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users