548 Posts
joomleb
10 years ago
10
Topic

Hy guys, 

Joomla 3.3.1 - Seblod 3.3.6

I created my article List & Search Type list (seb_blog template) where I show my Article Title and Article Intro Text into the Mainbody

I'm using the H2 to show my Article Title, but the H2 background colour do not fit all the 100% Mainbody width:

Please, How to have it working as using the standard Joomla Blog layout ? Is there a tip ?

Get a VIP membership
693 Posts
rpoy
10 years ago
4
Level 1

Hi Joomleb,

Look at the settings under the List>Template by changing the number of columns.

Hope that helps,

Randy

548 Posts
joomleb
10 years ago
3
Level 2

Hi Randy, 

many thanks for suggestion, but it doesn't help, it doesn't solve the issue.

What I'm looking for is just to have the H2 background colour (brown) that fit 100% Mainbody width (in a 1 column list and as happen with standard Joomla Blog layout - the second image), while, right now, the H2 background colour width follow the Title lenght.

4229 Posts
Kadministrator
10 years ago
2
Level 3

this is css issue, impossible to give reliable solution without access to the page as parent element styles affect the child element width.

548 Posts
joomleb
10 years ago
1
Level 4

Hi Klas, 

thanks, this is the page, anyway I don't uderstand why the same template (CSS) is working well if I display the same content list with the standard Joomla Blog layout... this is why I supposed it is something related to the seb_blog template layout 

693 Posts
rpoy
10 years ago
0
Level 5

Hi Joomleb,

How are you defining the background color?

Is the title in a different position from the other fields (Topbody position)? Is the bacground color set with the Variation to seb_css?

thanks,

Randy

4229 Posts
Kadministrator
10 years ago
4
Level 1

It is actually parent element that is not going to 100%, adding this rule to your template css should solve it:

div.cck_contents.cck_item div.cck_value.cck_value_text {

float: none !important;

}

548 Posts
joomleb
10 years ago
3
Level 2

Hi guys,

@Randy

  • Is the bacground color set with the Variation to seb_css? No. I use Template Creator CK for templating and I just set the standard H2 parameters in my template.css (if you want I can add the .zip template) :

h2, div.contentheading { 

           background: #cec8b3; 

           color: #094fa3; 

           padding-right: 10px; 

           padding-left: 10px; 

           font-size: 20px; 

}

  • I show my Article Title and Article Introtext, both, in the MAINBODY position (not TOPBODY)

@Klas

  • I tested adding code you suggested into custom.css but nothing happen

Any suggestions ?!?

4229 Posts
Kadministrator
10 years ago
2
Level 3

I guess you need to clear some cache or reupload file, currently there is no such rule in your custom.css

http://aimfi.org/templates/aimfi.org/css/custom.css

548 Posts
joomleb
10 years ago
1
Level 4

Hi Klas, 

as you can see now you are right, I had to clean cache. Sorry. Seem it's working.

But, Please, Is your code valid only for the MAINBODY positions and/or for all seb_blog template positions?

4229 Posts
Kadministrator
10 years ago
0
Level 5

To limit it jsut to mainbody you can prefix it with div.cck-pos-mainbody, so rule is

div.cck-pos-mainbody div.cck_contents.cck_item div.cck_value.cck_value_text

Get a VIP membership