close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Frustrating CSS Issues with IE7

Thread began 11/17/2011 4:59 am by CraigR | Last modified 11/17/2011 6:36 am by MikeyT | 1437 views | 3 replies |

CraigRBeta Tester

Frustrating CSS Issues with IE7

A recent client has come back to me as some of his customers cannot view his site properly when using IE7.

Basically, there are some div elements within the header which are fine in all modern browsers, but IE7 hides some of them.

In order to attempt a quick fix, I thought the best thing to do was position the elements absolutely.
This at least makes the elements visible, but when they are viewed in IE7 their position is different than FF/Chrome etc.

Debugging is a pain as I need to use a virtual PC to see the results.

Grateful for any tips/advice

screenshot attached, with section of css below...

#intl-flags {
width: 400px;
z-index: 2000;
margin: 0 0 0 300px;
position:absolute;
}
#search {
height: 50px;
width: 300px;
z-index: 2000;
margin: 40px 0 0 300px;
position:absolute;

}
#viewcart {
height: 50px;
width: 225px;
z-index: 2000;
margin: 40px 0 0 500px;
position:absolute;
}
Sign in to reply to this post

MikeyT

This post has been deleted.

MikeyT

Craig,
Have you tried creating a less than equal to IE7 conditional style sheet to target IE6 and IE7 and positioning the absolute positioned elements using left: and top: attributes as opposed to margins? For instance:

#intl-flags {
width: 400px;
z-index: 2000;
margin: 0;
position:absolute;
top: 0;
left: 300px;
}
#search {
height: 50px;
width: 300px;
z-index: 2000;
position:absolute;
top: 40px;
left: 300px;
}
#viewcart {
height: 50px;
width: 225px;
z-index: 2000;
position:absolute;
top: 40;
left: 500px;
}

Also, is your containing element (assuming the header is a div) set to position: relative;?

Sign in to reply to this post

CraigRBeta Tester

Thanks for the reply Mikey.

Once I decided to make the divs absolute, I think I should have moved them outside of the header div, (but still within the outerwrapper div).

Having done so, although there are some minor spacing issues, I think it is behaving a lot better.

Give me php/mysql any day !

Sign in to reply to this post

MikeyT

No problem, Craig. You can leave them inside the header, but just make sure the header div has a position: relative; attribute set on it. It will be the parent element and all containing elements will have a positioning reference starting at the top, left corner of that parent element.

I was also wondering if it was the large left side positioning/margin that was kicking them over so far to the right. But without seeing where the header's left boundary is, it's hard to gain a point of reference.

At any rate, glad its working for you.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...