473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CSS Div Wrapping in IE7: Your help would be appreciated.

Hey all - I'm having a problem with getting text to wrap around a DIV in IE7. It of course renders nicely in FF.

The page in question is http://techwatching.com.

The content on that page changes regularly, so here are two screen grabs:
FF2 behaviour, as it should be everywhere
IE7 wrapping issue

The classes are like so:

Expand|Select|Wrap|Line Numbers
  1. .video { display:inline-block; float:right; position:relative; margin-left:15px; padding:10px; border:1px solid gray; }
  2. .top_article { margin:0 0 0.5em 10px; font-family:arial,sans-serif; width:90%; }
  3. .new_story { padding-bottom:1em; }
The DIV's are arranged as follows:

Expand|Select|Wrap|Line Numbers
  1. <div class="new_story">
  2.    <div class="video"></div>
  3.    <div class="top_article"></div>
  4. </div>
If you take a look at the page code, you'll see its a real dog's breakfast - I'm by no means a designer or coder by profession - strictly a weekend warrior.

That being said, I'm stymied by this one and would really appreciate any assistance you can share. I've tried reorganizing divs, different "display:" settings, "position:" settings, etc. to no avail. If tried it with and without "min-height" as well.

Any suggestions?

-Rod.
Jan 16 '08 #1
2 1747
garrow
32
I think it might be something to do with inline-block, its not supported in firefox.

If you put a 1px border on new_story you'll see its top left corner is actually at the top left corner of the video box.
IE appears to be trying to push the content as far right as possible to fit inside this box.

You shouldnt use inline-block for floats anyway, as block and float takes it out of out of the flow of the document.
Jan 17 '08 #2
Garrow - thanks for the reply; I've changed out the php script that generates the output, so at least it should be easier to experiment now - first thing I'll try will be your suggestions.

Thanks and regards,
-R

I think it might be something to do with inline-block, its not supported in firefox.

If you put a 1px border on new_story you'll see its top left corner is actually at the top left corner of the video box.
IE appears to be trying to push the content as far right as possible to fit inside this box.

You shouldnt use inline-block for floats anyway, as block and float takes it out of out of the flow of the document.
Jan 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: yawnmoth | last post by:
word wrapping normally treats some spaces as line feeds, if there hasn't been a line feed for quite a while. so while a string with eighty consecutive a's might not word wrap, a space placed...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, My workstation has been automatically updating IE6 to IE7. When this happens I have a problem with Click Once deployment (VS2005). What happens is that I can still publish applications...
1
by: jmedinger | last post by:
Hiya there I'm trying to get prevent what I think is a bug from happening in IE7 If you load (in IE7)this page (mildly adult content please be warned) and look at the box containing the...
4
by: justabeginner | last post by:
First of all, let me say I've had very little training in html and probably know just enough to be dangerous. I designed a website for my alumni association last summer using XHTML Transitional and...
12
by: Koelner | last post by:
Hello all, am very frustrated because I can't get a simple table to display the same way in both browsers. It displays the way I want it to in Firefox but not in IE7 (Windows XP). 1) not sure if...
2
by: melvinsdayout | last post by:
I have been having problems with IE 7 not responding to changes in the style sheet it is linked to. My problem is that my site looks good in Firefox, and was looking good in ie7 via an statement...
1
by: innivive | last post by:
I am having a problem with having margins display correctly in IE7, Firefox and Safari. I am not sure if it is the "double margin error" or something else. Any help would be appreciated. The file...
8
by: sheldonlg | last post by:
I have an app where position fixed works for FF and IE6 (with workaround). On IE7, the popup doesn't stay fixed in one place. The URL is http://www.sheldonlg.com/popup/popupLoc.html Click of...
5
by: ameshkin | last post by:
I have been unable to fidn a good JS debugger for IE7. Often times, the same scripts work in firefox but crap out in IE7, to see source code, do the following. Go here...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.