Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2012, 05:20 PM
bijax bijax is offline
 
Join Date: Jan 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default increase line-height

Hello
I want to change line-height style for my forum but I couldn't find any style with this name.
by using firebug I could understand It is already set to 1.23 em in body style but I don't know how can I change it .
Thank you.
Reply With Quote
  #2  
Old 09-04-2012, 01:17 PM
nima6's Avatar
nima6 nima6 is offline
 
Join Date: Jan 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd be interested in this too.
Reply With Quote
  #3  
Old 09-04-2012, 04:14 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add the following code to additional.css (adjust line-height as desired)

ACP -> Styles & templates -> style manager -> your style here -> edit templates -> CSS templates -> addtional.css


Code:
/* custom line-height */
body {
    color: #3E3E3E;
    font-size: 13px;
    line-height: 1.23 !important;
    margin: 0 35px;
    min-width: 650px;
    width: auto;


}
Reply With Quote
  #4  
Old 09-04-2012, 05:22 PM
nima6's Avatar
nima6 nima6 is offline
 
Join Date: Jan 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Add the following code to additional.css (adjust line-height as desired)

Code:
/* custom line-height */
body {
    color: #3E3E3E;
    font-size: 13px;
    line-height: 1.23 !important;
    margin: 0 35px;
    min-width: 650px;
    width: auto;


}
Thanks. Where do i find the additional.css file? Through the admin panel or FTP?
Reply With Quote
  #5  
Old 09-04-2012, 08:20 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edited my first reply to so where in the ACP to go
Reply With Quote
  #6  
Old 09-05-2012, 02:12 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Styles & Templates - Search in templates
Reply With Quote
  #7  
Old 10-08-2012, 07:36 AM
GRE GRE is offline
 
Join Date: Nov 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't apply to articles though. Why?
Reply With Quote
  #8  
Old 11-01-2012, 03:36 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to apply this mainly to the forum posts. The code doesn't work on the forum posts (paragraphs). How can I do so?

Thanks
Reply With Quote
  #9  
Old 11-03-2012, 07:20 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GRE View Post
It doesn't apply to articles though. Why?
Because cms articles use different css. Put this in your additional.css file (see my first post for location) and adjust line-height as desired.

ACP -> Styles & templates -> style manager -> your style here -> edit templates -> CSS templates -> addtional.css


Code:
.cms_article_txt_content {
    -moz-font-feature-settings: normal;
    -moz-font-language-override: normal;
    color: #3E3E3E;
    font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
    font-size: 13px;
    line-height: 1.23 !important;
    margin-bottom: 5px;
}
--------------- Added 03 Nov 2012 at 12:21 ---------------

Quote:
Originally Posted by Chadi View Post
I'd like to apply this mainly to the forum posts. The code doesn't work on the forum posts (paragraphs). How can I do so?

Thanks
You need different code, add the following to additional.css template (see my first post for location) and adjust line-height as desired.

ACP -> Styles & templates -> style manager -> your style here -> edit templates -> CSS templates -> addtional.css


Code:
.postbit .postrow {
    -moz-font-feature-settings: normal;
    -moz-font-language-override: normal;
    font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif;
    font-size: 13px;
    line-height: 1.23 !important;
}
Reply With Quote
  #10  
Old 06-26-2015, 07:48 AM
Bat21 Bat21 is offline
 
Join Date: Jan 2003
Location: UK
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Because cms articles use different css. Put this in your additional.css file (see my first post for location) and adjust line-height as desired.

ACP -> Styles & templates -> style manager -> your style here -> edit templates -> CSS templates -> addtional.css


Code:
.cms_article_txt_content {
    -moz-font-feature-settings: normal;
    -moz-font-language-override: normal;
    color: #3E3E3E;
    font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
    font-size: 13px;
    line-height: 1.23 !important;
    margin-bottom: 5px;
}
This seems to change the row spacing in the Article Preview, but not when actually viewing the article.

Is there any way to make this change the spacing when viewing the article?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09552 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete