![]() |
|
Article Options |
[HOW TO - vB4] Two column forum/sub-forum setup via CSS only
by
![]() Rating:
![]() This is just a quick writeup of the very basics to achieve a two column setup for your forums through only the use of CSS - no template modifications or plugins required. (Original thread requesting this infomation is here.) I am NOT going to be teaching CSS is this article! You WILL need to have some basic understanding of what Cascading Style Sheets are all about in order to further change this since this is only the basics to put stuff in position with no padding or margins or any other styling applied - that is up to you to do. This was written during the beta3/beta4 testing and may need to be modified for use with other versions since classes may be changed as the style has not been finalized yet. This was written to work with the default style and default stylevars (default at this time, that is). If you have customized your style in any way, you may have to change this a bit to work with your style. These classes also only apply to the forum home page but can easily be modified (by you!) to work on the forumdisplay pages and to work only for certain categories. Making the browser width small may change things, or if you have long descriptions or sub-forums listed or moderators listed, you may have to change the CSS to accommodate that. As I said, this in ONLY AN OUTLINE of what you need to do. You will have to add styling information yourself. This is basically what you will end up with: ![]() The very basics of what to do Add this to the additional.css template - it must be added *after* any other definitions regarding these sub-forums have been declared - if you don't understand why that is, then please read up on exactly what Cascading Style Sheets are all about):
This same concept can be applied to any list in the style. For instance, you can change the listing of sub-forums under the Sub-Forums listing on the main page also with just a couple of lines:
Those lines will get you this (this shows it with commas, add the code under the "to remove the commas" comment and you will not have commas): Again, this article is NOT about teaching you CSS. You will have to style this yourself and also make any other changes necessarily because of customized styles or changes after beta 4. The following members like this post: nacaruncr, Collectors, Curious Too, LOGECT, McAtze and 8 others.
Last edited by Lynne; 18 Sep 2010 at 16:40.. |
||||||||
Views: 51371
|
Comments |
#2
|
|||
|
|||
You're the best!
No members have liked this post.
|
#3
|
||||
|
||||
Congrats Lynne, very good article !
__________________
------------------------------------------------------------------------------------------- Administrator vBulletin-Ressources.com, French vBulletin Resources. No members have liked this post.
|
#4
|
|||
|
|||
thanks Lynne
good and pretty lesson No members have liked this post.
|
#5
|
||||
|
||||
Thanks Lynne!! Much appreciated!
__________________
TellYourMates - Australia Discussion Board No members have liked this post.
|
#6
|
||||
|
||||
thanks
very thanks luuny for this article you are the best .
![]() No members have liked this post.
|
#7
|
||||
|
||||
CSS only! You are the man!
No members have liked this post.
|
#8
|
||||
|
||||
Wo-man.
![]() **edit** I added the css needed to make two columns for the Sub-Forums also.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
Last edited by Lynne; 22 Nov 2009 at 18:07. |
#9
|
|||
|
|||
I got it now Lynne & thanks. I didn't know that if you click on edit templates the .css files are listed there.
![]() No members have liked this post.
|
#10
|
||||
|
||||
my forum
this cod not work well in persian and arabic forum .i modifid Lynnecode for persian and arabic forum and few cheng Lynne cod .show here. thanks big Lynne.
screenshot3.jpg No members have liked this post.
Last edited by yaghoub; 22 Nov 2009 at 19:14. |
#11
|
||||
|
||||
Great article Lynne!
thanks for the time to share it ![]()
__________________
No members have liked this post.
|
#12
|
||||
|
||||
Originally Posted by yaghoub
As I said, you will have to style it yourself. It looks like you may want to change some of my float:right to float:left or vice-versa. You'll have to play with it to get it how you want it to look.
![]()
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#13
|
||||
|
||||
Lynne in this code:
what needs editing to remove the commas? See pic. No members have liked this post.
|
#14
|
||||
|
||||
I really don't want to get into CSS in this thread. However, I added this one thing to the article.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#15
|
|||
|
|||
Thank you figured that would of been an easy one.
No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:09.