Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 17th, 2006, 07:55 PM
sweep
Guest
 
Posts: n/a
Default IE6 Background Image "wraps" problem

Hi there,

I am redeveloping my site to use CSS and have come up against a problem. The
page I'm working on is at
http://staging.proscenia.co.uk/revis...20version.html
and the stylesheet at http://staging.proscenia.co.uk/projectpage.css

To create the navigation bar, I have styled the <A> tags to use a background
image and text positioning to create a scalable button look (previously
these were all pre-generated images). This allows the HTML simply to consist
of <A>link</A><A>link 2</A> etc.

However, I have come up against a problem with this in IE6. When it draws
the first button on the navbar it "wraps" the image. It is almost like it is
repeating the image and starting it from 3 or 4px to the left of the button.
This is despite explicitly setting no-repeat and background image position.
The other buttons on the bar draw fine.

In case it miraculously works in other people's IE6, what I am seeing is
----- --
| |
| |
----- --
|
|
|

instead of the correct image which is as below
-------
| |
| |
-------
|
|
|

It works fine in Opera and NN7.1 and both the CSS and HTML validate. I can't
find any reference by googling or usenet to a similar problem. I'm at a
loss!

Any tips would be most welcome.

Regards
Andrew Coulton


  #2  
Old March 18th, 2006, 10:25 PM
Chris Beall
Guest
 
Posts: n/a
Default Re: IE6 Background Image "wraps" problem

sweep wrote:
[color=blue]
> Hi there,
>
> I am redeveloping my site to use CSS and have come up against a problem. The
> page I'm working on is at
> http://staging.proscenia.co.uk/revis...20version.html
> and the stylesheet at http://staging.proscenia.co.uk/projectpage.css
>
> To create the navigation bar, I have styled the <A> tags to use a background
> image and text positioning to create a scalable button look (previously
> these were all pre-generated images). This allows the HTML simply to consist
> of <A>link</A><A>link 2</A> etc.
>
> However, I have come up against a problem with this in IE6. When it draws
> the first button on the navbar it "wraps" the image. It is almost like it is
> repeating the image and starting it from 3 or 4px to the left of the button.
> This is despite explicitly setting no-repeat and background image position.
> The other buttons on the bar draw fine.
>
> In case it miraculously works in other people's IE6, what I am seeing is
> ----- --
> | |
> | |
> ----- --
> |
> |
> |
>
> instead of the correct image which is as below
> -------
> | |
> | |
> -------
> |
> |
> |
>
> It works fine in Opera and NN7.1 and both the CSS and HTML validate. I can't
> find any reference by googling or usenet to a similar problem. I'm at a
> loss!
>
> Any tips would be most welcome.
>
> Regards
> Andrew Coulton
>
>[/color]
Andrew,

First, it fails exactly as you describe on my system. I don't know why.
IE is sometimes very creative... I played around trying to change the
symptom, but without success.

BUT, I was unable to alter the font size in IE; I confirmed that this is
because you have sized the fonts in terms of pixels. On the other hand,
when I resize the text in Firefox, the layout quickly comes apart.
Perhaps if you rework it to be a bit more flexible with regard to text
size, the other problem will go away. Perhaps not.

Chris Beall



 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles