0

For an html header, a div box containing elements including a logo, would it be possible to put the logo as well as the colors in the css file? For example:

<html>
<head>
 <link rel="stylesheet" href="myurl.css"/>
</head>
<body>
<div class="header">
  <div class="header-left>
    <img id="logo"/>
  </div>
</div>

In the stylesheet, I would like to say

#logo {
    src: mylogo.jpg;
}

so that the look and feel is all within the stylesheet. Then to select a different skin, the only thing needed is to switch the stylesheet.

Dov
  • 8,000
  • 8
  • 46
  • 75
  • duplicate of : https://stackoverflow.com/q/61419282/8620333 – Temani Afif Apr 26 '20 at 01:15
  • Note: the `` and `` tags do not use and do not need a closing slash and never have in HTML. – Rob Apr 26 '20 at 01:19
  • Does this answer your question? [How can I define colors as variables in CSS?](https://stackoverflow.com/questions/1875852/how-can-i-define-colors-as-variables-in-css) – Richard Apr 26 '20 at 03:38

0 Answers0