473,732 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE image position

Hi,

My logo images are positioned some more to the right in IE6 than in
FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue,
why they are positioned differently in IE?
Problem description and example can be found at:

http://www.kinderuitje.nl/problem.html

Thx

Sep 28 '06 #1
5 2268

Roderik schreef:
Hi,

My logo images are positioned some more to the right in IE6 than in
FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue,
why they are positioned differently in IE?
Problem description and example can be found at:

http://www.kinderuitje.nl/problem.html

Thx
A scaled down version with css inside and without header, footer, leftt
and right column can be found at:

http://www.kinderuitje.nl/problem2.html

Here you see almost no difference between IE and FF, but that might be
because it already takes all the space available. In Opera it is
obviuously quite different.
Any suggestions for a solution or work-around without tables?

Oct 1 '06 #2
On 30 Sep 2006 18:20:33 -0700, "Roderik" <em******@gmail .comwrote:
>Roderik schreef:
>My logo images are positioned some more to the right in IE6 than in
FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue,
why they are positioned differently in IE?
Problem description and example can be found at:

http://www.kinderuitje.nl/problem.html

A scaled down version with css inside and without header, footer, leftt
and right column can be found at:

http://www.kinderuitje.nl/problem2.html

Here you see almost no difference between IE and FF, but that might be
because it already takes all the space available. In Opera it is
obviuously quite different.
Any suggestions for a solution or work-around without tables?
Well, I had a go at working out what was going on, but frankly it's a
mess. You've got position: relative scattered around all over the place,
some position: absolute which you probably don't need, float: right
within unsized float: left, "float: left; width: 100%" which isn't
obviously useful, margin and padding 0 on all elements, which is not
going to be helpful with paragraphs and lists, #header defined multiple
times ...

To be honest it looks to me as if you've just thrown things together in
the hope that something will work.

I suggest you throw everything away and start again, adding only those
properties which you understand. In particular don't use "position"
unless you understand exactly what it's doing and, especially, why you
need it. Most pages can be put together very nicely without "position".

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Oct 1 '06 #3
Stephen Poley schreef:
On 30 Sep 2006 18:20:33 -0700, "Roderik" <em******@gmail .comwrote:
Roderik schreef:
My logo images are positioned some more to the right in IE6 than in
FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue,
why they are positioned differently in IE?
Problem description and example can be found at:

http://www.kinderuitje.nl/problem.html
A scaled down version with css inside and without header, footer, leftt
and right column can be found at:

http://www.kinderuitje.nl/problem2.html

Here you see almost no difference between IE and FF, but that might be
because it already takes all the space available. In Opera it is
obviuously quite different.
Any suggestions for a solution or work-around without tables?

Well, I had a go at working out what was going on, but frankly it's a
mess. You've got position: relative scattered around all over the place,
some position: absolute which you probably don't need, float: right
within unsized float: left, "float: left; width: 100%" which isn't
obviously useful, margin and padding 0 on all elements, which is not
going to be helpful with paragraphs and lists, #header defined multiple
times ...

To be honest it looks to me as if you've just thrown things together in
the hope that something will work.
I think I am quite experienced in the use of CSS (but just not enough
to understand all the differences for the top browsers), the basic
three column layout comes from a template, but the rest is written by
myself, not copied from examples.
>
I suggest you throw everything away and start again, adding only those
properties which you understand.
In particular don't use "position"
unless you understand exactly what it's doing and, especially, why you
need it. Most pages can be put together very nicely without "position".

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Things might be defined several times because I simplified to code here
to make it easier to get help. There are actually two stylesheets and
soms server-side generated css inline.
One of the stylesheets is for presentation/style and the other one is
for layout purpose.
I thought that it was a good thing to explicitly define how things
should be positioned, absolute/relative.
The float:left;widt h:100% is not so useful that's true, I might change
that.
I really like all margins and padding to be 0 by default, else you wont
get your text exacly to the corner of a div, so it fits pixel perfect
with the background in several cases. The faux columns idea will
automatically generate the idea of a margin to paragraphs in a column.
Since all pages come from the database it is sometimes necessary to
serve style code for elements which are not available on every page. I
think that is a better idea than to make all styles page-specific for
about 1000 pages.
But anyway, the only problem with the page as in problem.html is the
position of the float in the middle in relation to the image inside. I
don't see why I should rebuild my css. I am trying to isolate the
middle column to find where the problem comes from, why the browsers
have a different interpretation of my code.
And If I can't fix it, I can always place the image in a table and the
position will be right in all browsers, but I prefer divs since it is
no table data (although that might be debatable). Another reason is
that I want to learn from my mistakes and there prefer to solve them
instead of using a work-around.
Suggestions on what might cause the different behaviour (for example
the far too small background behind the image in Opera or the position
of the image logo, most clearly in problem.html) are welcome and
appreciated.

Oct 1 '06 #4
Roderik wrote:
>
A scaled down version with css inside and without header, footer, leftt
and right column can be found at:

http://www.kinderuitje.nl/problem2.html
Reduce the CSS to a minimal case, too, not just the HTML. The answer may
even reveal itself when you do that.
I think I am quite experienced in the use of CSS (but just not enough
to understand all the differences for the top browsers),
Um, those seem to be conflicting statements.
the basic three column layout comes from a template
Perhaps you aimed for a layout too complex for your CSS skill level, or
started with a bad template. Keep it simple, especially if you aren't
quite sure what you're doing.

Regardless, you've ended up with a mess of "div soup", which is tough to
decipher and maintain. It's semantically poor, too, so you have
potential accessibility problems on top of it.
Things might be defined several times because I simplified to code here
to make it easier to get help.
700 lines of CSS and 50 lines of HTML doesn't seem very simplified to
me. Simplify the CSS. Better yet, delete all of it then add back
selectors and properties one at a time so you can see for yourself how
elements are affected in different browsers. That's a pretty good way to
learn, too.
I really like all margins and padding to be 0 by default, else you wont
get your text exacly to the corner of a div, so it fits pixel perfect
Attempts at a "pixel perfect" layout are doomed to failure. If you give
the idea up, you will save yourself heaps of frustration.
But anyway, the only problem with the page as in problem.html is the
position of the float in the middle in relation to the image inside.
No, that is not the only problem, but it seems to be the only issue you
are willing to discuss.
I don't see why I should rebuild my css.
Because it's overly complicated and hard to understand and maintain?
I want to learn from my mistakes
Good. In that case, you shouldn't just dismiss the advice given to you.
Mr Poley gave you some good suggestions. Give them some consideration.

--
Berg
Oct 1 '06 #5
On 2006-10-01, Roderik <em******@gmail .comwrote:
[snip]
I thought that it was a good thing to explicitly define how things
should be positioned, absolute/relative.
Most things are position: static by default though. Only use
absolute/relative or fixed if you have a reason to I would say.
Oct 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10476
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all have the same name and reside in the following physical path structure:
6
16073
by: Haines Brown | last post by:
I find that when I use list-style-image with galeon or mozilla, padding is inserted between the symbol image and the following list text, while under IE 5.0 it seems to be inserted before the image instead of after it. li.up { list-style-image: url(../bin/arrow.png); height: 1.4em; margin-left: -0.4em; }
2
6772
by: Tyrone Slothrop | last post by:
I am coding a site which involves uploading images. All of the PHP and display is OK but the client wants to be able to display the image thumbnail on the upload page and show the full image on mouseOver instead of the popup I coded. The section of code below works perfectly in Firefox but not at all in IE (why am I not surprised?). The page is nearly 100% dynamic, so this is extracted from the source of a test page. The code in...
12
2745
by: Major Man | last post by:
Hi, I have this .jpg picture that's 700 x 200. What I wanna do is display it on a 300 x 200 window, and have it scroll left and right, back and forth. Can anyone help this newbie? TIA
4
14727
by: Jay | last post by:
Hi, How can I capture mouse position on Image? I found number of script capturing mouse position of the page. But I could not find anything based on image. What I want to find out is X Y coordinates of mouse position. based on left of the top of my image is 0 0 (X Y coordinates) otherwise, I need to find out position of my image so I can calculate.
6
10530
by: Seth Illgard | last post by:
Hi, Im writting a custom CMS and everything looks great, except when I see the results in IE. What im trying to do is: *Have an image in a layer (or relative positioned, or just margined). The exact image's coordinates depends in the window size (Fluid design) *The image should display correctly in front(above) another image (header image)
1
3146
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important information is). I've got the product name at the top, left aligned and typically as a two lined header, and I'd like to add a small logo to the right of that, either right beside it, or in the far right corner. could anyone help me with how to set...
1
2450
by: nicky77 | last post by:
Hi, I've created a nav bar using a background image for rollover effects. Everything works as I had hoped, however, for some reason it seems that an area of whitespace (the same size of the background image) is hyperlinked underneath the nav bar. I can't see any errors in the coding below. Any ideas what may be causing this? the page is at http://www.maguiresonline.co.uk/wosis/files/nickysnav.html the html.... <body...
7
3278
by: Paul | last post by:
Hi, I'm trying to find the left and top position of an image in MSIE. In HTML the image is <img border=0 src="image.png" id="myimage" style="position:relative;" / The javascript is ///////
2
14073
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm really confused as to what is going on in IE. FF renders the page exactly as I expect. IE renders the page with everything in the correct location, but it seems to double the background image for a sub-div section that is moved up using a negative...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.