Jump to content

Overflow


hackalive

Recommended Posts

Hi guys,

 

I have the following code:

 

CSS

* {
margin: 0 0 0 0;
}

body, html {
overflow: hidden;
}

#container {

}

#setA {
float: left;
display: inline-block;
margin-left: 0.75in;
}
#setB {
float: left;
display: inline-block;
margin-left: 0.75in;
}
#setC {
float: left;
display: inline-block;
margin-left: 0.75in;
}

.item {
background: blue;
width: 500px;
height: 500px;
}

 

PHP

		<div id="container">
		<div id="setA">
			<div class="item"></div>
		</div>
		<div id="setB">
			<div class="item"></div>
		</div>
		<div id="setC">
			<div class="item"></div>
		</div>
	</div>

 

On my screen "SetC" goes onto a new line and does not overflow the screen horizontally (and then need to scroll to see it) like it should.

 

How can I fix this?

Link to comment
https://forums.phpfreaks.com/topic/260125-overflow/
Share on other sites

  • 3 weeks later...
  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.