vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   change logo size (https://vborg.vbsupport.ru/showthread.php?t=323102)

MarkFL 07-26-2016 05:15 AM

If you want to change the size of the image (where the height is 120px and the width is 100%), use these selectors:

HTML Code:

.above_body {
        background-size: 100% 120px;
}

.navbar {
        margin: 90px 0 0 !important;
}


hollyboy 07-26-2016 05:40 AM

Quote:

Originally Posted by MarkFL (Post 2573939)
If you want to change the size of the image (where the height is 120px and the width is 100%), use these selectors:

HTML Code:

.above_body {
        background-size: 100% 120px;
}

.navbar {
        margin: 90px 0 0 !important;
}



Still does NOT work :(

I am trying to put this header
http://www.interfans.org/forum/images/header.jpg

previously it was 150px height now 120px

MarkFL 07-26-2016 05:49 AM

Quote:

Originally Posted by hollyboy (Post 2573940)
Still does NOT work :(

It worked when I altered the page source using Firebug. :confused:

hollyboy 07-26-2016 05:51 AM

Quote:

Originally Posted by MarkFL (Post 2573941)
It worked when I altered the page source using Firebug. :confused:


I am trying to put this header
http://www.interfans.org/forum/images/header.jpg

previously it was 150px height now 120px

MarkFL 07-26-2016 05:56 AM

You can resize the image using CSS (as I showed you). It is best though to size the image using an image editor, so that the aspect ratio is exactly what you want.

hollyboy 07-26-2016 05:57 AM

Quote:

Originally Posted by MarkFL (Post 2573943)
You can resize the image using CSS (as I showed you). It is best though to size the image using an image editor, so that the aspect ratio is exactly what you want.

I put exactly your code but does not work.
Can you log in my admin and see?

RichieBoy67 07-26-2016 08:13 AM

Mark is saying you need to resize the image first or the aspect ratio will be off.

Seven Skins 07-26-2016 11:33 AM

Try this:

Add these two lines at the bottom of additionl.css

HTML Code:

.body_wrapper { margin-top: 20px; }
.navbar { margin-top: 120px !important; }



And remove this from your additional.css
HTML Code:

.above_body { height: 152px; }


All times are GMT. The time now is 02:07 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.01239 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete