 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
kardworx
Joined: 11 Sep 2004 Posts: 8 Location: Telluride CO USA
|
Posted: Mon Dec 13, 2004 11:32 pm Post subject: appearance formatting rephrased |
|
|
Ok I got a response to this earlier but it wasn't of much use even with greater explanation.
I have a b2 blog set up with four diferent categories.
I would like to encapsulate the blog output, nav, etc into an 800 pix table and have it "as is"
I would like for it to be inside a 100% width table with a given bg color.
I know how to set the background colors etc (thanks for the earlier reply about the use of css, but that wasn't what I was looking for)
where can I create the tables so this appearsthe way I am describing it here?
Secondly, can I set up the various categories to have various backgounds, or is this a situation where every category will look the same? I would ideally like a different pic at the top of every category page as well as a different bg colored exterior table.
Many thanks up front. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 896 Location: Oslo, Norway
|
Posted: Tue Dec 14, 2004 9:18 am Post subject: |
|
|
Well, you could assign #ids, or classes rather, which has to do with css.
If you give a table an id variable, then put in the php_cat function, you can cascade the settings from each table in your css file.
This is just like body ids. Or classes. I just bumped it from the body id revelation.
Example (no code)
In your html file: Code: |
<b2 engine start>
<div class="<php cat function>">
<b2 engine>
</div><b2 engine end> |
In your CSS
Code: | body
regular div
.1 color: yellow
.2 color: dead cat
.3 color: carrotgreen
.4 color: cyan
.5 color: white
| If you had 5 categories.
You can switch out the div's with tables if you must, but tables are really so passé.
Why have the b2 engine wrapped round the div instead of inside it?
Doh! To make use of the cat function.
Read the readme: http://www.cafelog.com/readme.html
This is using the concept of extending the _most obvious_ uses for the b2 variables. (See the bottom of http://sigg3.net/cafelog )
Then check out westciv's tutorial.
And search around for body id stuff. You will have to understand the concept before implementing it though, and CSS (esp. CSS2) isn't supported as widely as it should yet. _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 896 Location: Oslo, Norway
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|