![]() |
|
Thread Tools |
#1
|
||||
|
||||
![]()
Howdy!
I seem to have a problem where a few boxes don't exactly line up right even though they are both at 100%. Here is an example of the problem: ![]() The blue box on top doesn't line up with the rest of the threadlist and the threadlisthead seems to be missing the bottom right hand corner of the border... I honestly have no idea how to fix this. ![]() No members have liked this post.
|
#2
|
||||
|
||||
If you can post a link to your site, I might can tell you what CSS to add to remedy the issue.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#3
|
||||
|
||||
Originally Posted by MarkFL
Sorry for the late reply... I was having computer issues.![]()
Here you go: https://boards.rottensquash.com/ I've also noticed the issue on my forum homepage in the box that shows the stats. ![]() Also don't mind all the spam posts, I was just testing something, haha. No members have liked this post.
|
#4
|
||||
|
||||
Try adding this to your "additional.css" template:
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons The following members like this post: webmastersun, TrultToast
|
#5
|
||||
|
||||
Originally Posted by MarkFL
what do these codes mean?
![]()
__________________
The best webmaster forum & internet marketing forum for webmasters and internet marketers. The following members like this post: TrultToast
|
#6
|
||||
|
||||
The issue seemed to be that the custom style used by the OP is a mix of table and div elements. I found that by making the borders of the div elements display on the inside rather than on the outside as they do by default, then the elements appear to be the same size.
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#7
|
||||
|
||||
![]()
Originally Posted by MarkFL
Thanks for explaining. I was about to ask that question too, lol.![]()
Any chance you could help me fix my forumhome template too? Sorry to be a bother... I tried using the code you supplied above in a few spots but I had no luck in fixing the borders in my statistics box. No members have liked this post.
|
#8
|
||||
|
||||
You are inserting a table in OL tags .. hence they don't line up.
This may work.. warp the table in LI tags and use the same class as other LI tags on the forumhome page. The following members like this post: TrultToast
|
#9
|
||||
|
||||
Originally Posted by Seven Skins
Just tired this... no luck ![]()
![]() No members have liked this post.
|
#10
|
||||
|
||||
I don't see that on your site.
![]() You cannot insert table in ol or ul lists... as mentioned earlier warp the table in li tag or move the table out of ol tags. No members have liked this post.
|
#11
|
||||
|
||||
Originally Posted by Seven Skins
Just moved the table out of the ol tags and placed it above them.![]()
The problem still exists. Apparently this problem also exists with the "nonthread" class on the forumdisplay template when there are no posts in the forum. Ugh.. No members have liked this post.
Last edited by TrultToast; 28 Dec 2016 at 23:05. |
#12
|
||||
|
||||
Hey everyone, don't forget about the css calc ability
![]() Try changing the template code to this:
See if that does it. I hate using style= in any css call, I prefer to define any css changes in the actual definition but sometimes when you customize a style or theme from another software a direct inline edit is required else you'll pull your hair out trying to figure out where you went wrong along the way lol. So by saying go 100% we will but then we tell it to remove the spare 2px we noticed it increased. By using max-width we told it not to be bigger than 100% but somewhere as you can all plainly see something else bumped it up, I'd imagine some additional padding added somewhere along the line while you were customizing your style.
__________________
Daddy Does Dios and Figs! https://www.linkedin.com/in/thelastsuperman Search - Use the search feature to find similar issues/answers. Information - Include screenshots, copy/pasted error codes, url etc. Fixed - Please return to your thread/post and let us know how it was fixed! Thanks - For participating! Click the "Like" ♥ on a post if someone helped you! The following members like this post: MarkFL, TrultToast
|
#13
|
||||
|
||||
Originally Posted by TrultToast
Borrowing on Mike's suggestion, add this to your "additional.css" template:![]()
This will make the statistics box 2px wider, rather than making the forums boxes 2px narrower. Either way will work though. ![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons The following members like this post: TheLastSuperman
|
#14
|
||||
|
||||
Thank you very much Mike and Mark!
When I tried Mikes suggestion. It sadly did nothing, but when I did what mark suggested and put Mikes code in my additional.css file under the class "#info", it did work. Thank you both very much again! edit: Just out of curiosity, is there a reason why I need to keep adding this to some of my boxes? Like what did I do wrong to make 100% not work correctly without adding "width: calc(100% + 2px) !important;"?? No members have liked this post.
Last edited by TrultToast; 30 Dec 2016 at 06:58. |
#15
|
||||
|
||||
Originally Posted by TrultToast
Because vBulletin did not use Box Sizing whilst developing the forums hence we have issue. When you add borders to an element it get added to the element e.g. if you have 100px square element and you add 1px border the resulting box size will be 102px x 102px.![]()
More info here: .. https://css-tricks.com/box-sizing/ The following members like this post: z3r0, TrultToast
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:33.