W
Wayne Wells
I have a CSS tag that formats a header on the page. Currently it has an image
as part of the description.
I have currently copied the tag(#desc) and pasted numerous instances of them
and renamed them to #desc1,2 etc, and used different images. I feel
reasonably certain that this is NOT the right way to put in different images
in the header of different pages. What is the right way to do this?
#desc {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/top.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}
#desc1 {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/back.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}
#desc2 {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/left.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}
as part of the description.
I have currently copied the tag(#desc) and pasted numerous instances of them
and renamed them to #desc1,2 etc, and used different images. I feel
reasonably certain that this is NOT the right way to put in different images
in the header of different pages. What is the right way to do this?
#desc {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/top.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}
#desc1 {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/back.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}
#desc2 {
height: 200px;
color: #ffffff;
padding: 0;
background: #505050 url('images/left.jpg') no-repeat top left;
clear: both;
margin-left:0; margin-right:0; margin-top:5px; margin-bottom:0
}