I've encountered a small issue with configuring some CSS elements.
Below is my index.html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My Website</title>
<link rel="stylesheet" type="text/css" href="http://www.mywebsite.com/general.css" />
</head>
<body>
<text class="center" Welcome!>
</br>
<img src="<myimage>" alt="Logo" class="center">
</body>
</html>
and this is the content of my general.css file:
img.center {display:block; margin-left:auto; margin-right:auto;}
body{background-color:#b0c4de;}
text{font-family:"Lucida Console";}
text.center{font-family:"Lucida Console"; text-align:center;}
The image is centered as desired, but I'd like to ensure that all text on the site uses the "Lucida Console" font. Additionally, I want to create a specific class for centering text, similar to what's done for images.
If anyone could assist me in achieving this, it would be greatly appreciated. Thank you!