Gussy81
Coder
Hi,
I have a div that has some styles - the most important is the background image. Its working as i would like to to on my homepage. I want to re-use the div on my about us page with out copying the div attributes but giving it a different name. Can i re-use the below div with a different background image?
I have a div that has some styles - the most important is the background image. Its working as i would like to to on my homepage. I want to re-use the div on my about us page with out copying the div attributes but giving it a different name. Can i re-use the below div with a different background image?
CSS:
#header { /*Placement of image for header background */
position: relative;
background-image: url("../../images/header.jpg");
background-size: cover;
background-position: center center;
background-attachment: fixed;
text-align: center;
padding: 7.5em 0 2em 0;
cursor: default;
color: #F4EDEA;
font-family: Helvetica, Sans-Serif;
font-style: normal;
line-height: 12px;
font-weight:400;
font-size: 12px;
}
HTML:
<!-- Header -->
<div id="header">
<!-- Inner -->
<div class="inner">
<header>
<p>THE OFFICE OF</p><BR>
<h1><a href="index.html" id="logo">LICITORS</a></h1>
<BR><!-- <hr /> -->
<p>THE EXPERTS</p>
</header>
<footer>
footer here
</footer>
</div>
Last edited by a moderator: