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
Share on other sites

Thanks for your reply, however what if I don't know the width as a number?

 

Im placing two jQuery isotope instances side by side so I have no idea what the overflow is.

 

need to have a fixed width set.

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.