473,748 Members | 4,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Mar 17 '06 #1
1 2166
sweep wrote:
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

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

Mar 18 '06 #2

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

Similar topics

4
5727
by: Florian Brucker | last post by:
Hi! I've got a problem with float & clear. Take this example code: <div style=" width:100px; height:100px; background-color:#FF0000; float:left; margin:10px;"></div> <span style="clear:left;">This is some text</span> In Mozilla 1.6 the span still floats around the image on the left side (as if there wasn't a "clear" option). When I use
7
7988
by: Doc | last post by:
I've read in a couple of different places including the archives of this forum that html doesn't allow you to precisely dictate the position of an image, but I found this command (again in the archives of this forum) that apparently allows you to do exactly that. <img src="whateveryourfilelocationis" style="position:absolute; left:Xpx; top:Xpx"> What do you call this command? The responder of the particular message where I found it...
2
9804
by: pei_world | last post by:
Hi I want to create a image with multiple layers on top. the background color of each layer should be transparent except the last one, hence I can only see the drawed items on such layers. can anyone tell me whether or not C# allow to do this? pei_world
16
14629
by: Walker | last post by:
I have a span containing two words. Eg. <span>Avant Garde</span> Using CSS, I pad the text to the right and assign a background-image. Eg. span { padding: 0 3px 0 11px; background: url(images/tagbull.gif) no-repeat 0px 2px; }
6
3002
by: jaredh | last post by:
so, i'm trying to style my links to have a little tiny image to the right of the image. i added some padding on the right and applied the background image in CSS. problem is, if the link wraps a line, so that the link starts on one line but finishes on the next line, IE doesn't seem to understand not to put the image on the first line, but on the second. it leaves the padding in the right spot, but the image is not there. thoughts?
1
3478
by: Viken Karaguesian | last post by:
Hello everyone, I have a slight problem that I can't seem to solve. I'm not sure if it's a CSS problem, HTML problem or simply an IE-6 bug. I chose this forum as I suspect the fix may be with CSS. I have styled hyperlinks on a website to show a small "new window" icon when I have a link that opens in a new window. This works as designed in FF. In IE-6, however, when a hyperlink wraps to the next line, the icon does not wrap along...
3
3777
by: hzgt9b | last post by:
I want a page with a centered div containing two rows. Top row has an image and some text. The bottom row needs to have three columns. I'd love to have the 1st column set to a fixed width then have the 2nd and 3rd columns fill the remaining space but I've given up on that and am willing to settle for the second row to have a fluid 3-column layout (or something else simple). Anyway, I've developed a page where the second row has this 3...
3
2081
by: helraizer1 | last post by:
Hey folks, yet again. if ($back == "m") //$back is a value pulled from a db; that works perfectly. { $wid = $rowing; $hei = $rowing; createthumb("660x240background2.gif", "./user/" . $user . "_back.gif", $wid, $hei);
1
2082
by: donpro | last post by:
Hi, I'm creating a template paging sing pure CSS and all looks good except the footer which I am having problems with. 1) When I space out each of the FOUR DIVS at 25%, it wraps in IE. I hacked it by changing to 24% but don;t know why. 2) I can't get the right border to extend down to the bottom border (both IE and Firefox).
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9372
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...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
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
6796
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
6074
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.