/    Sign up×
Community /Pin to ProfileBookmark

yet another ‘working in Firefox but not IE’ problem!

I’m working on a new page and everything seems fine in Firefox and Netscape but one part of it won’t align in IE. I made rollovers with slices so I could create some ‘non-square’ parts and the second sets of slices just won’t play the game!

[URL]http://www.kite.com.au/newindex.htm[/URL]

I’ve read back through the several threads with a similar problem but I can’t find [I]my[/I] mistake.
Any help would be greatly appreciated.

Thanks

Chris

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogOct 11.2006 — Maybe try adding this to your CSS:
<i>
</i>#indexphoto {
display: block;
}

I think IE is adding extra space as an image is by default an in-line element, and so it's adding a space after it since it's followed by a newline in the source.
Copy linkTweet thisAlerts:
@Chris_RobsonauthorOct 12.2006 — Nog Dog,

Thanks for that....it's solved one of the problems easily.

In playing around, I've discovered a possible source of the non-alignment in IE of the bottom set of slices. It's got to do with the relative size of the smallest and largest slices. If I group all of the slices into the one div (id=slices) with a width of either auto or 480px, the bottom two align properly but I loose the top 4 because the first and second move to fit on the one line and the third and fourth move to fit on the one line. They can do this because the total length of there 2 slices is equal to or less then the length of the bottom one. e.g. slice 1 of 200px and slice 2 of 205px is less then the eighth (bottom) slice at 480px.

What I don't follow is why the top slices do this. I've aligned them right so why do they take any given opertunity to, effectively, align left.

More to the point, how can I stop them? I've tried 'block' as a property in 'slices' but this didn't help. Is there some way I can keep them in vertical line or such?
×

Success!

Help @Chris_Robson spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...