How do I make header bar opaque
I have a page with a header bar that contains the HTML title and a Home button. On a long page that scrolls, the header stays in the same place and the text scrolls under it, which is what I want. But the header is transparent and the text is visible under the header as it scrolls past. I want an opaque header, what do I need to change in CSS?
I'm using JQM 1.4.5. The top part of my HTML looks like this:
- <!DOCTYPE html SYSTEM "about:legacy-compat">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>My title</title>
- <link rel="stylesheet" href="js/jquery.mobile-1.4.5.min.css">
- <script src="js/jquery-1.11.3.min.js"></script>
- <script src="js/jquery.mobile-1.4.5.min.js"></script>
- </head>
- <body>
- <div data-content-theme="c" data-role="page" lang="en-us">
- <div data-role="header" data-position="fixed" data-theme="c">
- <h1 class="title topictitle1">My topic</h1>
- <div class="ui-btn-left">
- <a href="index.html" data-role="button" title="Home" data-icon="home" rel="external" data-iconpos="notext"></a>
- </div>
- </div>
- <main role="main">
- <article role="article">
- <div class="body conbody">
- <section class="section">
- <figure class="fig fignone">
- <img class="image" src="C047CCBF1E02-low.png">
- <p class="p">Definition of the serial number.</p>
- ...
-
Thanks,
Mark