Jump to content

Recommended Posts

Posted

Both the code snippets below work fine in IE 6, but the image and/or text bleeds out of the container div when viewed with Firefox 1.5.

 

Any suggestions??

 

...using align="left" on the image:

><div style=" text-align: left; margin: 0px 2% 0px .5%; padding: 15px 10px 15px 10px; width: 94%; border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-style: solid; border-color: #000000; background-color: #d9dffd;">
		<a id="ace"></a>
		<span style="font-family: chiller, comic sans ms; font-size: 30px; color:#003399; font-weight: bold;">Ace of the Month</span>
	 	<br />
		<img src="images/ace_month_2006_03.jpg" alt="" border="0" width="225" height="300" align="left" />
			sajkdf sfl;kjsa fsdfj sfs dfsadj d sd f fsd fdsfds fd d d sd; sd dkfjsad fsdf sdsd fsd sdsd sd fsd fsdf sdf sdf sdf ds f sd dfs fd  sfd sd f sd sdf sdf sad f sda fsd f ew we fv ew f ve ge v e ve vgvaasdfs ds f sda fsad fsda fas f sdf sda fsad f sadf sad f dsaf

</div>

 

... or putting the image and text in separate divs:

><div style=" text-align: left; margin: 0px 2% 0px .5%; padding: 15px 10px 15px 10px; width: 94%; border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-style: solid; border-color: #000000; background-color: #d9dffd;">
		<a id="ace"></a>
		<span style="font-family: chiller, comic sans ms; font-size: 30px; color:#003399; font-weight: bold;">Ace of the Month</span>
	 	<br />
		<div style="float: left; width: 40%">
		<img src="images/ace_month_2006_03.jpg" alt="" border="0" width="225" height="300" />
		</div>
		<div style="float: left; width: 20%">
			sajkdf sfl;kjsa fsdfj sfs dfsadj d sd f fsd fdsfds fd d d sd; sd dkfjsad fsdf sdsd fsd sdsd sd fsd fsdf sdf sdf sdf ds f sd dfs fd  sfd sd f sd sdf sdf sad f sda fsd f ew we fv ew f ve ge v e ve vgvaasdfs ds f sda fsad fsda fas f sdf sda fsad f sadf sad f dsaf
		</div>
</div>

Posted

My opinion is Firefox is rendering it as you have coded it and IE is rending it as you want it. This is a common occurance between browsers. While Firefox is standards compliant IE6 is not.

 

Do you have a link?

Posted

Sure, here's a link -- but the site is under construction at this time so it looks a little rough right now.

 

div example

 

Even if the code snippets above are placed on a basic html page, then the problem will still occur. Strange thing is, I have other pages with nested divs and pictures but there are no problems -- so, yes, it's probably buggy code :)

Posted (edited)

Yikes, another late night and another <probably> simple problem . :)

 

I'm having the exact opposite issue now: Firefox renders as expected (which is usually the case) and IE is wacko.

 

If anyone wants to take a quick look, it'd be great. Site's still under dev

 

example of problem The pic should have some text to the right and a div under it with text, not text wrapping around it.

 

- many thanks

Edited by MarkMan
Posted

When I mentioned to add the overflow to your CSS I meant your style sheet tag and not inside your source document. Maybe that's what's causing an issue in IE6.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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