Jump to content


Photo

how to add background color on widget?


  • Please log in to reply
4 replies to this topic

#1 mostone

mostone

    Member

  • Members
  • PipPip
  • 17 posts

Posted 17 May 2013 - 11:18 AM

Hello all :D
I wan to ask :)

previously I do not understand about this,
how to add background color on widget?
example like this:
4tvXMie.png
in the widget, there is a blue background.
how to add that?
source:
http://www.duelingcity.net/

this code in my widget

<a href="http://astajim.indonesianforum.net/portal"><div style=" text-align:center;"><div style="float:center; width:100px; text-align:center;">
</div><div style=" float:center; width:200px;  margin:auto;">
<br>
<span class="gensmall">Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here<br><br></span>

</div>

</div></a>

result:
BOmclos.png

my forum:
http://astajim.indon...orum.net/portal

please help me for this topic :)

thanks before ^_^

 



#2 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationThe Pleiades
  • Age:23

Posted 19 May 2013 - 02:27 PM

Good evening,

 

Add that color to your <div> with a class of .lol

 

Like this:

<div class='lol' style='background: #0E1A24;'>

Kind regards,

 

L2c.


Edited by Love2c0de, 19 May 2013 - 02:27 PM.


#3 zeeshanaayan07

zeeshanaayan07

    Member

  • Members
  • PipPip
  • 14 posts

Posted 09 July 2013 - 02:30 AM

This widget can be used for blogger...?



#4 Arcalypse

Arcalypse

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 22 July 2013 - 08:16 AM

Depending on the way you want to do it an alternative method would be...

 

CSS:

.widgetColor
{
     background-color: #HEXCOLOR;
}
[/scode]
 
HTML:
[code]
<div class="widgetColor"> CONTENT HERE </div>


#5 Arcalypse

Arcalypse

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 22 July 2013 - 08:38 AM

I can't revise my post, but what I meant was...

 

Depending on the way you want to do it an alternative method would be...

 

CSS:

.widgetColor
{
     background-color: #HEXCOLOR;
}

 
HTML
:

<div class="widgetColor"> CONTENT HERE </div>

Edited by Arcalypse, 22 July 2013 - 08:39 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com