WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Bacground for beggining of each content bock section
(1/1)
netash:
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:
--- Code: ---.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;
}
--- End code ---
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
nibz:
Turn the WYSIWYG editor to code
and than use:
--- Code: ---<div class="title">Content goes here</div>
--- End code ---
Or if you are using headings for the markup you can also style the H1 to H6
e.g.
--- Code: ---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;
}
--- End code ---
and then al h1 will be styled with that background.
Navigation
[0] Message Index
Go to full version