Jump to content

how to add background color on widget?


mostone

Recommended Posts

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.indonesianforum.net/portal

please help me for this topic :)

thanks before ^_^

 

Link to comment
https://forums.phpfreaks.com/topic/278101-how-to-add-background-color-on-widget/
Share on other sites

  • 2 months later...

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.