Afficher un message
Vieux 04/05/2008, 18h26   #3
Mason C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: BGCOLOR only in Opera, not other browsers (valid page)

On Sun, 4 May 2008 09:11:55 +0300, "Jukka K. Korpela" <jkorpela@cs.tut.fi>
wrote:

>Scripsit Mason C:
>
>> I have a small, validated page that uses "bgcolor" in
>> <body... and several <td... 's
>> The colors show ok in Opera but not in MSIE or Firefox.
>>
>> http://frontal-lobe.info/link2pdf.html

>
>Which difference(s) you are referring to? Both Opera and IE 7 show the
>background colors. There's a difference: on Opera, there is a white
>stripe, resulting from an empty cell, whereas IE 7 ignores it. If this
>is the problem, you just need to decide: remove the cell or put
>non-blank content, such as &nbsp;, into it (if you want it to appear for
>some odd reason).
>
>> I've been away from html for the last year and am re-learning it.

>
>Then start afresh. Read a good tutorial on basics of HTML, and never
>re-learn the ugly presentational side of the language; instead, learn
>basic CSS from a good tutorial.
>
>How come a page doesn't fit into my browser window (it's almost half of
>my screen!), despite not containing any relevant information but a link
>to a PDF file? You're trying too much. But if you want to create boxes
>with background colors, use just heading or <div> elements (as
>appropriate) and background properties in CSS. Using bgcolor in HTML
>isn't among the top ten sins, but neither is among the top 100 things
>you should learn about HTML, and the CSS counterparts are much more
>flexible and powerful.


Jukka, I appreciate your comments. I use CSS but for that little page
I was in a hurry and used bgcolor. I validated the page. The color
doesn't show in MSIE or Firefox. Why?

The link page is there because I am concerned that the logging engines
and search robots may not log a pdf page -- that's another thing I need to
learn about. ( I'm going through web life change forced by being kicked
off Earthlink for excess traffic..)

But in the meantime I'm puzzled by the unexpected color failure.

Mason C
  Réponse avec citation
 
Page generated in 0,05548 seconds with 9 queries