Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floats are different across browsers? (example) 2

Status
Not open for further replies.
It's acctually not wrapping around it's getting clipped.
try this
Code:
#leftside {
	FLOAT: left; WIDTH: 170px; HEIGHT: 100%;
	border:solid;
	border-color:red;
	
}
#rightside {
	FLOAT: right; WIDTH: 170px; HEIGHT: 100%
}
#middle {
	FLOAT: left;
	border:solid;
}
It will help you see what is going on. As for fixing that there are many ways to go about it. You can specify hieght for example.
Code:
#leftside {
	FLOAT: left; WIDTH: 170px; HEIGHT: 100%;
	border:solid;
	border-color:red;
	height:100px;
	
}
#rightside {
	FLOAT: right; WIDTH: 170px; HEIGHT: 100%
}
#middle {
	width:500px;
	FLOAT: left;
	border:solid;
}
I would look further into it but i gotta drive home now :<

I don't know the answer but my good friend Google does.
 
opps what i meant was make the widths fixed so it doesn't get clipped. nvm the height it's already in there.
Code:
#leftside {
	FLOAT: left; WIDTH: 170px; HEIGHT: 100%;
	border:solid;
	border-color:red;
	
}
#rightside {
	FLOAT: right; WIDTH: 170px; HEIGHT: 100%
}
#middle {
	width:500px;
	FLOAT: left;
	border:solid;
}
sorry about that...long day.

I don't know the answer but my good friend Google does.
 
Thanks, j4606!

Now another problem...

In IE, the last 3 characters of whatever is in the "rightside" div is being duplicated directly the "rightside" div.

Confusing...

Why?
 
line 343 in your html
Code:
<DIV id=rightside>RIGHIasDE[COLOR=red]</DIV>[/color]<!-- "rightside" -->[COLOR=red]</DIV>[/color]<!-- "maincontainer" -->
thats something that would have been fixed by having valid html. Seems like an extra </div> tag.

I don't know the answer but my good friend Google does.
 
good read. I would of never figured that out. Something was wrong with that line cause when I removed one of the </div>'s it magically worked. Thanks for the info. Glad to know it wasn't a div but a comment.

I don't know the answer but my good friend Google does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top