When having a few content sections inside one content block.
For example in "page_content(1)" I added a few sections, each contain different content.
In order to give the first line of each section a background I wrote in the CSS:
.title {
background-repeat: repeat-x;
background-image: url(images/title_bg.gif);
padding-top: 5px;
padding-bottom: 10px;
padding-left: 10px;
font-size: 12px;
vertical-align: middle;
}
The problem is that the background shoes only in the first section.
How can I give the first line in each section this background?
Thanks
Turn the WYSIWYG editor to code
and than use:
<div class="title">Content goes here</div>
Or if you are using headings for the markup you can also style the H1 to H6
e.g.
h1 {
background-repeat: repeat-x;
background-image: url(images/title_bg.gif);
padding-top: 5px;
padding-bottom: 10px;
padding-left: 10px;
font-size: 12px;
vertical-align: middle;
}
and then al h1 will be styled with that background.