The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Notice using css and table

View previous topic View next topic Go down

Notice using css and table

Post by Luky on March 26th 2011, 5:41 pm

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: #00529B;), background color of box (background-color: #BDE5F8;) and the image as well (background-image: url('http://i.imgur.com/BZ17N.png')Wink.

Written by Eagle8x

Luky
Energetic

Male Posts : 6106
Reputation : 245
Language : Romanian, English
Location : Bucharest, Romania

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum