I have several pages in my website and they all have the same div structure:
<div id="page">
<div id="header">
<div id="logo">
</div>
<div id="title1">
</div>
<div id="title2">
</div>
</div>
<div id="content">
</div>
<div id="footer">
</div>
</div>
However, each page has its name in the id, like this for page1:
<div id="name1_page">
<div id="name1_header">
Etc.
The same is true for page2, page3, etc.
I'd like to use one style sheet for all these pages.
I found this works for styling the div id's:
div[id*=page] {
width: 900px;
margin: 30px auto;
background-color: #FFFFFF;
}
How can I make it work for the styling of classes, a, p, ul, etc.? Such as:
#title1 a
.content