473,395 Members | 1,783 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,395 software developers and data experts.

IE CSS hell

4
Hi there -

I've just redesigned my site (http://scandal.org ) as a simple photo gallery. I'm having some trouble getting it to display as I'd like on IE (7.0, Win). I'd like your advice on a few points:

1) Positioning

The design is very no-frills: 750px fixed width, a centred photo with a logo on the top left, navigation menu on the top right, a link to the photo's Flickr page on the bottom left, and a footer graphic on the bottom right. Each element is left- or right-justified depending on which side of the page it's on.

While Firefox and Safari render this correctly, IE displays the navigation menu a good few hundred pixels too far to the right, and shunts the photo link a few hundred pixels to the right.

Why is this? I'm using absolute positioning to get the elements to display exactly where I want them, which I figured was the easiest way. Could this be the problem, and is there a better way of doing this that would display correctly in all browsers?

2) Font

I'm using the Courier font. On a Mac, Firefox and Safari both display this as I'd like. On Windows, both Firefox and IE display the font slightly differently - the characters appear thinner. How can I get exactly the same font to display on both platforms?

Lastly, I'd be interested in any other comments on the code that you may have so I can optimise it.

cheers

Mehran

PS I should also note that I'm working on a Mac, using Coda, and I use the FSViewr script to pull the images out of Flickr - but this shouldn't have much of a bearing on the design.
Sep 10 '07 #1
8 2051
drhowarddrfine
7,435 Expert 4TB
As to the font, Macs display fonts in a 'for publication' style, that is, anti-aliased, while Windows does not, hence the difference in looks.

I'm now looking at the first problem.
Sep 10 '07 #2
drhowarddrfine
7,435 Expert 4TB
I have to go but I'm wondering why the navigation is not inside the #header. Didn't quickly see why IE is placing it outside of #header.

You do have six html errors. Validate for that list.
Sep 10 '07 #3
scrm
4
Thanks for your response. I've rectified the HTML errors. The IE positioning problem persists.

The navigation div (#fjs-flickrphotonav) is generated by the gallery script I'm using (see the PS in my first post for a link). I couldn't find a way to include that specific div in the header, because as I understand it, all the div's relating to the gallery script are written out one after the other when the script runs. That's why I'm using absolute positioning with these divs to get the elements where I want them on the page - which seems to be causing this problem with IE.

Any guidance on this would be appreciated.

cheers

Mehran
Sep 10 '07 #4
scrm
4
Guys - sorry to chase but I still need help on this one. To summarise the problem:

I'm having trouble getting my site (http://scandal.org) to display properly with IE (7.0, Win). The design is very no-frills: 750px fixed width, a centred photo with a logo on the top left, navigation menu on the top right, a link to the photo's Flickr page on the bottom left, and a footer graphic on the bottom right. Each element is left- or right-justified depending on which side of the page it's on.

While Firefox and Safari render this correctly, IE displays both the navigation menu (#fjs-flickrphotonav) and the photo's Flickr link (#fjs-flickrlink) a few hundred pixels too far to the right, which breaks the whole design.

These two problematic divs are generated by the FSViewr gallery script I'm using to pull images out of Flickr. As I understand it, all the divs relating to the gallery script are written out one after the other when the script runs. So I'm using absolute positioning with these divs to get the elements where I want them on the page - which seems to be causing this problem with IE.

Any ideas? I have a feeling I'm missing something really obvious!

cheers

Mehran
Sep 15 '07 #5
drhowarddrfine
7,435 Expert 4TB
It's hard to see what the js is doing but seems to be generating the markup outside the header. Why IE is responding the way it does, I can't tell.
Sep 16 '07 #6
PaulVS
13
Hi,

I fixed it by using this CSS code:

Expand|Select|Wrap|Line Numbers
  1. #fjs-flickrphotonav {
  2.  
  3.     top: 0px;
  4.     margin-top: 43px;
  5.     position: absolute;
  6.     z-index: 0;
  7.     text-align: right;
  8.     margin-left: 593px;
  9.     color: #999999;
  10.     font-size: 10px;
  11.     float :left;
  12. }
  13.  
The float: left; solved the problem. IE excluded the logo image in the margin-right. While Firefox included this. A float solved this.

Greetings,

Paul
Sep 17 '07 #7
drhowarddrfine
7,435 Expert 4TB
Very good! To tell the truth, I think it's a hack, but if it works.... :)
Sep 17 '07 #8
scrm
4
Paul thanks, a float: left fixed the positioning of both of the problem divs in IE.

cheers both for your help.
Sep 18 '07 #9

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

Similar topics

0
by: kayodeok | last post by:
We're Mad As Hell And We're Not Going To Take It Anymore http://hownow.brownpau.com/index.html The web is a mess. We're tired of this deluge of <font> tags, nested tables, spacer GIFs, and...
3
by: .DLL hell II - The Evil Empire Strikes Back | last post by:
I can't figure out how this side-by-side assembly stuff it supposed to work. I have a stack of four assemblies A has no references B references A & C C References A & B D References A, B and C...
22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
2
by: Nad | last post by:
Hello, dll hell has been eliminated in .NET using assembly versioning. I am new in .NET and would like to know if there is any dll-hell-equivalent in .NET Windows or Web development...
21
by: Nx | last post by:
Hi I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2....upto aN whatever is in the list. How to create the variables dynamically...
1
by: GreatB | last post by:
Bill Gates died in a car accident. He found himself in Purgatory being sized up by God . .. "Well, Bill, I'm really confused on this call. I'm not sure whether to send you to Heaven or Hell....
18
by: Dave Sauny | last post by:
Ok, its a friday, I'm at work and I cant get this to work: I have 3 listboxes on one tab control page. when i select an item in listbox1 i want whatever is selected on the other 2 listboxes...
3
by: fyleow | last post by:
I just spent hours trying to figure out why even after I set my SQL table attributes to UTF-8 only garbage kept adding into the database. Apparently you need to execute "SET NAMES 'utf8'" before...
2
by: Scott M. | last post by:
I need a little help please... I'm simply trying to set up a very basic event for a class and then create an event handler for that class in a Console application. I think I'm very close, but...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.