1
deka87
how do i set unique css settings for one of the blocks
  • 2010/2/20 13:01

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


hi guys,

i want to make one of the right blocks look different than others. how do i do that? thanks

2
Peekay
Re: how do i set unique css settings for one of the blocks
  • 2010/2/20 13:13

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Just edit the block's template and add different CSS classes?

3
Burning
Re: how do i set unique css settings for one of the blocks
  • 2010/2/20 13:14

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

If you are using a custom block, you can do that by using HTML format (and without title block).

But the better way is to use ID block and apply a particular style for it. Take a look to morphogenesis template (too long too explain now)

4
kris_fr
Re: how do i set unique css settings for one of the blocks
  • 2010/2/20 13:48

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

Available for unique block
<div id="xo-block-<{$block.module}>-<{$block.id}>" class="xo-block <{$block.module}>">

rendered --> id="xo-block-modulename-idblock

in your style sheet add :
#xo-block-modulenamne-idblock {my style;}


Available for only blocks module, in style.css :
#xo-block .modulename {my style;}



also, it's possibity :
body#modulecurrent #xo-block-modulename-idblock {mystyle ;}

display block style for each current modules

etc ...

@+

5
deka87
Re: how do i set unique css settings for one of the blocks
  • 2010/2/20 14:57

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


ok great guys. thanks

6
red_Slider
Re: how do i set unique css settings for one of the blocks

Quote:
body#modulecurrent #xo-block-modulename-idblock {mystyle ;}

I like that!

7
Peekay
Re: how do i set unique css settings for one of the blocks
  • 2010/2/21 2:23

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I had no idea you could do that. Many thx kris_fr

Login

Who's Online

244 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits