Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 6 Months ago Background color box with text
#1
Solved: 8 Years, 6 Months ago
[Image: unledto.png]

Hi, I would like to make a yellow coloured box with a small text notice within. Can you tell me how?
#2
Solved: 8 Years, 6 Months ago
Where you've seen this ? Any website URL ?
#3
Solved: 8 Years, 6 Months ago
If you mean you want an image resizing plugin with a notification you can use this:
http://mods.mybb.com/view/fit-on-page

Otherwise please specify whether or not you want it in the theme or in a post.
#4
Solved: 8 Years, 6 Months ago
Omg no, I would like to make a box like that, NOT that plugin!
#5
Solved: 8 Years, 6 Months ago
In posts or elsewhere on the site?

backgroud:#ffff99;
color:#000;

It's really simple it just depends what you want to do. You could make a table with those attributes or use a div. If you use a table you can have the text vertically aligned, if you use a div you'd have to work out the padding.
#6
Solved: 8 Years, 6 Months ago
(04-08-2011, 05:17 PM)Yaldaram Wrote: Where you've seen this ? Any website URL ?

#7
Solved: 8 Years, 6 Months ago
(04-08-2011, 05:39 PM)Yaldaram Wrote:
(04-08-2011, 05:17 PM)Yaldaram Wrote: Where you've seen this ? Any website URL ?

The box is taken from the plugin I posted. Stely simply wants to be able to use the box on the forums, but I can't establish whether in a post or just the theme.
#8
Solved: 8 Years, 6 Months ago
in a post.
#9
Solved: 8 Years, 6 Months ago
Okay you'll need to do it with MyCode. I will post later if nobody else has time before me.

\[yellowbar\](.*?)\[/yellowbar\]

<table width="100%"><tr><td width="100%" vertical-align="middle" bgcolor="#ffff99">$1</td></tr></table>

That should work... It's done with tables because it's easier but it's probably better if you do it with a div.
#10
Solved: 8 Years, 6 Months ago
It worked. TY!
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)