Background color issue
Manzemat
Posted messages
19
Status
Membre
-
minotaugames Posted messages 157 Registration date Status Membre Last intervention -
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   </a>
<a href="Page Les Heros.html" style="text-decoration:none">   Les Heros </a>
<a href="Page Web Le Jeu.html" style="text-decoration:none">   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
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   </a>
<a href="Page Les Heros.html" style="text-decoration:none">   Les Heros </a>
<a href="Page Web Le Jeu.html" style="text-decoration:none">   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
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:
or you can write directly in the HTML code:
There you go, I hope I helped you
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
<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...