Background color issue

Manzemat Posted messages 19 Status Membre -  
minotaugames Posted messages 157 Registration date   Status Membre Last intervention   -
Good evening,

I have a problem setting a background color for my table; it won't accept anything.
The table is split into two triangles, one gray and the other white, so I don't know how to solve this...

Here is my HTML code:

<html>
<head>
<link rel="stylesheet" href="style.css" type ="text/css" media="all"/>

<title>heroes of the storm</title>

<center> <IMG SRC = "Image entete.png"> </center>

</head>
<body>

<p><center>

<a href="Acceuil Page Web.html" style="text-decoration:none"> <h3> Acceuil    &nbsp </a>

<a href="Page Les Heros.html" style="text-decoration:none">    &nbsp Les Heros      </a>

<a href="Page Web Le Jeu.html" style="text-decoration:none">    &nbsp Le Jeu      </a>

<a href="Gameplay Page Web.html" style="text-decoration:none">      Gameplay </h3> </a>

</p>

<TABLE BORDER="500" WIDTH="300" bgcolor="Blue">
<TR>

</center>
</TR>
</Table>
</body>
</html>

Thank you in advance!

Configuration: Windows / Firefox 43.0

2 réponses

minotaugames Posted messages 157 Registration date   Status Membre Last intervention   7
 
Hello,
if I understood correctly, you wouldn't want to display 2 triangles, but a background-image or color

if that's the case, you can either write in your .css file:

or directly in the HTML code:
body { background-image : ("path to the image"); //or background-color : ("blue"); }


or you can write directly in the HTML code:
<body bgcolor="&FFFFF"


There you go, I hope I helped you
0
xtrema
 

<body bgcolor="&FFFFF"


Definitely not, that's an approach that was abandoned over 10 years ago for good reasons. Nowadays, there is CSS which is much simpler and more efficient, which is the standard, and not writing according to the standard makes your page inaccessible to most people, the goal of a web page generally being to be seen...
0
minotaugames Posted messages 157 Registration date   Status Membre Last intervention   7
 
Yes, but it's doable.
0
Manzemat Posted messages 19 Status Membre 1
 
What I actually want to do is have a background image (which I already have) and on top of that, have a white area with text...

and as a result, it's the color of this area that creates 2 triangles and not what I want...
0