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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE again... What wlse :{} !!!!! alignment

Status
Not open for further replies.

elebee

Technical User
Jul 8, 2005
23
GB
Hi Guys,

I hoping someone would be able to help me with this. IE (as usual) is giveing me grief!!

The easiest way to explain is going to be to show you.

Look here:
In FF the RED content box fits snugly where is should do

but in IE it doesn't fit and goes onto the next line. grrrrr!!

I cant seem to sort it.

heres my css:
Code:
/* THESE THREE DIVS ARE THE CULPRITS */ 
#bodyblock 
 position:relative;
 background: #ffffff;
 color: #333333;
 width:760px;
 padding:0;
 }
#l-col {
	float:left;
	background:#FFFFFF;
	width:275px;
 }
#cont {
	width:485px;
	background:#ff0000;
	color: #333333;
 }
/* THESE THREE DIVS ARE THE CULPRITS*/




body {
 margin:5px;
 background:#FFFFFF;
 color: #333333;
 text-align:center;
 padding:0;
 }
#outer {
 text-align:left;
 border:2px solid #6B124E;
 width:760px;
 margin:auto;
 }
#hdr {
 height:128px;
 background:#FFFFFF;
 color: #333333;
 }
#bar {
	position:relative;
	height:12px;
	background:#FFFFFF;
	color: #333333;
	overflow: hidden;
 }
 #barr {
 position: absolute;
 right:4px;
 top:0px;
 background:ffffff;
 }

#ftr {
 height:25px;
 background:#c0c0c0;
 color: #333333;
 border:solid black;
 border-width:1px 0 0 0;
 margin:0;
 }

Can any one solve it??

Thanks

Ele Beezzzzzzzzzzzzzzzzzzz
 
try changing the <div id="cont"> to a <span> IE tends to like to separate div's a bit much
 
Thanks Guys, got it sorted

i love this place
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top