vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CSS Width (https://vborg.vbsupport.ru/showthread.php?t=231728)

Deadly Stream 12-30-2009 11:41 PM

CSS Width
 
First off, I do apologise for the crude title, I'm not exactly sure how to explain this.

I've been editing postbit.css so that the Signature area is the same colour as the User Info area. For the most part I have it sorted but for some reason the area won't stretch all the way across the bottom of the post, at the right side it's level but there's a gap at the left.

This image will show you what I mean

This is the css code I have at the moment;

Code:

.signature {
        align: center;
        display: block;
        background: {vb:stylevar postbit_userinfo_background};
        _background-image: none;
        clear:both;
        height: auto !important;
        border-bottom:{vb:stylevar postbit_border};
        border-top:{vb:stylevar postbit_border};
        padding-top:10px;
        padding-bottom:10px;
        padding-right:5px;
        padding-left:5px;
        width: 100%;
        float: {vb:stylevar left};
}

I've tried a few different things and nothing I've done has got it, it either hasn't changed or it's made it worse.

If anyone has any ideas I'd be grateful, me and css aren't exactly the best of friends.

--Stream

BSMedia 12-31-2009 12:23 AM

Remove the padding-left and padding-right


add !important after width: 100%

Code:

width: 100% !important;

Deadly Stream 12-31-2009 08:18 AM

Unfortunately that didn't work.

Adding the !important didn't seem to make any difference and removing the right and left padding made it worse, there was a bigger gap at the left and then a gap at the right too.

Deadly Stream 01-04-2010 08:08 PM

I don't suppose anyone has any ideas on this? It's really bugging me now, to me it does still look better than the default signature in the postbit and I could like with it but it would be nice if it could stretch all the way across.

--Stream

Seven Skins 01-04-2010 08:30 PM

Image link is dead, can you post it again.

Vaupell 01-05-2010 05:39 AM

maybe attach the image to the thread :D

Deadly Stream 01-05-2010 04:23 PM

1 Attachment(s)
Sorry guys, I've attached the image to this post.

Digital Jedi 01-05-2010 04:55 PM

Quote:

Originally Posted by Deadly Stream (Post 1948005)
Sorry guys, I've attached the image to this post.

That's likely because the parent element (the div or table div that contains the signature block) has padding on the left to prevent padding from going all the way to the left side. Notice how the signature block is the exact distance away from the left line as the text in the post above it? And you likely don't want to remove that padding, otherwise your post text will be flat against the left line. The only way I see around that, would require a complex template edit.


All times are GMT. The time now is 11:42 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
  • Page Generation 0.01120 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete