Current date/time is September 16th 2019, 12:37 am

Search found 1 match for BDE5F8

Notice using css and table

Notice using css and table



Hello FM users,
Today I am going to show you how to compose a notice in your post using css and table. First, please take a look at this demo:
Line 1 : Your message goes here! Your message goes here!
Line 2: Your message goes here! Your message goes here!

Ok then, let's start.
Step 1: Copy and paste this code into your css style sheet (ACP>>Display>>Colors>>CSS)
Code:
.cpinfo {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
}
.cpinfo {
color: #00529B;
background-color: #BDE5F8;
background-image: url('http://i.imgur.com/BZ17N.png');
}

Step 2:
Use this bbcode when you want to post a notice inside your posting:
Code:
[table class="cpinfo"][tr][td]Your text goes here! Your text goes here!
Your text goes here! Your text goes here!
Your text goes here! Your text goes here!
[/td][/tr][/table]


That's it!

For advanced user:
You can change the border thickness (border: 1px solid;), color of text (color: #00529BWink, background color of box (background-color: #BDE5F8Wink and the image as well (background-image: url('https://i.imgur.com/BZ17N.png')Wink.

Written by Eagle8x


by Luky
on March 26th 2011, 5:41 pm
 
Search in: Tips & Tricks
Topic: Notice using css and table
Replies: 0
Views: 10549

Back to top

Jump to: