Afficher un message
Vieux 04/05/2008, 07h11   #2
Jukka K. Korpela
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: BGCOLOR only in Opera, not other browsers (valid page)

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 K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

  Réponse avec citation
 
Page generated in 0,05549 seconds with 9 queries