Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Internet Explorer 6/7 Ignoring Left Padding on One Element?

Reply
Thread Tools

Internet Explorer 6/7 Ignoring Left Padding on One Element?

 
 
Vik Rubenfeld
Guest
Posts: n/a
 
      01-17-2008
I have links on the top of my home page. Each link has a background
image (a bullet) and the text of the link. The div for the text has a
left padding of 30px to keep it from landing on top of the bullet in the
background image. This is working perfectly on Mac Firefox and Safari,
but is not yet working on IE 6/7. Oddly, the padding is ignored on the
first link, but works properly on the other links.

Here's a link to a .gif showing what it looks like:

http://www.market-research-services...._padding_anoma
ly.gif

Here's the HTML:

<div id="fz_menu">
<div id="fz_menuin">
<strong class='selected'>Home</strong><span class='hidden'> |
</span><a href="http://www.example.com/usda_foods/" >Food
List</a><span class='hidden'> |
</span><a href="http://www.example.com/foods_I_add/" >Foods I
Add</a><span class='hidden'> |
</span><a href="http://www.example.com/my_food_plan/" >My Food
Plan</a><span class='hidden'> |
</span><a href="http://www.example.com/food_menu_manager/" >My
Menu Manager</a><span class='hidden'> |
</span><a href="http://www.example.com/my_food_diary/" >My Food
Diary</a><span class='hidden'> |
</span><a href="http://www.example.com/forum/index.php"
>Community</a>


</div>
</div>

And here's the CSS:

/* fz_menu */

#fz_menu {
position:absolute; z-index:100;
top:0; left:16px;
width:60%; height:75px;
margin:0; padding:0 0 0 25px;
font-size: 90%;
font-weight: bold;
background: url('/images/FZ-Logo-4b.gif') top left no-repeat;
}
#fz_menuin {
position:absolute; left:10px; bottom: 0; b\ottom:3px;
width:150%; padding: 0; paddin\g-top: 3px;
text-align:left;
white-space:nowrap;
border-top: 1px solid #6291CA;
}
#fz_menu a, #fz_menu .selected {
_width:1em;
margin: 0 0 0 10px; padding: 0 10px 0 30px; paddin\g: 5px 10px 5px
30px;
color:#ff8000;
background: url('/images/sqr-blue.gif') 10px 50% no-repeat;
white-space:nowrap;
}
#fz_menu .selected {
color: #6291CA;
}
#fz_menu a:hover {
color:white;
background: #6291CA url('/images/sqr-orange.gif') 10px 50% no-repeat;
}

..hidden { display:none }

How can I fix this?

Thanks very much in advance to all for any info!
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      01-17-2008
Well bust mah britches and call me cheeky, on Thu, 17 Jan 2008 17:44:07
GMT Vik Rubenfeld scribed:

> I have links on the top of my home page. Each link has a background
> image (a bullet) and the text of the link. The div for the text has a
> left padding of 30px to keep it from landing on top of the bullet in

the
> background image. This is working perfectly on Mac Firefox and Safari,
> but is not yet working on IE 6/7. Oddly, the padding is ignored on the
> first link, but works properly on the other links.
>
> Here's a link to a .gif showing what it looks like:
>
> http://www.market-research-

services.com/For_Distribution/ie_padding_anoma
> ly.gif
>
> Here's the HTML:
>
> <div id="fz_menu">
> <div id="fz_menuin">
> <strong class='selected'>Home</strong><span class='hidden'> |
> </span><a href="http://www.example.com/usda_foods/" >Food
> List</a><span class='hidden'> |
> </span><a href="http://www.example.com/foods_I_add/" >Foods I
> Add</a><span class='hidden'> |
> </span><a href="http://www.example.com/my_food_plan/" >My Food
> Plan</a><span class='hidden'> |
> </span><a href="http://www.example.com/food_menu_manager/" >My
> Menu Manager</a><span class='hidden'> |
> </span><a href="http://www.example.com/my_food_diary/" >My Food
> Diary</a><span class='hidden'> |
> </span><a href="http://www.example.com/forum/index.php"
>>Community</a>

>
> </div>
> </div>
>
> And here's the CSS:
>
> /* fz_menu */
>
> #fz_menu {
> position:absolute; z-index:100;
> top:0; left:16px;
> width:60%; height:75px;
> margin:0; padding:0 0 0 25px;
> font-size: 90%;
> font-weight: bold;
> background: url('/images/FZ-Logo-4b.gif') top left no-repeat;
> }
> #fz_menuin {
> position:absolute; left:10px; bottom: 0; b\ottom:3px;
> width:150%; padding: 0; paddin\g-top: 3px;
> text-align:left;
> white-space:nowrap;
> border-top: 1px solid #6291CA;
> }
> #fz_menu a, #fz_menu .selected {
> _width:1em;
> margin: 0 0 0 10px; padding: 0 10px 0 30px; paddin\g: 5px 10px 5px
> 30px;
> color:#ff8000;
> background: url('/images/sqr-blue.gif') 10px 50% no-repeat;
> white-space:nowrap;
> }
> #fz_menu .selected {
> color: #6291CA;
> }
> #fz_menu a:hover {
> color:white;
> background: #6291CA url('/images/sqr-orange.gif') 10px 50% no-

repeat;
> }
>
> .hidden { display:none }
>
> How can I fix this?
>
> Thanks very much in advance to all for any info!


"Home" isn't a link.

--
Neredbojias
Riches are their own reward.
 
Reply With Quote
 
 
 
 
Vik
Guest
Posts: n/a
 
      01-17-2008
Neredbojias <> wrote:

> "Home" isn't a link.


True, but, on pages of the site where it is a link, the same thing
happens.

What could be causing this?
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      01-18-2008
Well bust mah britches and call me cheeky, on Thu, 17 Jan 2008 22:52:45 GMT
Vik scribed:

> Neredbojias <> wrote:
>
>> "Home" isn't a link.

>
> True, but, on pages of the site where it is a link, the same thing
> happens.
>
> What could be causing this?


Have you an example?

--
Neredbojias
Riches are their own reward.
 
Reply With Quote
 
Vik Rubenfeld
Guest
Posts: n/a
 
      01-18-2008
Neredbojias <> wrote:

> Have you an example?


Surely. You can see it at flavorzoom.com. Thanks very much in advance
for any thoughts!
 
Reply With Quote
 
GTalbot
Guest
Posts: n/a
 
      01-18-2008
On 17 jan, 12:44, Vik Rubenfeld <v...@mindspring.com.invalid> wrote:

> I have links on the top of my home page. Each link has a background



> How can I fix this?
>
> Thanks very much in advance to all for any info!


Vik,

Would it be possible for you to
- fix the validation markup errors in your webpage, all of them
- then fix the CSS errors in your CSS code, all of them, in particular
the ones targeting IE as CSS hacks
- then provide the URL of (temporary or current) webpage where the
problem may still be occuring

It is useless to post code if we do not have access to the whole code
loaded on a web-accessible webpage. Sometimes, it could even be
necessary to check the HTTP headers of the server...

Regards, Géard
 
Reply With Quote
 
Vik Rubenfeld
Guest
Posts: n/a
 
      01-18-2008
GTalbot <> wrote:

> Vik,
>
> Would it be possible for you to
> - fix the validation markup errors in your webpage, all of them
> - then fix the CSS errors in your CSS code, all of them, in particular
> the ones targeting IE as CSS hacks
> - then provide the URL of (temporary or current) webpage where the
> problem may still be occuring
>
> It is useless to post code if we do not have access to the whole code
> loaded on a web-accessible webpage. Sometimes, it could even be
> necessary to check the HTTP headers of the server...
>
> Regards, Géard


You are quite right. I have put up a small test file at:

http://flavorzoom.com/anomaly.html

This has just the CSS and the HTML needed to demonstrate the anomaly. I
validated it at http://validator.w3.org/.

As before, the page looks as it is expected to in Mac Firefox and
Safari, but not in IE 6/7.

Thank you very much in advance for any thoughts on what could be causing
this!
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      01-18-2008

"Vik Rubenfeld" <> wrote in message
news:vikr-...
> GTalbot <> wrote:


> http://flavorzoom.com/anomaly.html


Resize the window, at around 1000 pixels wide and larger the problem
disappears. Now, resize the window very slowly around the width where the
problem appears/disappears. At one particular width the entire menu
disappears.

This could be a manifestation of the peek-a-boo bug. Google for it, it's
quite well known.

--
Richard.


 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      01-18-2008
Well bust mah britches and call me cheeky, on Fri, 18 Jan 2008 00:25:40 GMT
Vik Rubenfeld scribed:

> Neredbojias <> wrote:
>
>> Have you an example?

>
> Surely. You can see it at flavorzoom.com. Thanks very much in advance
> for any thoughts!


Hmm, works fine for me in SeaMonkey. Oh, right, the prob is in IE. Hmm
again, works in IE 7. (Don't have ie6.) Did you fix it?

--
Neredbojias
Riches are their own reward.
 
Reply With Quote
 
Ed
Guest
Posts: n/a
 
      01-18-2008
On 18/01/08 06:59, Vik Rubenfeld wrote:
> GTalbot <> wrote:
>
>> Vik,
>>
>> Would it be possible for you to
>> - fix the validation markup errors in your webpage, all of them
>> - then fix the CSS errors in your CSS code, all of them, in particular
>> the ones targeting IE as CSS hacks
>> - then provide the URL of (temporary or current) webpage where the
>> problem may still be occuring
>>
>> It is useless to post code if we do not have access to the whole code
>> loaded on a web-accessible webpage. Sometimes, it could even be
>> necessary to check the HTTP headers of the server...
>>
>> Regards, Géard

>
> You are quite right. I have put up a small test file at:
>
> http://flavorzoom.com/anomaly.html
>
> This has just the CSS and the HTML needed to demonstrate the anomaly. I
> validated it at http://validator.w3.org/.
>
> As before, the page looks as it is expected to in Mac Firefox and
> Safari, but not in IE 6/7.
>
> Thank you very much in advance for any thoughts on what could be causing
> this!


OK, you validated the HTML. But did you validate the CSS? Some errors
show up at:

http://jigsaw.w3.org/css-validator/


Ed
 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does .rjust() work and why it places characters relative toprevious one, not to first character - placed most to left - or to left sideof screen? crispy Python 6 08-20-2012 12:45 PM
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
internet explorer 7 - Internet Explorer cannot display the webpag sandy j Windows 64bit 0 05-02-2009 02:12 AM
Dreaded 3-pixel padding in Internet Explorer spellbound571969@yahoo.com HTML 12 08-19-2006 08:33 PM
CSS aligning two things on one line with one left and one right news.frontiernet.net HTML 6 04-16-2004 02:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57