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!

Nested inline divs -- Firefox vs. IE

Status
Not open for further replies.

snitin78

Programmer
Mar 16, 2009
96
US
So, this might be super simple, but my novice-HTML-brain is just not getting this right! :)

What I need is a footer for a HTML page that has copyright info in the center and some other message towards the right.

I am trying to following HTML to achieve this:

Code:
<html>
	<head>
		<title>Div Try</title>
	</head>

	<body>
		<div style="width: 100%;">
			<div style='float: left; width: 50%; display: inline; text-align: right;'>
				Copyright information needs to be here
			</div>
			<div style='float: right; width: 50%; display: inline; text-align: right;'>
				Application message
			</div>
		</div>
	</body>
</html>

This works fine in Firefox but not in IE8!!! IE8 still places the div on top of each other rather than inline.

What am I doing wrong here? Thanks in advance for the help.
 
You could make the width 49% to make them fit (tested) or possibly override the default margins and padding in IE to see if that would work (not tested).

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top