how can i change widget background color?
+2
Master Marc
emikati
6 posters
Page 1 of 1
how can i change widget background color?
Hi ya.. my widget background color is in blue.. i want to make a new custom widget in which i want to put white background (only for that widget not for all).. wat code should i write to make its background white...plz help
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
Re: how can i change widget background color?
Try adding this html code in your widget please.
You can change the color green to any color you would like by editing the text green in the code.
- Code:
<body bgcolor="green">
</body>
You can change the color green to any color you would like by editing the text green in the code.
Master Marc- Hyperactive
- Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: how can i change widget background color?
marc, i hv tried this code but not working ..
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
Re: how can i change widget background color?
I believe this body code will work only in html pages.
In a widget that code would not work. I think via css, probably it could be done. I am not sure though.
In a widget that code would not work. I think via css, probably it could be done. I am not sure though.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: how can i change widget background color?
You can use CSS for that.
Put your code between the div tags like below...
Put your code between the div tags like below...
- Code:
<DIV style="background-color : COLOR_NAME;">
OTHER CODES HERE
</DIV>
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: how can i change widget background color?
You can create background color for widgets by using tables.
Examples...
Widget code and text without a table
[ Click to view full size images ]
With Tables
Padding: 8px / Border: 1px
Padding: 30px / Border: 1px
Colors: Background #E1EBF2 Border #CCCCCC
Examples...
Widget code and text without a table
[ Click to view full size images ]
With Tables
Padding: 8px / Border: 1px
Padding: 30px / Border: 1px
Colors: Background #E1EBF2 Border #CCCCCC
Use this code to create a table with white background (borderless)
If you want a mild border, change: border width 0px to 1px
- Code:
<center><table style="background-color: #FFFFFF; border: #CCCCCC; border-style: solid; border-width: 0px; margin-left: 3px; margin-top: 12px; padding: 8px;"><tr><td>
YOUR WIDGET CODE HERE
</td></tr></table>
Re: how can i change widget background color?
emikati wrote:Hi ya.. my widget background color is in blue.. i want to make a new custom widget in which i want to put white background (only for that widget not for all).. wat code should i write to make its background white...plz help
MEMBER BANNED ~~MRMARIO
Ultyma2- New Member
- Posts : 6
Reputation : 0
Language : Engrish
Re: how can i change widget background color?
ankillien wrote:You can use CSS for that.
Put your code between the div tags like below...
- Code:
<DIV style="background-color : COLOR_NAME;">
OTHER CODES HERE
</DIV>
where to put color name or code ..plz also mention it
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
Re: how can i change widget background color?
First go to Widget Management....create a custom block.
Put my code in widget source.
Niw you can add your content between the DIV tags, remove the 'OTHER CODES HERE' and place your text/code there.
Change the COLOR_NAME with your desired background color.
Hope this helps.
Put my code in widget source.
Niw you can add your content between the DIV tags, remove the 'OTHER CODES HERE' and place your text/code there.
Change the COLOR_NAME with your desired background color.
Hope this helps.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: how can i change widget background color?
i want to change it to white background, does the following code wid white text wud works by replacing the COLOR_NAME
- Code:
<DIV style="background-color : white;">
OTHER CODES HERE
</DIV>
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
Re: how can i change widget background color?
No, white text won't show on a white background...
If you want to change text colors, use this code...
If you want to change text colors, use this code...
- Code:
<DIV style="background-color : white; color : TEXT_COLOR;">
OTHER CODES HERE
</DIV>
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: how can i change widget background color?
just give me the direct code for changing the background color of widget to white..
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
emikati- Forumember
- Posts : 393
Reputation : 0
Language : English, HTML
Similar topics
» How to change widget background color?
» change widget background color
» how to change the widget background color ?
» How to change background color of calendar widget
» Change color of widget text
» change widget background color
» how to change the widget background color ?
» How to change background color of calendar widget
» Change color of widget text
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum