How to customize sidebar blocks

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Nov 07, 2012 2:20 pm
Reply with quote
Report this post
Hi,
i want to customize each differents blocks in the sidebar position, on the home page.
Code: Select all
<div class="box loaded" style="position:absolute...">


I've add suffix to the class of the module and create new css class but that's break all layout :S
All blocks loose style position :evil:

If i add style position in the new class don't work anymore...

GK_fashion v3.3
User avatar
Junior Boarder

Konrad M
Wed Nov 07, 2012 4:45 pm
Reply with quote
Report this post
Hi,
can you give us link to your site? It will be much easier to help you.
User avatar

GK User
Thu Nov 08, 2012 7:30 am
Reply with quote
Report this post
website is in development ;)
2013.horizons-solidaires.org
User avatar
Junior Boarder

Konrad M
Thu Nov 08, 2012 8:17 am
Reply with quote
Report this post
Did you add white space before suffix name in module settings ?
User avatar

GK User
Thu Nov 08, 2012 8:27 am
Reply with quote
Report this post
No suffix class is .actureg

Code: Select all
<div class="[b]box.actureg[/b]"><div><h3 class="header">Actu Régionale</h3><div class="content">

<div class="custom.actureg"  > [color=#FF0000]suffix is add in the custom div too[/color]
   <p><a href="/actualites/10-actualite-regionale/38-fete-des-pains-bio">Fête des pains Bio</a></p>
<p><a href="/actualites/10-actualite-regionale/39-frequence-afrique">Fréquence Afrique</a></p>
<p><a href="/actualites/10-actualite-regionale/40-voyage-au-vietnam">Voyage au Vietnam</a></p></div>
</div></div></div>
User avatar
Junior Boarder

GK User
Thu Nov 08, 2012 8:30 am
Reply with quote
Report this post
Image
User avatar
Junior Boarder

GK User
Thu Nov 08, 2012 8:36 am
Reply with quote
Report this post
Style css add:
Code: Select all
.box.actureg{border:1px solid green;backround:#c6c7c8;}


nothing in line
User avatar
Junior Boarder

GK User
Thu Nov 08, 2012 8:44 am
Reply with quote
Report this post
if i insert space before suffix, bloc is in position

Code: Select all
<div class="box actureg"><div><h3 class="header">Actu Régionale</h3><div class="content">

<div class="custom actureg"  >
   <p><a href="/actualites/10-actualite-regionale/38-fete-des-pains-bio">Fête des pains Bio</a></p>
<p><a href="/actualites/10-actualite-regionale/39-frequence-afrique">Fréquence Afrique</a></p>
<p><a href="/actualites/10-actualite-regionale/40-voyage-au-vietnam">Voyage au Vietnam</a></p></div>
</div></div></div>


but style not change???
.box actureg{background-color:#c6c7c8;}
User avatar
Junior Boarder

Konrad M
Thu Nov 08, 2012 8:59 am
Reply with quote
Report this post
Try this code in override.css
Code: Select all
.box.actureg{background-color:#c6c7c8 !important;}
User avatar

GK User
Thu Nov 08, 2012 9:14 am
Reply with quote
Report this post
better :)
make a 5 px border grey... because an other div is include in.

i try this css:
Code: Select all
.box actureg{background-color:#c6c7c8 !important;}
.box actureg > div{background-color:#c6c7c8 !important;}


don't work :oops:
User avatar
Junior Boarder

Konrad M
Thu Nov 08, 2012 9:16 am
Reply with quote
Report this post
It isn't working becasue if you have two css classess for one lement for example:
Code: Select all
<div class="one two">

you have to use this code in css:
Code: Select all
.one.two { }
User avatar

GK User
Thu Nov 08, 2012 9:31 am
Reply with quote
Report this post
Great ! :D Thank's a lot i can now customise all elelments i want in the div !!!

You're the best don't forget to remember renewing my subscription!
User avatar
Junior Boarder


cron