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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2012, 01:00 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default spaces in alt threadbit border

Hi,

I have added this css code to additional.css

.threadbit .alt {
border-left: 1px solid #92BAA7 !important;
border-right: 1px solid #92BAA7 !important;
}

I don't understand from where these spaces are coming from.
I did tried a lot of things to solve it but unfortunately I couldn't find a way to remove these spaces.

Do you have any ideas?
Attached Images
File Type: png aa.png (12.7 KB, 0 views)
Reply With Quote
  #2  
Old 03-26-2012, 01:08 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe try setting margin-top and margin-bottom to 0px?
Reply With Quote
  #3  
Old 03-26-2012, 01:28 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working
Reply With Quote
  #4  
Old 03-26-2012, 01:37 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, well, here's a page with a diagram of the different spaces: http://www.w3schools.com/css/css_boxmodel.asp . That site's good in general for simple html/CSS/JS stuff. Also, if you use the FireFox browser and an add-on like DOM Inspector or Firebug you can right-click on something on your page and see the html for it, along with the CSS that was used in formatting it (That's probably the answer to your question in the other thread, about how LifesGreatestGift knew about the fb_edge_widget_with_comment class).

If you post a link to your site we might be able to help you more.
Reply With Quote
  #5  
Old 03-26-2012, 02:42 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using google chrome.

Link: http://www.satla-zone.co.il/forums/f108/

Are you seeing the reason for these spaces?
Reply With Quote
  #6  
Old 03-26-2012, 03:10 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like the div that encloses it (class="rating5 sticky" ETA: for instance) has a top border with color #FFFFFF (the left, right, and bottom borders are #92BAA7). But to be honest I can't figure out where the CSS is for it. Maybe you can search your css templates or style variables to see if you can find it.


Edit: looks like maybe it's in threadlist.css, in a number of places there's something like this:

Code:
	border-top: 1px solid {vb:stylevar body_background.backgroundColor};
Reply With Quote
  #7  
Old 03-26-2012, 05:25 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did change it to 0px in all places, unfortunately it didn't help too.
Reply With Quote
  #8  
Old 03-26-2012, 06:35 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think I was looking at a different gap - the one-pixel gap that's at the top, because in FireFox the gaps at the bottom aren't there. But I looked at it in Chrome and I see gaps at the bottom. It seems to be caused by this (also in the threadlist.css template):

Code:
.threadbit .threadstats {
	font-size: {vb:stylevar mid_fontSize};
	text-align: {vb:stylevar right};
	padding: {vb:math {vb:math {vb:stylevar threadbit_iconsize.height}{vb:stylevar threadbit_iconsize.units} - {vb:math {vb:stylevar mid_fontSize}*{vb:stylevar line_height}*2} + {vb:stylevar padding}}/2} 0;
}

Apparently an attempt to calculate the correct padding to make everything look right. On your site it's coming up with 8.77...something or other pixels, and I found that if I manually changed it to 9px it looks better. Unfortunately, I don't really know why it's a problem only on Chrome or how to tell you to fix it.
Reply With Quote
  #9  
Old 03-26-2012, 08:17 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I was looking at this too.
The reason I tried this is because of digitalpoint
If you will look at their forumdisplay page here: http://forums.digitalpoint.com/forumdisplay.php?f=21

You will see they have solved this issue.
I really can't understand how they did it.
I did check a lot of things but unfortunately I was not able to implement it on my website.
Reply With Quote
  #10  
Old 03-26-2012, 08:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking at that site I notice they have a min-height:39px just under the padding calculation we were looking at, and it looks like adding that to your site works to solve the issue.
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 05:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04387 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete