![]() |
Boxes around user info
How does vBT get the boxes around the user information in the postbit?
Thanks. |
I'm guessing tables. ;)
|
no you can use DIV :This is example:
Class: Quote:
Quote:
|
Yep, it's done using a div class. This is the best way to do tables like that. :)
|
*Ryan smacks hisself*
I'm an idiot. :p I forgot about div. :p |
hmm i think this would be ok also..
hmm i think this would be ok also.. HTML Code:
.postbit { |
Quote:
I just upgraded from vB2, so this something I havn't seen before. |
DIV is used for many things, but for this, it is used to call a CSS class you have pre-set in your style settings. So putting something like <div class="postbit"> calls the CSS options for 'postbit'
You'd put the DIV code (as skinvb has posted above) in your postbit template. You'd put the code around each of the variables which call something like Join Date, or posts etc. placing the variable inbetween the code. |
Quote:
|
Sorry I wordered it like that. Skinvb gave an example of how it should look in the postbit template:
<div class="postbit">$vbphrase[join_date]: $post[joindate]</div> That is only for Join Date though. For something else, you'd take out: $vbphrase[join_date]: $post[joindate] and replace it with another profile field you'd like to put a box around. So, for example, posts. Hope that made it a little more clearer. |
Quote:
Edit: I did a view source for one of the pages here. I see ---> margin-bottom: 2px. Awesome. vB3 Really does work easily if you know what your doing. Know if I could just figure out what I am doing:p |
It's really simple once you get used to it. :)
|
Especially the templates, once you get the hang of what each template does and have a fair understanding on what the main variables too, together with some HTML knowledge, it will become easy. :)
|
Hmm.. I think I know where to put the postbit part, just in the template manager and postbit right? But the DIV class thing, I have no idea where that is...
Does it go into a CSS file? |
Yeah, the specific CSS code is placed (you can use the style manager to make it easier) in and then you use the div tag, and calling the name you put the specific CSS code under.
Eg. <div class="name of specific CSS code">blablablacode</div> Those are the basics of it. |
I think he means where do you put the css code my self i put it in 'Style Manager -> The Style' under 'Additional CSS Definitions' near the bottem.
Add to the bottem of the 'Additional CSS Definitions' first box Example: Code:
/* ***** PostBit ***** */ Example: Code:
background-image: url(images/gradients/gradient_tcat.gif); Posted by Brad @ http://www.vbulletintemplates.com/mo...ead.php?t=5922 Hope this helps. :) |
Also remember to change the hex codes ect to your own needs :)
|
Oh, right. Sorry for the misunderstanding, Cool_Rice.
|
Hi,
Thanks Tony and Infernonet :) I've got this working now! I just would like to know what code would add some cellpadding to the inside of the divs... i tried putting cellpadding="3" but that doesnt seem to work. Please help! :D |
Could anyone offer some help with this please? :(
|
In the CSS add this:
Code:
padding: 0px; |
<3 :d
|
All times are GMT. The time now is 02:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|