Jump to content

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>
Edited by Arcalypse
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.