Background color for Title of Block or Widget

Posted in: Newspaper
Post count: 5

Hi, Team

I have a wish to change background color width for Titles of blocks or widgets. Please advise me if there is a custom code to do that. I want background all the way in that line instead of it ends after text length.

1. Here is how it work now : http://www.screencast.com/t/BUTV1B0m2P

2. This is what i want : http://www.screencast.com/t/VlzpxJOgmelj

Thanks,
Yura

  • This topic was modified 11 years by EnkhbayarYu. Reason: Link seems like not working :)
Post count: 7909

Hi,

You can try to do that with custom css in Theme Panel > Custom Css but all titles will have the same background color something like this: http://screencast.com/t/GhVAWMlHY

.block-title{
background-color: black;
border-bottom: none;
}
.block-title a, .block-title span{
background-color: transparent;
}

Hope this helps!

Post count: 5

Thanks a lot, Alin

Yes, it helped me and that was exactly what i wanted. But there is a little bit problem about height of background color. Where could i specify height of the background color? This one is bit higher ( wider ) than what i expected.

Please see below screenshot:

http://www.screencast.com/t/t4bgY49V

Post count: 7909

Hi,

You can adjust the block line height for block title: http://screencast.com/t/oU1YJtnUFz1 The width cannot be adjusted because this css is to general for blocks titles. You would need a css for each column.

.block-title{
background-color: black;
border-bottom: none;
line-height: 25px !important;
}
.block-title a, .block-title span{
background-color: transparent;
}

Hope this helps!

Post count: 5

Thanks in advance, Alin

This is a complete solution for my request. Have a good day 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.